飞狐超级牛熊神奇副图指标

源码

p1:=5;
p2:=13;
p3:=21;
p4:=34;
P5:=62;
P6:=120;
P7:=256;
MA5日: MA(CLOSE,P1);
MA13日: MA(CLOSE,P2);
MA21日: MA(CLOSE,P3);
MA34日: MA(CLOSE,P4);
MA62日: MA(CLOSE,P5);
MA120日: MA(CLOSE,P6);
MA256日: MA(CLOSE,P7);
v1:=ma(c,5),color00ffff;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,27);
MACD := 2*(DIFF-DEA);
r1:=cross(diff,dea);
r2:=macd>ref(macd,1);
r3:=ma(c,5)>=ma(c,10);
r4:=ma(v,5)>=ma(v,34);
r5:=v<ma(v,34)*3;
r6:=BARSLAST(r1)<3;
r7:=ma(c,10)>ma(c,30);
r8:=ma(c,30)>ref(ma(c,30),1);
买入:STICKLINE(r1 and r2 and r3 and r4 and r5 and
r6,v1,v1+0.5,8,0),colorf0f000;
drawtext(r1 and r2 and r3 and r4 and r5 and
r6,v1+1.2,'★'),colorf00ff0;
RSV:= (HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
LWR1:=SMA(RSV,5,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(cross(lwr1,lwr2),v1,1);
Var1:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*(-100);
Var2:=EMA(Var1,3);
Var3:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,24)-EMA(CLOSE,36))*(-100);
Var4:=EMA(Var3,9);
Var5:=CROSS(Var1,Var2);
Var6:=CROSS(Var2,Var1);
熊: STICKLINE(Var6,OPEN,CLOSE,10,0);
牛: STICKLINE(Var5,OPEN,CLOSE,10,0);
严格纪律: STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.33,10,0);
赚了就跑: STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,10,0);




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

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

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

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