前次最高價(jià):=REF(本次最高價(jià),X2+1);
Y2:=IF((紅柱面積》0 AND 紅柱面積《前次紅柱面積 AND 本次最高價(jià)》前次最高價(jià) ),1,0);
RS2:= MACD》0 AND REF(MACD,1)》0 AND C》前次最高價(jià) 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;
買(mǎi):IFF(底背馳,0.1,0),COLOR0000FF;
賣(mài):IFF(頂背馳,0.1,0),COLOR00FF00;
(南方財富網(wǎng)SOUTHMONEY.COM)