倚天开心跟踪附大智慧版本源码

 大智慧版本源码如下:

VAR88:=IF((YEAR >= 2308) and (MONTH >= 1),0,1); RSVa:=(((CLOSE - LLV(LOW,21))/(HHV(HIGH,21) - LLV(LOW,21)))*(100))*(VAR88);

趋势:=(MA((3)*(SMA(RSVa,6,1)) -  (2)*(SMA(SMA(RSVa,5,1),5,1)),2))*(VAR88); 

VAR2a:=(3)*(SMA(((OPEN - LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN -  LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1),15,1));

VAR3a:=VAR2a - 100; 

背离:=(FORCAST(((-1))*(VAR3a),21))*(VAR88); 

跟踪天数:(BARSLAST((趋势 < 背离)))*(VAR88),colorred;

MA15:=EMA(CLOSE,21);  

STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,color0000FF;

STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,colorFF0000;


倚天指标版本源码:
 参数:n=21,m=6,p=5
源码

RSV:=(C-LLV(L,n))/(HHV(H,n) - LLV(L,n))*100;

趋势:MA((3*SMA(RSV,m,1)-2*SMA(SMA(RSV,5,1),p,1)),2),LINETHICK1,COLORFF00FF;

VAR2:=3*(SMA(((OPEN - LLV(LOW,55))/(HHV(HIGH,55) - LLV(LOW,55)))*(100),20,1))-2*(SMA(SMA(((OPEN - LLV(LOW,55))/(HHV(HIGH,55) - LLV(LOW,55)))*(100),20,1),15,1));

VAR3:=VAR2-100;

背离:FORCAST(-1*VAR3,8),LINETHICK1,COLORwhite;

DRAWTEXT((CROSS(趋势,背离)),背离,'黑马'),COLORE7FCB9;

跟踪天数:BARSLAST(趋势 < 背离),LINETHICK0;

partline(跟踪天数 >REF(跟踪天数,1),跟踪天数),COLORRED,LINETHICK2;

partline(跟踪天数 <REF(跟踪天数,1),跟踪天数),COLORGREEN;

partline(跟踪天数 =REF(跟踪天数,1),跟踪天数),COLORBlack;

100, COLORGREEN;

Var1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;

Var2:=SMA(Var1,20,1);

Var3:=SMA(Var2,15,1);

Var4:=100-3*Var2+2*Var3;

Var5:=(3*Var2+2*Var3)/4;

Var6:=ABS(ABS(Var5)-ABS(Var4));

Var7:=ABS(ABS(Var5)-ABS(Var6));

阴跌区域: Var4-Var7, COLORYELLOW,LINETHICK2;

 

见顶区域: STICKLINE(阴跌区域<0,阴跌区域,0,1,0) , COLORBLUE;

龙脉: Var5-Var7,{ COLORSTICK}COLORRED;

见底区域: STICKLINE(龙脉<0,龙脉,0,10,0) , COLORblue;

DRAWTEXT(CROSS(阴跌区域,龙脉),-10,'阴跌'), COLORGREEN;

DRAWTEXT(CROSS(阴跌区域,-0.1),-10,'注意顶'), COLORWHITE;

超跌线: 80*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),coloryellow,linethick1,LINEDOT;

Var1:=100-100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));

Var2:=EMA(Var1,55);

多:  EMA(Var1,10),colorred,linethick1,CROSSDOT;

空:  EMA(Var2,8),colorgreen,LINEDOT;




来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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