通达信副图主加减仓公式

VAR2:=LLV(LOW,6);

VAR3:=HHV(HIGH,12);

动力线:EMA((C-VAR2)/(VAR3-VAR2)*4,4),COLORRED,LINETHICK1;

DLX:=动力线;

进五成:IF(CROSS(DLX,0.5),1.2,0.5);

加三成:IF(CROSS(DLX,1.3),1.8,0.5);

减半:IF(CROSS(DLX,3.3),2.1,0.5);

清仓:IF(CROSS(DLX,3.5),2.7,0.5);

DRAWICON(CROSS(DLX,0.5),DLX>0.3,26);

DRAWTEXT (CROSS(DLX,1.3) ,1.5,'+30%'), ,COLORYELLOW;

DRAWTEXT (CROSS(DLX,3.3) ,3.3,'减50%'), ,COLORCYAN;

DRAWTEXT (CROSS(DLX,3.5) ,3.5,'清仓'), ,COLORRED;

{WWW.BUYHAOGU.COM};

(0)

相关推荐