通达信反弹高压先知指标公式
2021/7/1 18:07:14
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;
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;
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;
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;
顶:60,COLOR00FF00;
VAR9:=IF(VAR7<90,40,30);
分界:30,COLORFFFFFF;
底: FILTER(VAR1B=45,5),COLORRED;
STICKLINE(FILTER(VAR1B=75,5),75,60,5,0),COLORFFFFFF;
DRAWTEXT( FILTER(VAR1B=75,5),75,'高压'),COLORFFFFFF;
底部:PJX<=-19,NODRAW,COLORLIBLUE;
STICKLINE(PJX<=-19,-25,-20,12,0),COLORLIBLUE;
STICKLINE(PJX>70, 85,80,12,0),COLOR00EC00;
反弹:FILTER(VAR5<0,5),NODRAW, COLORYELLOW;
STICKLINE(VAR1D AND COUNT(VAR1D, 30)=1,-15, 0, 5, 0)COLORYELLOW;
DRAWTEXT(FILTER(VAR5<0, 5),-15,'反弹'),COLORYELLOW;
VAR200:=(CLOSE-LLV(LOW, 20))/(HHV(HIGH, 20)-LLV(LOW, 20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300, 5);
操盘:=3*VAR300-2*VAR400;
速利:CROSS(操盘,VAR300) AND VAR300<2.1 AND C>0,COLORRED;
STICKLINE(速利,25,0,0.3,0),COLORRED;
STICKLINE(速利,20,0,3,0),COLOR000033;
STICKLINE(速利,20,0,2.4,0),COLOR000005;
STICKLINE(速利,20,0,1.6,0),COLOR000077;
STICKLINE(速利,20,0,0.8,0),COLOR000099;
看股吧公 式 w ww.kanguba.com
[源码翻译]通达信公式动态翻译显示
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
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
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
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
输出顶:60,COLOR00FF00
VAR9赋值:如果VAR7<90,返回40,否则返回30
输出分界:30,COLORFFFFFF
输出底: VAR1B=45的5日过滤,画红色
当满足条件VAR1B=75的5日过滤时,在75和60位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFFFFF
当满足条件VAR1B=75的5日过滤时,在75位置书写文字,COLORFFFFFF
输出底部:PJX<=-19,NODRAW,画淡蓝色
当满足条件PJX<=-19时,在-25和-20位置之间画柱状线,宽度为12,0不为0则画空心柱.,画淡蓝色
当满足条件PJX>70时,在85和80位置之间画柱状线,宽度为12,0不为0则画空心柱.,COLOR00EC00
输出反弹:VAR5<0的5日过滤,NODRAW, 画黄色
当满足条件VAR1DANDCOUNT(VAR1D,30)=1时,在-15和0位置之间画柱状线,宽度为5,0不为0则画空心柱.画黄色
当满足条件VAR5<0的5日过滤时,在-15位置书写文字,画黄色
VAR200赋值:(收盘价-20日内最低价的最低值)/(20日内最高价的最高值-20日内最低价的最低值)*100
VAR300赋值:VAR200的3日[1日权重]移动平均的3日[1日权重]移动平均/28.57
VAR400赋值:VAR300的5日指数移动平均
操盘赋值:3*VAR300-2*VAR400
输出速利:操盘上穿VAR300 AND VAR300<2.1 AND 收盘价>0,画红色
当满足条件速利时,在25和0位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,画红色
当满足条件速利时,在20和0位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR000033
当满足条件速利时,在20和0位置之间画柱状线,宽度为2.4,0不为0则画空心柱.,COLOR000005
当满足条件速利时,在20和0位置之间画柱状线,宽度为1.6,0不为0则画空心柱.,COLOR000077
当满足条件速利时,在20和0位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,COLOR000099
其它股票公式列表