原码如下:
XX2:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
神奇线: MA((CLOSE-XX2)/XX2,1),colorbrown;
买点1: IF(CROSS(神奇线,0) AND LOW/REF(HIGH,1)<1.012,2,0), STICK,COLORred,linethick2;
稳赚: IF(COUNT(神奇线>REF(神奇线,1),3)=3 AND COUNT(神奇线<0,10)=10 AND REF(神奇线,3)=LLV(神奇线,10),0.5,0),colorblue;
买点2: IF(REF(神奇线,2)=LLV(神奇线,20) AND REF(神奇线,2)<0.071 AND REF(神奇线,2)<REF(神奇线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),1,0),COLORmagenta;
DRAWTEXT( 买点1>0,2 ,'★买点1'),COLORred;
DRAWTEXT( 买点2>0,1 , '★买点2'),COLORmagenta;
(大智慧、分析家、飞狐、通达信可用!) |