通达信趋势波段操作(源码 副图/选股贴图)

趋势波段操作,趋势形成后买入并采取波段操作的方式进行买卖操作!
 温馨提示:
1、此指标含未来函数ZIG,利用ZIG的拐点形成后再出信号。即:上升趋势---ZIG(3,10) 大于 REF(ZIG(3,10),1);
 2、信号出现后不漂移(如,000402金融街,可用沙盘推演看出),请放心使用。若在意的话就不用下载了!
3、信号出现后在观察1天,确认是上升趋势后再利用盘中分时逢低买入,并设置好止损(很重要)!

指标的用法较多,请仔细观察和思考,具体就不多讲了!


 提供源码,欢迎优化和交流!

{趋势波段操作 副图}
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
 VAR9:=EMA(VAR8,7);
 VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
 VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
 OK1:=VARA+VARB<7 AND CROSS(VAR8,VAR9) AND VAR9<-18 AND VAR9<VARB;

 VARC:=HHV(HIGH,9)-LLV(LOW,9);
 VARD:=HHV(HIGH,9)-CLOSE;
 VARE:=CLOSE-LLV(LOW,9);
 VARF:=VARD/VARC*100-70;
 VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
 VAR11:=(2*CLOSE+HIGH+LOW)/4;
 VAR12:=SMA(VARE/VARC*100,3,1);
 VAR13:=LLV(LOW,34);
 VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
 VAR15:=IF(VAR14>100,VAR14-100,0);
 VAR16:=HHV(HIGH,34);
 VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
 VAR18:=EMA(VAR17,5);
动力:VAR17,NODRAW;
价差:(VAR17-VAR18),NODRAW;
 OK2:=CROSS(VAR17,15);

 STICKLINE(价差>0 AND 价差>REF(价差,1),VAR17,VAR18,3,0),COLOR0000CC;
 STICKLINE(价差>0 AND 价差<REF(价差,1),VAR17,VAR18,3,1),COLOR0000CC;
 STICKLINE(价差<0 AND 价差<REF(价差,1),VAR17,VAR18,3,0),COLORCCCC00;
 STICKLINE(价差<0 AND 价差>REF(价差,1),VAR17,VAR18,3,1),COLORCCCC00;

 UP:=ZIG(3,10)>REF(ZIG(3,10),1);
 STICKLINE(UP=1,50,50,1,0),COLORRED;
 STICKLINE(UP=0,50,50,1,0),COLORWHITE;

 STICKLINE(C>0,80,80,1,0),COLORC6C600;
 STICKLINE(C>0,20,20,1,0),COLORGREEN;

 OK:=(OK1=1 OR OK2=1) AND UP=1;
 OKOK:=FILTER(OK,5);
 STICKLINE(OKOK,30,70,0,-1),COLORYELLOW;{画垂直线}
IF(OKOK,50,DRAWNULL),POINTDOT,COLORRED,LINETHICK5;{画大圆点}


 {========================================================================}


 {趋势波段操作 选股}
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
 VAR9:=EMA(VAR8,7);
 VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
 VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
 OK1:=VARA+VARB<7 AND CROSS(VAR8,VAR9) AND VAR9<-18 AND VAR9<VARB;

 VARC:=HHV(HIGH,9)-LLV(LOW,9);
 VARD:=HHV(HIGH,9)-CLOSE;
 VARE:=CLOSE-LLV(LOW,9);
 VARF:=VARD/VARC*100-70;
 VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
 VAR11:=(2*CLOSE+HIGH+LOW)/4;
 VAR12:=SMA(VARE/VARC*100,3,1);
 VAR13:=LLV(LOW,34);
 VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
 VAR15:=IF(VAR14>100,VAR14-100,0);
 VAR16:=HHV(HIGH,34);
 VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
 VAR18:=EMA(VAR17,5);
动力:=VAR17,NODRAW;
价差:=(VAR17-VAR18),NODRAW;
 OK2:=CROSS(VAR17,15);

 UP:=ZIG(3,10)>REF(ZIG(3,10),1);{上升趋势}
OK:=(OK1=1 OR OK2=1) AND UP=1;
 XG:FILTER(OK,5);

 




未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:WINNER
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图