与妖共舞通达信公式 副图 源码附图
VAR1:=CLOSE;
VAR2:=LOW;
VAR3:=HIGH;
VAR4:=OPEN;
VAR5:=4*VAR1;
VAR6:=3*VAR2;
VAR7:=2*VAR3;
VAR8:=1*VAR4;
VAR9:=POW(VAR5+VAR6+VAR7+VAR8,2);
VAR10:=SUM(IF(VAR9>REF(VAR9,1),VAR9*vol,0),55)/SUM(IF(VAR9<REF(VAR9,1),VAR9*VOL,0),55);
VAR11:=20*VAR1+19*VAR2+18*VAR3+17*VAR4;
VAR12:=100-100/(1+VAR10);
VAR14:=BARSSINCE(VAR3>10);
VAR18:=SLOPE(VAR11+VAR12,VAR14);
VAR22:=VAR1-REF(MA(VAR1,20),20/2+1);
VAR24:=SUM(MA(VAR3-VAR2,9)/MA(MA(VAR3-VAR2,9),9),25);
VAR25:=MA(VAR24,6);
VAR26:=4;
VAR27:=3;
VAR28:=2;
VAR29:=1;
VAR30:=BARSCOUNT(4*VAR1+3*VAR2+2*VAR3+1*VAR4-VAR27*VAR1-(VAR28+VAR29)*VAR2-(VAR26-VAR28)*VAR3-(VAR28-VAR29)*VAR4);
VAR36:=VAR26*VAR2+VAR27*VAR4-VAR28*VAR1+VAR7/VAR27!=POW(VAR28,2)*VAR3+(VAR26-VAR29)*VAR4-SQRT(VAR26)*VAR1+VAR3*VAR28/(VAR28+VAR29);
VAR40:=VAR26*VAR27*VAR28*VAR29+VAR26*VAR27-VAR27*VAR28;
VAR47:=REF(LOW,1);
VAR48:=SMA(Abs(LOW-VAR47),3,1)/SMA(MAX(LOW-VAR47,0),3,1)*100;
VAR49:=EMA(VAR48*10,3);
VAR50:=SQRT(VAR26)+VAR26*VAR27-POW(VAR28,2)-VAR28*VAR26;
VAR51:=LLV(LOW,13);
VAR52:=HHV(VAR49,13);
VAR53:=EMA(IF(LOW<=VAR51,(VAR49+VAR52*2)/2,0),3)/618;
VAR55:=VAR48+VAR24;
VAR56:=VAR49+VAR22;
VAR57:=VAR30>VAR40;
VAR58:=MA(VAR1,VAR26+VAR18+VAR28);
VAR59:=MA(VAR5-VAR27*VAR1,VAR26+VAR27+VAR28);
VAR60:=(VAR27*VAR28+VAR26)*VAR2!=(VAR27*VAR26-VAR28)*VAR3;
VAR61:=MA(VAR51,VAR27+VAR27+VAR26);
VAR64:=REF(CLOSE,VAR27)<1.095*REF(CLOSE,VAR26+VAR28) AND REF(CLOSE,VAR27)>1.028*REF(CLOSE,VAR26+VAR28) AND VAR59>VAR58 AND REF(LOW,VAR28+VAR27+VAR26)<REF(HIGH,VAR29+VAR28+VAR27) AND NOT(REF(CLOSE,VAR28*VAR27)>REF(CLOSE,VAR28*VAR26)) AND REF((CLOSE+HIGH+OPEN)/VAR26,VAR28*VAR27)>1.03*REF((CLOSE+HIGH+OPEN)/(VAR27+VAR28-VAR29),VAR26+VAR28+VAR27-VAR28-VAR29) AND VAR56>VAR55;
VAR65:=VAR61>VAR59 AND VAR53>VAR48 AND REF(CLOSE,VAR27+VAR28)>REF(HIGH,VAR28*VAR26) AND REF(LOW,VAR27*VAR28)<0.97*REF(CLOSE,VAR25+VAR26+VAR27) AND BArslAST(REF(CLOSE,3)>REF(LOW,4)) AND REF(4*CLOSE+OPEN+2*LOW,8)>1.02*REF(OPEN+4*CLOSE+2*HIGH,8);
VAR66:=8*CLOSE+7*OPEN+6*HIGH+5*LOW;
VAR67:=EMA(IF(LOW<=VAR51,(VAR49+VAR52*2)/2,0),3)/618*(VAR27*VAR28+VAR29)/((VAR26+VAR27)*VAR53)+(VAR26*VAR27*VAR28+VAR28);
VAR70:=VAR5/((VAR27-VAR28)*VAR1)*VAR67;
VAR74:=REF(CLOSE,VAR26+VAR27)>REF(HIGH,VAR26+VAR28) AND FILTER(crOSS(VAR70,VAR29+VAR28),VAR29+VAR28) AND REF((VAR26+VAR27)*VAR3,VAR26+VAR27+VAR28)<0.97*REF((VAR27*VAR28+VAR29)*VAR2,VAR28+VAR26+VAR27);
VAR75:=VAR70+EMA(IF(LOW<=VAR51,(VAR49+VAR52*2)/2,0),3)/618/VAR53-(VAR27*VAR28+SQRT(VAR26)+VAR29);
VAR76:=VAR67/VAR27+POW(VAR27*(VAR28+VAR29),2)+VAR26*VAR27-VAR28;
VAR77:=VAR76/VAR75+VAR7/HIGH*(8*CLOSE+7*OPEN+6*HIGH+5*LOW)/(VAR28*VAR76-VAR75)/VAR66;
VAR78:=7*CLOSE+6*OPEN+5*HIGH+(VAR26*VAR27*VAR28*VAR29-VAR67+VAR27*VAR28+VAR29)*LOW;
VAR79:=VAR66-VAR78;
VAR80:=VAR79-(CLOSE+OPEN+LOW);
VAR81:=VAR80*VAR77;
VAR82:=SUM(IF(VAR9>REF(VAR9,1),VAR9*VOL,0),55)/SUM(IF(VAR9<REF(VAR9,1),VAR9*VOL,0),55)+EMA(VAR81,VAR50)-VAR10;
VAR83:=MA(VAR24,6)+VAR26*VAR27*VAR28*VAR29-VAR25-VAR27*VAR28-VAR26-VAR28;
VAR84:=VAR57 AND CROSS(4*VAR1+3*VAR2+2*VAR3+1*VAR4-VAR27*VAR1-(VAR28+VAR29)*VAR2-(VAR26-VAR28)*VAR3-(VAR28-VAR29)*VAR4,VAR82) AND VAR36 AND VAR60;
VAR85:=VAR64 OR VAR65 OR VAR74 OR VAR84;
选股:FILTER(VAR85,VAR83);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:收盘价
VAR2赋值:最低价
VAR3赋值:最高价
VAR4赋值:开盘价
VAR5赋值:4*VAR1
VAR6赋值:3*VAR2
VAR7赋值:2*VAR3
VAR8赋值:1*VAR4
VAR9赋值:POW(VAR5+VAR6+VAR7+VAR8,2)
VAR10:=SUM(IF(VAR9>1日前的VAR9,VAR9*成交量,0),55)/SUM(IF(VAR9<1日前的VAR9,VAR9*成交量,0),55)
VAR11:=20*VAR1+19*VAR2+18*VAR3+17*VAR4
VAR12:=100-100/(1+VAR10)
VAR14:=BARSSINCE(VAR3>10)
VAR18:=SLOPE(VAR11+VAR12,VAR14)
VAR22:=VAR1-REF(VAR1的20日简单移动平均,20/2+1)
VAR24:=SUM(VAR3-VAR2的9日简单移动平均/VAR3-VAR2的9日简单移动平均的9日简单移动平均,25)
VAR25:=VAR24的6日简单移动平均
VAR26:=4
VAR27:=3
VAR28:=2
VAR29:=1
VAR30:=4*VAR1+3*VAR2+2*VAR3+1*VAR4-VAR27*VAR1-(VAR28+VAR29的有效数据周期数*VAR2-(VAR26-VAR28)*VAR3-(VAR28-VAR29)*VAR4)
VAR36:=VAR26*VAR2+VAR27*VAR4-VAR28*VAR1+VAR7/VAR27!=POW(VAR28,2)*VAR3+(VAR26-VAR29)*VAR4-SQRT(VAR26)*VAR1+VAR3*VAR28/(VAR28+VAR29)
VAR40:=VAR26*VAR27*VAR28*VAR29+VAR26*VAR27-VAR27*VAR28
VAR47:=1日前的最低价
VAR48:=SMA(最低价-VAR47的绝对值,3,1)/SMA(最低价-VAR47和0较大值,3,1)*100
VAR49:=VAR48*10的3日指数移动平均
VAR50:=SQRT(VAR26)+VAR26*VAR27-POW(VAR28,2)-VAR28*VAR26
VAR51:=13日内最低价最低值
VAR52:=13日内VAR49最高值
VAR53:=EMA(IF(最低价<=VAR51,(VAR49+VAR52*2)/2,0),3)/618
VAR55:=VAR48+VAR24
VAR56:=VAR49+VAR22
VAR57:=VAR30>VAR40
VAR58:=VAR1的VAR26+VAR18+VAR28日简单移动平均
VAR59:=VAR5-VAR27*VAR1的VAR26+VAR27+VAR28日简单移动平均
VAR60:=(VAR27*VAR28+VAR26)*VAR2!=(VAR27*VAR26-VAR28)*VAR3
VAR61:=VAR51的VAR27+VAR27+VAR26日简单移动平均
VAR64:=VAR27日前的收盘价<1.095*VAR26+VAR28日前的收盘价 AND VAR27日前的收盘价>1.028*VAR26+VAR28日前的收盘价 AND VAR59>VAR58 AND VAR28+VAR27+VAR26日前的最低价VAR28*VAR26日前的收盘价) AND REF((收盘价+最高价+开盘价)/VAR26,VAR28*VAR27)>1.03*REF((收盘价+最高价+开盘价)/(VAR27+VAR28-VAR29),VAR26+VAR28+VAR27-VAR28-VAR29) AND VAR56>VAR55
VAR65:=VAR61>VAR59 AND VAR53>VAR48 AND VAR27+VAR28日前的收盘价>VAR28*VAR26日前的最高价 AND VAR27*VAR28日前的最低价<0.97*VAR25+VAR26+VAR27日前的收盘价 AND 上次3日前的收盘价>4日前的最低价距今天数 AND 8日前的4*收盘价+开盘价+2*最低价>1.02*8日前的开盘价+4*收盘价+2*最高价
VAR66:=8*收盘价+7*开盘价+6*最高价+5*最低价
VAR67:=EMA(IF(最低价<=VAR51,(VAR49+VAR52*2)/2,0),3)/618*(VAR27*VAR28+VAR29)/((VAR26+VAR27)*VAR53)+(VAR26*VAR27*VAR28+VAR28)
VAR70:=VAR5/((VAR27-VAR28)*VAR1)*VAR67
VAR74:=VAR26+VAR27日前的收盘价>VAR26+VAR28日前的最高价 AND FILTER(VAR70上穿VAR29+VAR28,VAR29+VAR28) AND REF((VAR26+VAR27)*VAR3,VAR26+VAR27+VAR28)<0.97*REF((VAR27*VAR28+VAR29)*VAR2,VAR28+VAR26+VAR27)
VAR75:=VAR70+EMA(IF(最低价<=VAR51,(VAR49+VAR52*2)/2,0),3)/618/VAR53-(VAR27*VAR28+SQRT(VAR26)+VAR29)
VAR76:=VAR67/VAR27+POW(VAR27*(VAR28+VAR29),2)+VAR26*VAR27-VAR28
VAR77:=VAR76/VAR75+VAR7/最高价*(8*收盘价+7*开盘价+6*最高价+5*最低价)/(VAR28*VAR76-VAR75)/VAR66
VAR78:=7*收盘价+6*开盘价+5*最高价+(VAR26*VAR27*VAR28*VAR29-VAR67+VAR27*VAR28+VAR29)*最低价
VAR79:=VAR66-VAR78
VAR80:=VAR79-(收盘价+开盘价+最低价)
VAR81:=VAR80*VAR77
VAR82:=SUM(IF(VAR9>1日前的VAR9,VAR9*成交量,0),55)/SUM(IF(VAR9<1日前的VAR9,VAR9*成交量,0),55)+VAR81的VAR50日指数移动平均-VAR10
VAR83:=VAR24的6日简单移动平均+VAR26*VAR27*VAR28*VAR29-VAR25-VAR27*VAR28-VAR26-VAR28
VAR84:=VAR57 AND CROSS(4*VAR1+3*VAR2+2*VAR3+1*VAR4-VAR27*VAR1-(VAR28+VAR29)*VAR2-(VAR26-VAR28)*VAR3-(VAR28-VAR29)*VAR4,VAR82) AND VAR36 AND VAR60
VAR85:=VAR64 OR VAR65 OR VAR74 OR VAR84
输出选股:VAR85的VAR83过滤