通达信买卖区间优化版主图指标 源码 贴图
2022-02-14 08:57:00来源:本站整理浏览:1249
通达信买卖区间优化版主图指标 源码 贴图
红色区域持股
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050;
STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR404050;
DRAWKLINE(H,O,L,C);
指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
界:=MA(CLOSE,27);
B买:IF(CROSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;
DRAWICON(CROSS(买线,卖线),L,1);
DRAWICON(CROSS(卖线,买线),H,2);
DRAWTEXT_FIX(1,0.009,0,0,'所属风格:'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0,0,FGBLOCK),COLORWHITE;
DRAWTEXT_FIX(1,0.009,0.06,0,'所属概念:'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.06,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.009,0.12,0,'所属板块:'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.12,0,DYBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.15,0.12,0,HYBLOCK),COLORRED;
ZT:=C/REF(C,1)>1.0993 AND C=H;
STICKLINE(ZT,O,C,2,0),COLORRED;
DT:=C/REF(C,1)<0.913 AND C=L;
STICKLINE(DT,O,C,2,0),COLORGREEN;
MA3:MA(C,3),COLORRED,LINETHICK1;
MA7:MA(C,7),COLORYELLOW,LINETHICK1;
MA10:MA(C,10),COLORGREEN,LINETHICK1;
YCX:=MA3>=REF(MA3,1);{WWW.GPXIAZAI.COM}
H1:=MAX(MAX(MA3,MA7),MA10);
L1:=MIN(MIN(MA3,MA7),MA10);
一阳穿三线:= H1<C AND O<L1 AND YCX AND MA3>REF(MA3,1);
DRAWTEXT(一阳穿三线,L*1.00, '穿'),COLORYELLOW;
- 上一篇公式:通达信漫步MACD副图指标 源码 贴图
- 下一篇公式:通达信绝无仅有主图指标 源码 贴图