同花顺多空预警指标公式

 

VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
VAR3:=(VAR1-MA(VAR1,70))/(0.015*AVEDEV(VAR1,70));
VAR4:=IF(VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200,10,0);
VAR5:=IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,-10,VAR4);
VAR6:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR7:=100-Abs(VAR6);
VAR8:=IF(VAR7<90,VAR7,100);
PJX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
短期强弱:PJX,Colorff33ff;
VAR1A:=IF(PJX>0,PJX,0);
VAR1B:=IF(VAR3>=200 AND VAR2>=150,15,IF(VAR3<=-200 AND VAR2<=-150,-15,VAR5))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR8<100;
VAR1D:=VAR1A<48 AND VAR1B<60 AND VAR8<100;
DRAWTEXT(VAR1D AND COUNT(VAR1D,30)=1,80,'短线反弹'),colorFF7B00;
STICKLINE(VAR1D AND COUNT(VAR1D,30)=1,60,80,5,0),colorFFBE00;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,80,'短线高点'),colorFF62FF;
STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,60,80,5,0),color0000E9;
VAR2C:=IF(VAR3>=200 AND VAR2>=150,15,IF(VAR3<=-200 AND VAR2<=-150,-15,0))+30;
VAR2E:=VAR1A<48 AND VAR2C<30 AND VAR8<100;
VAR2F:=VAR1A<48 AND VAR2C>30 AND VAR8<100;
DRAWTEXT(VAR2E AND COUNT(VAR2E,30)=1,50,'短线反弹2'),color333399;
STICKLINE(VAR2E AND COUNT(VAR2E,30)=1,30,50,5,0),colorFFFF66;
DRAWTEXT(VAR2F AND COUNT(VAR2F,30)=1,50,'短线高点2'),colorFFCC66;
STICKLINE(VAR2F AND COUNT(VAR2F,30)=1,30,50,5,0),colorFFCC66;
VAR3D:=IF(VAR3<=200 AND VAR2<=150,-15,IF(VAR3>=-200 AND VAR2>=-150,15,VAR5));
VAR3E:=VAR3D>0 AND VAR8<100;
VAR3F:=VAR1A<48 AND VAR3D<0 AND VAR8<100;
DRAWTEXT(VAR7<90 AND VAR2+VAR3<=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,'短线反弹3'),coloryellow;
STICKLINE(VAR7<90 AND VAR2+VAR3<=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,0,5,0),coloryellow;
DRAWTEXT(VAR3E AND COUNT(VAR3E,30)=1,20,'短线高点3'),colorFF2266;
STICKLINE(VAR3E AND COUNT(VAR3E,30)=1,20,0,5,0),colorFF2266;
强势线:60,coloryellow;
VAR9:=IF(VAR7<90,40,30);
分界线:30,colorFFFFFF;
STICKLINE(FILTER(VAR1B=45,5),-20,-10,5,0),color077BF6;
DRAWTEXT(FILTER(VAR1B=45,5),0,'强支撑'),color077BF6;
STICKLINE(FILTER(VAR1B=75,5),75,60,5,0),colorred;
DRAWTEXT(FILTER(VAR1B=75,5),75,'高压'),colorred;
STICKLINE(PJX<=-19,-25,-20,12,0),colorred;
STICKLINE(PJX>=70,85,80,12,0),coloryellow;
DRAWTEXT(FILTER(VAR5>0,5),30,'★'),coloryellow;
多空预警:0,color0726CA;
PARTLINE(VAR9=40 AND VAR2>=0 AND VAR3>=0,多空预警,color0000B5);
PARTLINE(VAR9=40 AND VAR2<=0 AND VAR3<=0,多空预警,color077BF6);




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


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

VAR1赋值:(最高价+最低价+收盘价)/3
VAR2赋值:(VAR1-VAR1的14日简单移动平均)/(0.015*VAR1的14日平均绝对偏差)
VAR3赋值:(VAR1-VAR1的70日简单移动平均)/(0.015*VAR1的70日平均绝对偏差)
VAR4赋值:如果VAR2>=150ANDVAR2<200ANDVAR3>=150ANDVAR3<200,返回10,否则返回0
VAR5赋值:如果VAR2<=-150ANDVAR2>-200ANDVAR3<=-150ANDVAR3>-200,返回-10,否则返回VAR4
VAR6赋值:(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100
VAR7赋值:100-VAR6的绝对值
VAR8赋值:如果VAR7<90,返回VAR7,否则返回100
PJX赋值:100*(收盘价-34日内收盘价的最低值)/(34日内最高价的最高值-34日内最低价的最低值)的5日简单移动平均-20
输出短期强弱:PJX,COLORFF33FF
VAR1A赋值:如果PJX>0,返回PJX,否则返回0
VAR1B赋值:如果VAR3>=200ANDVAR2>=150,返回15,否则返回如果VAR3<=-200ANDVAR2<=-150,返回-15,否则返回VAR5+60
VAR1C赋值:VAR1A>48 AND VAR1B>60 AND VAR8<100
VAR1D赋值:VAR1A<48 AND VAR1B<60 AND VAR8<100
当满足条件VAR1DANDCOUNT(VAR1D,30)=1时,在80位置书写文字,COLORFF7B00
当满足条件VAR1DANDCOUNT(VAR1D,30)=1时,在60和80位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFBE00
当满足条件VAR1CANDCOUNT(VAR1C,30)=1时,在80位置书写文字,COLORFF62FF
当满足条件VAR1CANDCOUNT(VAR1C,30)=1时,在60和80位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000E9
VAR2C赋值:如果VAR3>=200ANDVAR2>=150,返回15,否则返回如果VAR3<=-200ANDVAR2<=-150,返回-15,否则返回0+30
VAR2E赋值:VAR1A<48 AND VAR2C<30 AND VAR8<100
VAR2F赋值:VAR1A<48 AND VAR2C>30 AND VAR8<100
当满足条件VAR2EANDCOUNT(VAR2E,30)=1时,在50位置书写文字,COLOR333399
当满足条件VAR2EANDCOUNT(VAR2E,30)=1时,在30和50位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFFF66
当满足条件VAR2FANDCOUNT(VAR2F,30)=1时,在50位置书写文字,COLORFFCC66
当满足条件VAR2FANDCOUNT(VAR2F,30)=1时,在30和50位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFCC66
VAR3D赋值:如果VAR3<=200ANDVAR2<=150,返回-15,否则返回如果VAR3>=-200ANDVAR2>=-150,返回15,否则返回VAR5
VAR3E赋值:VAR3D>0 AND VAR8<100
VAR3F赋值:VAR1A<48 AND VAR3D<0 AND VAR8<100
当满足条件VAR7<90ANDVAR2+VAR3<=0ANDVAR3FANDCOUNT(VAR3F,30)=1时,在20位置书写文字,画黄色
当满足条件VAR7<90ANDVAR2+VAR3<=0ANDVAR3FANDCOUNT(VAR3F,30)=1时,在20和0位置之间画柱状线,宽度为5,0不为0则画空心柱.,画黄色
当满足条件VAR3EANDCOUNT(VAR3E,30)=1时,在20位置书写文字,COLORFF2266
当满足条件VAR3EANDCOUNT(VAR3E,30)=1时,在20和0位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFF2266
输出强势线:60,画黄色
VAR9赋值:如果VAR7<90,返回40,否则返回30
输出分界线:30,COLORFFFFFF
当满足条件VAR1B=45的5日过滤时,在-20和-10位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR077BF6
当满足条件VAR1B=45的5日过滤时,在0位置书写文字,COLOR077BF6
当满足条件VAR1B=75的5日过滤时,在75和60位置之间画柱状线,宽度为5,0不为0则画空心柱.,画红色
当满足条件VAR1B=75的5日过滤时,在75位置书写文字,画红色
当满足条件PJX<=-19时,在-25和-20位置之间画柱状线,宽度为12,0不为0则画空心柱.,画红色
当满足条件PJX>=70时,在85和80位置之间画柱状线,宽度为12,0不为0则画空心柱.,画黄色
当满足条件VAR5>0的5日过滤时,在30位置书写文字,画黄色
输出多空预警:0,COLOR0726CA
[新]条件颜色线
[新]条件颜色线

指标安装下载帮助  |   联系我们  |  股朋指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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