同花顺止盈止损线公式
红色加粗线为止盈止损线,黄色线为反弹线,绿色线为回档线,当红色线回调止绿色线或黄色线时,反弹概率较大。同样的道理,当红色线上升遇到蓝色线或粉色线时,下跌风险较大。[
源码
AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC>1.88 ,MA(DDD,3),DDD);
止赢:ZZZ*1.1,COLORFFCC18;
了结:ZZZ*1.05,COLORFF18FF;
回档:ZZZ*0.95,COLOR18FF18;
反弹:ZZZ*0.9,COLOR18CCFF;
平衡:ZZZ,COLORFFFFFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),止赢,'止赢'),COLORFFCC18;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),了结,'了结'),COLORFF18FF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),回档,'回档'),COLOR18FF18;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),反弹,'反弹'),COLOR18CCFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),平衡,'平衡'),COLORFFFFFF;
A:=(LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2);
盈损线:A,COLOR0045FF,LINETHICK2;