飞狐陀螺尼指标公式

[复制链接]
查看95 | 回复0 | 2021-8-21 12:34:39 | 显示全部楼层 |阅读模式

v1:=ma(100*(c-llv(c,34))/(hhv(h,34)-llv(l,34)),5)-20;
v2:=2*abs(v1);
v3:=100-(100-3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))
*100,20,1)+2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))
*100,20,1),15,1));
v4:=100-(100-3*sma((o-llv(l,55))/(hhv(h,55)-llv(l,55))
*100,20,1)+2*sma(sma((o-llv(l,55))/(hhv(h,55)-llv(l,55))
*100,20,1),15,1));
v5:=(h+l+c)/3;
v6:=(v5-ma(v5,10))/(0.015*avedev(v5,10));
v7:=(v5-ma(v5,30))/(0.015*avedev(v5,30));
v8:=if(v6>=150 and v6<200 and v7>=150 and v7<200,10,0);
v9:=if(v6<=-150 and v6>-200 and v7<=-150 and v7>-200,-10,v8);
va:=(c-ma(c,13))/ma(c,13)*100;
vb:=100-abs(va);
vc:=3*sma((indexc-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))*100,20,1)-2
*sma(sma((indexc-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))*100,20,1),15,1);
vd:=3*sma((indexo-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))
*100,20,1)-2*sma(sma((indexo-llv(indexl,55))/(hhv(indexh,55)-llv(indexl,55))*100,20,1),15,1);
ve:=ref(l,1)*0.9;
vf:=l*0.9;
v10:=(vf*v+ve*(capital-v))/capital;
v11:=ema(v10,30);
v12:=v11-c;
v13:=ref(c,1);
v14:=sma(max(c-v13,0),7,1)/sma(abs(c-v13),7,1)*100;
v15:=sma(max(c-v13,0),13,1)/sma(abs(c-v13),13,1)*100;
v16:=barscount(c);
v17:=sma(max(c-ref(c,1),0),6,1)/sma(abs(c-ref(c,1)),6,1)*100;
v18:=((-100)*(hhv(h,60)-c)/(hhv(h,60)-llv(l,60))+50)*2;
v19:=(c-llv(l,15))/(hhv(h,15)-llv(l,15))*100;
v1a:=(sma(v19,4,1)-50)*2;
v1b:=sma(v1a,3,1);
v1c:=(indexc-llv(indexl,14))/(hhv(indexh,14)-llv(indexl,14))*100;
v1d:=sma(v1c,4,1);
v1e:=sma(v1d,3,1);
v1f:=(hhv(h,30)-c)/c*100;
v20:=if(v17<=25 and v18<-95 and v1f>20 and v1b<-30 and v1e<30
and v12>=-0.25 and v14<22 and v15<28 and v16>50,80,0);
大趋势: v3;
顶线: if(vb<90,vb,100);
多方: if(v1>0,v1,0),linestick;
空方: -if(v1<0,v2,0),linestick;
抄底: v20,colorred,linethick2;
预警系统: (if((v7>=200 and v6>=150) or cross(65,多方),15,if(v7<=-200
and v6<=-150,-15,v9))+65);
stickline(v3<=ref(v4,1),v3,v4,8,0),colorwhite;
stickline(v3>ref(v4,1),v3,v4,8,0),colorred;
t1:=c>ma(c,20) and ma(c,20)>=ref(ma(c,20),1);
t2:=c; t3:=多方>60 and 预警系统>65 and 顶线=100;
t4:=多方>48 and 预警系统>65 and 顶线<100;
t5:=空方<-38 and 预警系统<65;
t6:=抄底>50 and 顶线<90;
t7:=v3>ref(v4,1) and v>ref(v,1) and c>ref(c,1);
t8:=v3<=ref(v4,1) and c and 空方>=ref(空方,1) and vc; drawtext(t1 and count(t1,30)=1,10,'上升通道!'),color00ffff;
b2:=drawtext(t2 and count(t2,30)=1,55,'下降通道!'),color00ffff;
b3:=drawtext(t3 and count(t3,30)=1,55,'上涨过急!'),color00ffff;
b4:=drawtext(t4 and count(t4,30)=1,75,'庄家出货!'),color00ffff;
b5:=drawtext(t5 and count(t5,30)=1,50,'有小反弹!'),color00ffff;
b6:=drawtext(t6 and count(t6,30)=1,30,'抢反弹!'),color00ffff;
b7:=drawtext(t7 and count(t7,30)=1,-10,'资金进场!'),color00ffff;
drawtext(t8 and count(t8,30)=1,90,'见顶回落!'),color00ffff;

202108211147.jpg

202108211147.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则