【通达信源码分享】精品指标公式-红黄强势指标源码
公式源码:
MA1:=MA(C,10);
MA20:=MA(C,20);
STICKLINE(MA1>=REF(MA1,1),MA1,REF(MA1,1),2,0),COLORRED;
STICKLINE(MA1<REF(MA1,1),MA1,REF(MA1,1),2,1),COLORGREEN;
STICKLINE(MA20>=REF(MA20,1),MA20,REF(MA20,1),2,0),COLORYELLOW;
STICKLINE(MA20<REF(MA20,1),MA20,REF(MA20,1),2,1),COLORFFFFFF;
赢在龙头:=(L+H+C*4)/6;
趋势轨:=EMA(赢在龙头,12);
赢在:=(趋势轨-REF(趋势轨,1))/REF(趋势轨,1)*100;
G:=BARSLAST(CROSS(赢在,0));
止损线:=REF(L,G);
上涨斜率:=(趋势轨-止损线)/止损线*100,NODRAW;
V1:=EMA(EMA(EMA(CLOSE,8),13),55);
V2:=(REF(HIGH,1)+REF(LOW,1))/2;
V3:=MA(CLOSE,20)+2*STD(CLOSE,20);
DRAWICON(CROSS(V2,V3),HIGH*1.035,10);
DRAWTEXT(CROSS(V2,V3),HIGH*1.02,'卖'),COLORBLUE;
V4:=REF(CLOSE,1);
V5:=SMA(MAX(CLOSE-V4,0),7,1)/SMA(ABS(CLOSE-V4),7,1)*100;
V6:=CROSS(79,V5);
V7:=FILTER(V6,4);
DRAWICON(V7,HIGH*1.035,10);
DRAWTEXT(V7,HIGH*1.02,'卖'),COLORGREEN;
A1:=REF(C,5)<REF(O,5) AND REF(C,4)<REF(O,4) AND REF(C,3)<REF(O,3);
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!