以下是通达信波段买卖参考指标公式源码和使用说明
使用说明:
趋势判断:当波段参考指标位于价格上方时,表明市场处于上升趋势;当波段参考指标位于价格下方时,表明市场处于下降趋势。根据趋势判断,可以选择适当的买入或卖出时机。
买入信号:当波段参考指标从下方突破价格时,出现向上的交叉信号,可以作为买入信号。此时,可考虑建立多头仓位。
卖出信号:当波段参考指标从上方突破价格时,出现向下的交叉信号,可以作为卖出信号。此时,可考虑平仓或建立空头仓位。
停止损益:在持仓过程中,当价格出现明显的反转信号,即波段参考指标与价格发生反向交叉时,可以考虑及时止损或调整仓位。
参数设置:N1和N2的选择需要根据具体情况进行调整,一般来说,较短的周期适合较短期的操作,较长的周期适合较长期的操作。
通达信波段买卖参考指标公式源码:
VAR2:=1/WINNER(CLOSE);
VAR3:MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=100-VARB;
看(我)实力:=(100-VARA);
散户:=MA(WINNER(CLOSE*0.95)*100,3);
新庄:=(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0));
VARD:=散户>VAR4;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*vol+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25ANDVAR19<-95ANDVAR1F>20ANDVAR1B<-30ANDVAR1E<30ANDVAR11-CLOSE>=-0.25ANDVAR15<22ANDVAR16<28ANDVAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150ANDVAR22<200ANDVAR23>=150ANDVAR23<200,10,0);
VAR25:=IF(VAR22<=-150ANDVAR22>-200ANDVAR23<=-150ANDVAR23>-200,-10,VAR24);
断子绝生:=IF(VAR23>=200ANDVAR22>=150,15,IF(VAR23<=-200ANDVAR22<=-150,-15,VAR25))+50;
DRAWICON(VARD,HIGH,2);
DRAWTEXT(VAR20,C,’★’),coloryellow;
DRAWTEXT(CROSS(VAR20,0.5)ANDCOUNT(VAR20=1,10)=1,C*1.01,’有钱可以赚’),coloryellow;
DRAWTEXT(CROSS(VARD,0.5)ANDCOUNT(VARD=1,10)=1,HIGH*1.01,’赚钱我走啦’),COLOR00FF00;
VAR26:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR27:=REVERSE(VAR26);
VAR28:=SMA(VAR26,3,1);
波段王:=SMA(VAR28,3,1);
波段鬼:=SMA(波段王,3,1);
地狱:DRAWICON(CROSS(波段王,波段鬼)AND波段王<40,LOW,’buy’);
天堂:DRAWICON(CROSS(波段鬼,波段王)AND波段鬼>75,HIGH,’sell’);
DRAWTEXT(CROSS(波段王,波段鬼)AND波段王<40,LOW*1.01,’低吸做波段’),colorwhite;
DRAWTEXT(CROSS(波段鬼,波段王)AND波段鬼>75,HIGH*1.01,’减磅是老师’),COLOR00FF00;
HJ_1:=vol*CLOSE;
HJ_2:=SUM(HJ_1,1)/SUM(VOL,1);
HJ_3:=EMA(HJ_2,17);
HJ_4:=(HJ_2-HJ_3)*100/HJ_2;
HJ_5:=IF(HJ_4>0AND0>=REF(HJ_4,1),6,DRAWNULL);
HJ_6:=IF(REF(HJ_4,1)<3ANDREF(HJ_4,1)>0ANDHJ_4-REF(HJ_4,1)>6,6,DRAWNULL);
HJ_7:=(CLOSE+HIGH+LOW)/3;
HJ_8:=EMA(HJ_7,5);
HJ_9:=REF(HJ_8,1);
HJ_10:=IF(HJ_8>HJ_9,0,DRAWNULL);
HJ_11:=IF(EMA(CLOSE,3)>REF(EMA(CLOSE,3),1),3,DRAWNULL);
HJ_12:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
HJ_13:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
HJ_14:=100-MA(100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)),34);
HJ_15:=IF(CLOSE>(HIGH+LOW)/2,1,0)+IF(crOSS(HJ_13,MA(HJ_14,5)),2,0)+IF(HJ_11=3,1,0)+IF(HJ_10=0,1,0)+IF(HJ_5=6,2,0)+IF(HJ_6=6,2,0);
HJ_16:=HJ_15>=5;
沪深总上涨家数:DYNAINFO(60),NODRAW,COLORRED;
沪深总下跌家数:DYNAINFO(61),NODRAW,COLORGREEN;
沪深总成交金额:DYNAINFO(62)/100000000,NODRAW,COLORWHITE;
HJ_17:=macd.DIF>REF(MacD.DIF,1)ANDREF(MACD.DIF,1)<REF(MACD.DIF,2);
HJ_18:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
HJ_19:=IF(CLOSE<REF(OPEN,1)ANDHJ_18<0,1,0);
HJ_20:=IF(CLOSE<REF(OPEN,2)ANDHJ_18<0,1,0);
HJ_21:=HJ_19=0ANDREF(HJ_19,1)=1ANDHJ_20=0ANDREF(HJ_20,1)=1;
HJ_22:=HJ_17ANDHJ_21;
XG:HJ_16ANDHJ_22ANDC>MA(C,20)ANDMA(C,20)>REF(MA(C,20),1),COLORCYAN
Var3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
Var4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
Var5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
Var6:=(Var3+Var4+Var5)/3;
Var7:=EMA(Var6,5);
指标:EMA(EMA(Var3,5),5)*3,COLORSTICK;
Var8:=IF(Var6<=-20,10,0);
Var9:=HHV(Var8,10);
STICKLINE(Var8=10,20,10,5,0),COLOR6666FF;
VarA:=IF(Var9ANDCROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
DRAWTEXT(VarA=20,15,’底部’),linethick1,colorwhite;
STICKLINE((VarA=20),0,10,5,0),colorwhite;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND(REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)<REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))AND(REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((VARC=1),(-14),0,4,0),Color0000FF;
DRAWTEXT((VARC=1),(-14),’买’),Color0000FF;
STICKLINE((VARD=1),14,0,4,0),Color00FF00;
DRAWTEXT((VARD=1),18,’卖’),Color00FF00;
VarE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VarF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var11:=VarF<REF(Var10,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
DRAWTEXT(Var11ANDCOUNT(Var11,30)=1,15,’大资金活动’),linethick1,COLORff00ff;
STICKLINE(Var11ANDCOUNT(Var11,30)=1,1,10,5,0),colorff00ff;
Var12:=(HIGH+LOW+CLOSE)/3;
Var13:=(Var12-MA(Var12,14))/(0.015*AVEDEV(Var12,14));
Var14:=(Var12-MA(Var12,70))/(0.015*AVEDEV(Var12,70));
Var15:=IF(Var13>=150ANDVar13<200ANDVar14>=150ANDVar14<200,10,0);
Var16:=IF(Var13<=-150ANDVar13>-200ANDVar14<=-150ANDVar14>-200,-10,Var15);
Var17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
Var18:=100-ABS(Var17);
Var19:=IF(Var18<90,Var18,100);
通达信波段买卖参考指标公式截图
评论(0)