通达信趋势先锋主图指标 绿色箭头在K线上方卖出 绿色箭头在K线下方买入 源码 贴图
2024-05-29 10:29:00来源:本站整理浏览:1013
指标介绍:
①、当绿色箭头出现在K线上方的时候,考虑卖出。
②、当红色箭头出现在K线下方的时候,考虑买入。
③、K线为红色时,处于上涨通道中,考虑持有。
④、K线为绿色时,处于下降通道中,不考虑介入。
⑤、当K线变成黄色的时候,为回调期,这时考虑减仓操作,规避有可能的下跌风险。
MA5:MA(CLOSE,5),LINETHICK1;
MA10:MA(CLOSE,10),LINETHICK2;
MA20:MA(CLOSE,20),LINETHICK1;
MA60:MA(CLOSE,60),LINETHICK2;
VAR1:=(HHV(CLOSE,10)-LLV(C,10))*0.999;
VAR2:=IF((C>(LLV(C,10)+VAR1) OR C>LLV(C,10)*1.1) AND C=HHV(C,5) AND C>REF(C,1),1,0);
VAR3:=IF((C<(HHV(C,10)-VAR1) OR C<HHV(C,10)*0.9) AND C=LLV(C,5) AND C<REF(C,1),1,0);
VAR4:=IF(VAR2=1,1,IF(VAR3=1,0,2));{公式网WWW.GPXIAZAI.COM}
VAR5:=VAR4=1 AND REF(VAR4,1)!=1;
VAR6:=VAR4=0 AND REF(VAR4,1)!=0;
VAR8:=IF(BARSLAST(VAR5)>BARSLAST(VAR6),0,1);
VAR9:=REF(VAR8,1)=1 AND C<HHV(C,10)*0.97 AND C>HHV(C,10)*0.93;
STICKLINE(VAR8=1,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(VAR8=1 AND VAR9 AND C<LLV(C,10)*1.15,C,O,2,0),COLORYELLOW;
STICKLINE(VAR8=0,CLOSE,OPEN,2,0),COLORGREEN;
DRAWICON(VAR8=1 AND REF(VAR8,1)=0,L*0.99,1);
DRAWICON(VAR8=0 AND REF(VAR8,1)=1,H*1.01,2);
MA10:MA(CLOSE,10),LINETHICK2;
MA20:MA(CLOSE,20),LINETHICK1;
MA60:MA(CLOSE,60),LINETHICK2;
VAR1:=(HHV(CLOSE,10)-LLV(C,10))*0.999;
VAR2:=IF((C>(LLV(C,10)+VAR1) OR C>LLV(C,10)*1.1) AND C=HHV(C,5) AND C>REF(C,1),1,0);
VAR3:=IF((C<(HHV(C,10)-VAR1) OR C<HHV(C,10)*0.9) AND C=LLV(C,5) AND C<REF(C,1),1,0);
VAR4:=IF(VAR2=1,1,IF(VAR3=1,0,2));{公式网WWW.GPXIAZAI.COM}
VAR5:=VAR4=1 AND REF(VAR4,1)!=1;
VAR6:=VAR4=0 AND REF(VAR4,1)!=0;
VAR8:=IF(BARSLAST(VAR5)>BARSLAST(VAR6),0,1);
VAR9:=REF(VAR8,1)=1 AND C<HHV(C,10)*0.97 AND C>HHV(C,10)*0.93;
STICKLINE(VAR8=1,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(VAR8=1 AND VAR9 AND C<LLV(C,10)*1.15,C,O,2,0),COLORYELLOW;
STICKLINE(VAR8=0,CLOSE,OPEN,2,0),COLORGREEN;
DRAWICON(VAR8=1 AND REF(VAR8,1)=0,L*0.99,1);
DRAWICON(VAR8=0 AND REF(VAR8,1)=1,H*1.01,2);
- 上一篇公式:通达信龙飞九天主图指标 源码 贴图
- 下一篇公式:通达信周月抓波段副图指标 源码 贴图