QQ:=IF(O>C,O,C);
QQ1:=(QQ*3-REF(QQ,2))/2,NODRAW;
QQ2:=(REF(QQ,1)*3-REF(QQ,3))/2,NODRAW;
QQ3:=(H*3-REF(H,2))/2, NODRAW;
QQ4:=(REF(H,1)*3-REF(H,3))/2,NODRAW;
划线明买点:IF(QQ1>QQ3,QQ1,QQ3),COLORRED,NODRAW;
划线今买点:IF(QQ2>QQ4,QQ2,QQ4),COLORMAGENTA,NODRAW;
DRAWTEXT(ISLASTBAR,划线明买点,' ←←明划线买'),COLORRED;
DRAWTEXT(ISLASTBAR,划线今买点,' ←←今划线买'),COLORMAGENTA;
参考买点:MA(O,2)+REF(MA((H-O),2),1) COLORMAGENTA,NODRAW;
参考卖点:O-REF(H-L,1)*0.5 COLORWHITE,NODRAW;
止损:REF(C,1)/1.021 COLORRED,NODRAW; |