前次最高價:=REF(本次最高價,X2+1);
Y2:=IF((紅柱面積》0 AND 紅柱面積《前次紅柱面積 AND 本次最高價》前次最高價 ),1,0);
RS2:= MACD》0 AND REF(MACD,1)》0 AND C》前次最高價 AND ABS(紅柱面積)《ABS(前次紅柱面積) AND ABS(MACD)《ABS(REF(MACD,1));
頂背馳:= IF (CROSS(DEA,DIFF),REF(Y2,1),0);
DRAWICON(頂背馳,0,19),COLOR00FF00;
STICKLINE(頂背馳,0,0.01,4,0),COLOR00FF00;
DRAWTEXT(頂背馳,0.01,‘頂背’),COLORFF0000;
買:IFF(底背馳,0.1,0),COLOR0000FF;
賣:IFF(頂背馳,0.1,0),COLOR00FF00;
(南方財富網(wǎng)SOUTHMONEY.COM)