您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

很好的波动指标公式[其他软件公式]

相关标签:好的炒股指标公式源码 、 简易波动指标 、 波动幅度指标 、 每日波动指标 、 经典波动指标 、 浮选指标波动 、 公式指标网 、 通达信指标公式 、 成交量指标公式 、 通达信波动率指标公式 、 长线波动指标公式 、 波动性指标 、

 

n=10

REFLINE: -10, 0, 40, 60, 100, 110;
Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
Var2:=2*ABS(Var1);
Var3:=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);
Var4:=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);
Var5:=(HIGH+LOW+CLOSE)/3;
Var6:=(Var5-MA(Var5,14))/(0.015*AVEDEV(Var5,14));
Var7:=(Var5-MA(Var5,70))/(0.015*AVEDEV(Var5,70));
Var8:=IF(Var6>=150 AND Var6<200 AND Var7>=150 AND Var7<200,10,0);
Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8);
VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VarB:=100-ABS(VarA);
VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VarD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VarE:=REF(LOW,1)*0.9;
VarF:=LOW*0.9;
Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
Var11:=EMA(Var10,30);
Var12:=Var11-CLOSE;
Var13:=REF(CLOSE,1);
Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;
Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;
Var16:=BARSCOUNT(CLOSE);
Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1A:=(SMA(Var19,4,1)-50)*2;
Var1B:=SMA(Var1A,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;
Var11:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;
Var22:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
Var33:=IF(ABS(Var1)<2,0.9,1);
Var44:=Var33*(Var22-Var11);
Var20:=IF(Var17<=25 AND Var18<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var12>=-0.25 AND Var14<25 AND Var15<30 AND Var16>50,70,0);
天:IF(VarB<90,VarB,100),LINETHICK0,ColorE2E4E5;
STICKLINE(VarB<90,100,VarB,1,0),ColorFFFFFF;
STICKLINE(VarB<90,95,90,1,0),ColorB5B5B5;
STICKLINE(VarB<90,100,95,1,0),Color898989;
地:= IF(Var1>0,Var1,0);
STICKLINE(地>0,0,地,10,0),COLOR66FF00;
STICKLINE(地>0,0,地*0.9,10,0),COLOR66EE00;
STICKLINE(地>0,0,地*0.85,10,0),COLOR66DD00;
STICKLINE(地>0,0,地*0.8,10,0),COLOR66CC00;
STICKLINE(地>0,0,地*0.75,10,0),COLOR66BB00;
STICKLINE(地>0,0,地*0.7,10,0),COLOR66AA00;
STICKLINE(地>0,0,地*0.65,10,0),COLOR669900;
STICKLINE(地>0,0,地*0.6,10,0),COLOR668800;
STICKLINE(地>0,0,地*0.55,10,0),COLOR667700;
STICKLINE(地>0,0,地*0.5,10,0),COLOR666600;
STICKLINE(地>0,0,地*0.45,10,0),COLOR665500;
STICKLINE(地>0,0,地*0.4,10,0),COLOR664400;
STICKLINE(地>0,0,地*0.35,10,0),COLOR663300;
STICKLINE(地>0,0,地*0.3,10,0),COLOR662200;
STICKLINE(地>0,0,地*0.25,10,0),COLOR661100;
STICKLINE(地>0,0,地*0.2,10,0),COLOR660000;
STICKLINE(地>0,0,-地*0.3,10,0),Color417800;
基地:= IF(Var1<0,Var2,0);
STICKLINE(基地>=REF(基地,1),0,基地,7,0),color414141;
STICKLINE(基地<REF(基地,1),0,基地,7,0),ColorE2E4E5;
STICKLINE(基地,0,-(基地)*0.3,7,0),color232323;
STICKLINE(基地<REF(基地,1),-(基地)*0.3,0,7,0),Color808080;
发射: Var20,LINETHICK0,colorred;
stickline(发射>0,15,发射*1.1,1,0),pointdot,colorwhite;
stickline(发射>0,15,0,3,0),colorred,linethick6;
stickline(发射>0 and 发射<400,40,发射,1,1),ColorFFA4A6,linethick3;
stickline(发射>0 and 发射<400,40,发射,1,0),colorred,linethick1;
stickline(发射>0,15,发射*0.7,5,0),ColorFFA4A6,linethick5;
stickline(发射>0,15,发射*0.4,5,0),ColorFFA4A6,linethick7;
stickline(发射>0,15,发射*0.1,5,0),color0099cc,linethick7;
预警系统:IF(Var7>=200 AND Var6>=150,15,IF(Var7<=-200 AND Var6<=-150,-15,Var9))+60,LINETHICK0;
DRAWTEXT(预警系统=75,75,'↓'),align1,Color0000FF;
DRAWTEXT(预警系统=50,75,'↑'),align1,Color00FFFF;
STICKLINE(Var3>=REF(Var4,1),Var3,Var4,8,0),colorred;
STICKLINE(Var3<REF(Var4,1),Var3,Var4,8,0),coloryellow;
t1:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);
t2:=CLOSE<MA(CLOSE,20) AND MA(CLOSE,20)<REF(MA(CLOSE,20),1);
t3:=地>50 AND 预警系统>60 AND 天 =100;
t4:=地>48 AND 预警系统>60 AND 天<100;
t5:=基地>38 AND 预警系统<55;
t6:=发射>50 AND 天<90;
t7:=Var3<REF(Var4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
t8:=Var3>=REF(Var4,1) AND CLOSE<REF(CLOSE,1) AND 预警系统=60 AND 发射=0 AND 基地>REF(基地,1) AND VarC<REF(VarD,1);
DRAWTEXT(t1 and count(t1,30)=1,100,'或高抛低吸!'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t2 and count(t2,30)=1,90,'小心无量阴跌!☆'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t3 and count(t3,30)=1,70,'过急,需要调整!∨'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t4 and count(t4,30)=1,80,'顶部,注意风险!∨'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t5 and count(t5,30)=1,50,'不必杀跌,应有小反弹!∧'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t6 and count(t6,30)=1,30,'坚决抢反弹!▲'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t7 and count(t7,30)=1,40,'有资金进场迹象,关注!△'),ALIGN2,ALIGN2,COLOR00FFFF;
DRAWTEXT(t8 and count(t8,30)=1,20,'后市注意方向◇'),ALIGN2,COLOR00FFFF;
aa:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1);
aa1:=MA(VOL,8)/MA(VOL,45)>=2.5;
aa2:=MA(HIGH,13);
aa3:=MA(CLOSE,13);
aa4:=MA(AMOUNT/VOL,13)/100;
aa5:=MA(LOW,13);
aa6:=MA(AMOUNT/VOL,30)/100;
aa7:=MA(AMOUNT/VOL/100,13)*0.85;
aa8:=FILTER((aa2>REF(aa2,1)*1.015 AND aa5>REF(aa5,1)*1.015 AND aa3>REF(aa3,1)*1.015 AND aa4>REF(aa4,1)*1.015 ),5);
高位买:(c>0 and FINANCE(33)>0 and (aa or aa8))*20,LINETHICK0,ColorFF00FF;
stickline(高位买>0,11,高位买*1.1,1,0),pointdot,colorwhite;
stickline(高位买>0,5,0,3,0),colorred,linethick5;
stickline(高位买>0 and 高位买<400,10,高位买,1,1),ColorFFA4A6,linethick3;
stickline(高位买>0 and 高位买<400,5,高位买,1,0),colorred,linethick1;
stickline(高位买>0,5,高位买*0.7,2,0),ColorFFA4A6,linethick5;
stickline(高位买>0,5,高位买*0.4,3,0),ColorFFA4A6,linethick7;
stickline(高位买>0,5,高位买*0.1,2,0),color0099cc,linethick7;
DRAWTEXT(c>0 and 高位买 and BARSTATUS=2,60,'高位买进,注意风险!▲'),ALIGN2,COLOR00FFFF;
超短买:(c-ref(c,1))/ref(c,1)>0.03and c<10,LINETHICK0,Color60FFFF;
DRAWTEXT(c>0 and 超短买 and BARSTATUS=2,0,'超短买,次日逢低买进◆'),ALIGN2,COLOR00FFFF;

osc:=c/ref(c,n)*100;
LC:=REF(CLOSE,1);
vr:=SUM(IF(CLOSE>LC,VOL,0),n)/SUM(IF(CLOSE<=LC,VOL,0),10)*100;
ar:=SUM(HIGH-OPEN,n)/SUM(OPEN-LOW,n)*100;
psy:=COUNT(CLOSE>REF(CLOSE,1),N)/N*100;
DRAWTEXT(c>0 and BARSTATUS=2,90,'电子股评,仅供参考');
DRAWTEXT(c>0 and BARSTATUS=2 and "macd.macd">0,75,'强势!'),coloryellow;
DRAWTEXT(c>0 and BARSTATUS=2 and ref("macd.macd",1)<0 and "macd.macd">0 or c>0 and BARSTATUS=2 and ref("macd.macd",1)>0 and "macd.macd"<0,0,'强弱转换,择情而动!');
DRAWTEXT(c>0 and BARSTATUS=2 and "macd.macd"<0,75,'弱势!'),coloryellow;
DRAWTEXT(c>0 and BARSTATUS=2 and osc>100,60,'目前多方占优!'),colorgreen;
DRAWTEXT(c>0 and BARSTATUS=2 and osc<100,60,'目前空方占优!'),colorwhite;
DRAWTEXT(c>0 and BARSTATUS=2 and vr<40,45,'股价低位,有可能见底反弹!'),COLORMAGENTA;
DRAWTEXT(c>0 and BARSTATUS=2 and BETWEEN(vr,40 ,70),45,'股价低位,可建仓!'),COLORMAGENTA;
DRAWTEXT(c>0 and BARSTATUS=2 and BETWEEN(vr,70,150),45,'盘整阶段,可持有!');
DRAWTEXT(c>0 and BARSTATUS=2 and BETWEEN(vr,151,351),45,'应该获利了结!'),colorred;
DRAWTEXT(c>0 and BARSTATUS=2 and vr>350,45,'持股比较危险,股价有下调要求,应选择获利了结时机!'),colorred;
DRAWTEXT(c>0 and BARSTATUS=2 and BETWEEN(ar,69,151),30,'人气平稳,波动幅度较小!');
DRAWTEXT(c>0 and BARSTATUS=2 and ar>151,30,'人气比较活跃,随时有可能回档下调!'),colorred;
DRAWTEXT(c>0 and BARSTATUS=2 and ar<70,30,'人气不足,有反弹的要求!'),COLORMAGENTA;
DRAWTEXT(c>0 and BARSTATUS=2 and BETWEEN(psy,24,71),15,'市场买卖趋向正常!'),COLORGREEN;
DRAWTEXT(c>0 and BARSTATUS=2 and psy>75 OR c>0 and BARSTATUS=2 AND psy<25,15,'市场买卖趋向异常,行情有可能反转!'),colorred;
这是个很好的波动指标。请懂的兄弟帮下忙,趋势线黄色的时候加个1的信号,红色的时候加个0的信号。比如一直黄的就是一直趋势等于1,红的就是0,就是加个量化信号,方便选股。谢谢!

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容