VAR1:=(2*C+H+L)/4;
VAR2:=MA(VAR1,5);
VAR3:=MA(VAR1,21);
VAR4:=MA(VAR1,60);
中长:EMA(VAR1,55),COLORFF00FF;
股势:(MA(VAR2,5)+MA(VAR2,13)+MA(VAR2,21)+MA(VAR2,34))/4,COLORWHITE;
强弱:(MA(VAR1,3)+MA(VAR1,6)+MA(VAR1,12)+MA(VAR1,24))/4,COLORRED,LINETHICK2;
四季:(MA(VAR1,63)+MA(VAR1,126)+MA(VAR1,189)+MA(VAR1,252))/4,COLORGRAY,LINETHICK2;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,3,0),COLORFF0000;
STICKLINE(VAR1>=VAR2,HIGH,LOW,0,0),COLORFF0000;
STICKLINE(VAR1<=VAR2,CLOSE,OPEN,3,0),COLORFFFFFF;
STICKLINE(VAR1<=VAR2,HIGH,LOW,0,0),COLORFFFFFF;
{ 爱约股_通达信股票指标公式}
STICKLINE(VAR1<=VAR3 AND VAR1>OPEN,CLOSE,OPEN,3,0),COLORYELLOW;
STICKLINE(VAR1<=VAR3 AND VAR1>OPEN,HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(VAR1>=VAR4 AND VAR1>OPEN,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(VAR1>=VAR4 AND VAR1>OPEN,HIGH,LOW,0,0),COLORRED;
STICKLINE(VAR1>=VAR4 AND VAR1<OPEN,CLOSE,OPEN,3,0),COLOR00FF00;
STICKLINE(VAR1>=VAR4 AND VAR1<OPEN,HIGH,LOW,0,0),COLOR00FF00;

 

通达信五色真K线主图指标公式