通达信超短线副图源码 用法:红柱买,绿柱跑
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
SJ:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK,COLORADADAD;
SD: MA(SJ,2),COLOR00FFFF;
SK: MA(SJ,1),COLORFFFFFF;
VAR3:=CROSS(SK,SD) AND SK<0;
VAR4:=CROSS(SK,0);
VAR5:=CROSS(SK,SD) AND SK>0;
{买一: VAR3, STICK, COLOR0000FF,LINETHICK3;}
买二: VAR4 OR VAR5, STICK, COLORFF80FF,LINETHICK3;
VAR6:=CROSS(SD,SK);
卖出: VAR6, STICK,COLOR00FF00,LINETHICK2;
分界: 0, POINTDOT,COLORC0C0C0;