通达信多空上攻指标公式
VAR1:=25;VAR2:=13;VAR3:=13;VAR4:=CLOSE-REF(CLOSE,1);
VAR6:=EMA(EMA(Abs(VAR4),VAR1),VAR2);
VAR8:=90;
VAR10:=MA(VOL,5);VAR11:=MA(VOL,35);VAR12:=MA(VOL,135);
VAR14:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
空:EMA(多,VAR3),COLORGREEN;
VAR15:=CROSS(多,空);
VAR17:=IF(CLOSE/REF(CLOSE,1)>1.094 AND CLOSE=HIGH AND CLOSE=OPEN,HHV(VOL,20),VOL);
VAR19:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
VAR21:=VAR20;
VAR23:=(VAR22-MA(VAR22,14))/(0.015*AVEDEV(VAR22,14));
VAR25:=(VAR22-MA(VAR22,308))/(0.015*AVEDEV(VAR22,308));
VAR27:=VAR26>100;VAR28:=VAR27;VAR29:=100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
VAR31:=VAR30>(-20) AND VAR29<20 AND VAR23>100;
VAR33:=VAR32;
VAR35:=VAR9;
VAR37:=VAR13;
VAR39:=VAR21 AND VAR28;
VAR41:=VAR21 AND VAR34 AND (VAR36 OR VAR38);
VAR43:=VAR39 OR VAR40 OR VAR41 OR VAR42;
VAR45:=EVERY(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1),BARSCOUNT(CLOSE)) AND CLOSE=LOW OR ZSTJJ AND CLOSE=HIGH;
VAR47:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR49:=COUNT(VAR48,3)>=2 AND VAR46 AND NOT(VAR45) AND COUNT(VAR45,3)<1;
VAR51:=VAR16 OR VAR50 AND VAR14>=5.8;
VAR53:=100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5));
VAR55:=100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20));
VAR57:=MA(CLOSE,26);
VAR59:=VAR53=100 AND REF(VAR53,1)=100 AND REF(VAR53,2)=100 AND VAR56>35 AND VAR56>REF(VAR56,1)+5 AND REF(VAR56,1)>REF(VAR56,2);
VAR61:=REF(VAR54,1)>=REF(VAR53,1);VAR62:=50;VAR63:=VAR61 AND REF(VAR53,1)>=REF(VAR55,1) AND REF(VAR55,1)>=REF(VAR56,1) AND REF(VAR53,2)>=REF(VAR54,2) AND REF(VAR54,2)> REF(VAR55,2) AND REF(VAR55,2)>REF(VAR56,2) AND REF(VAR54,3)>REF(VAR55,3) AND REF(VAR55,3)>REF(VAR56,3);
VAR65:=CLOSE<VAR58;
VAR67:=CLOSE;VAR68:=88;VAR69:=91;VAR70:=HIGH;VAR71:=IF(VAR67>REF(VAR67,1),VAR68,0);
VAR73:=FILTER(VAR72>90,45)=1;
VAR75:=HHV(VAR74,30);
VAR77:=HHV(VOL,60);
VAR79:=VAR76 AND VAR78;
VAR81:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL);VAR82:=MA(VAR81,5);VAR83:=MA(VAR81,60);
VAR85:=MA(VOL,5);VAR86:=MA(VOL,35);VAR87:=MA(VOL,135);
VAR95:=FILTER(VAR88,20);
STICKLINE((VAR52 AND VAR84) OR (VAR52 AND VAR95) OR (VAR52 AND VAR96),空,空+15,1,0),COLORRED,LINETHICK2;
STICKLINE(FILTER((VAR66 AND VAR84) OR (VAR66 AND VAR95) OR (VAR66 AND VAR96),12),多+15,多,1,0),COLORRED,LINETHICK3;
STICKLINE((VAR73 AND VAR84) OR (VAR73 AND VAR95) OR (VAR73 AND VAR96),多+15,多,1,0),COLORRED,LINETHICK3;
STICKLINE((VAR80 AND VAR84) OR (VAR80 AND VAR95) OR (VAR80 AND VAR96),多+15,多,1,0),COLORRED,LINETHICK3;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:25
VAR2赋值:13
VAR3赋值:13
VAR4赋值:收盘价-1日前的收盘价
VAR6赋值:EMA(EMA(VAR4的绝对值,VAR1),VAR2)
VAR8赋值:90
VAR10:=成交量的5日简单移动平均
VAR11:=成交量的35日简单移动平均
VAR12:=成交量的135日简单移动平均
VAR14:=(收盘价-1日前的收盘价)/1日前的收盘价*100
输出空:多的VAR3日指数移动平均,画绿色
VAR15:=多上穿空
VAR17:=IF(收盘价/1日前的收盘价>1.094 AND 收盘价=最高价 AND 收盘价=开盘价,20日内成交量最高值,成交量)
VAR19:=100*(60日内最高价最高值-收盘价)/(60日内最高价最高值-60日内最低价最低值)
VAR21:=VAR20
VAR23:=(VAR22-VAR22的14日简单移动平均)/(0.015*AVEDEV(VAR22,14))
VAR25:=(VAR22-VAR22的308日简单移动平均)/(0.015*AVEDEV(VAR22,308))
VAR27:=VAR26>100
VAR28:=VAR27
VAR29:=100*(5日内最高价最高值-收盘价)/(5日内最高价最高值-5日内最低价最低值)
VAR31:=VAR30>(-20) AND VAR29<20 AND VAR23>100
VAR33:=VAR32
VAR35:=VAR9
VAR37:=VAR13
VAR39:=VAR21 AND VAR28
VAR41:=VAR21 AND VAR34 AND (VAR36 OR VAR38)
VAR43:=VAR39 OR VAR40 OR VAR41 OR VAR42
VAR45:=EVERY(收盘价>=ZTPRICE(1日前的收盘价,0.1),收盘价的有效数据周期数) AND 收盘价=最低价 OR ZSTJJ AND 收盘价=最高价
VAR47:=(收盘价-1日前的收盘价)/1日前的收盘价*100
VAR49:=统计3日满足VAR48的天数>=2 AND VAR46 AND NOT(VAR45) AND 统计3日满足VAR45的天数<1
VAR51赋值:VAR16 OR VAR50 AND VAR14>=5.8
VAR53赋值:100*(收盘价-5日内最低价最低值)/(5日内收盘价最高值-5日内最低价最低值)
VAR55赋值:100*(收盘价-20日内最低价最低值)/(20日内收盘价最高值-20日内最低价最低值)
VAR57赋值:收盘价的26日简单移动平均
VAR59赋值:VAR53=100 AND 1日前的VAR53=100 AND 2日前的VAR53=100 AND VAR56>35 AND VAR56>1日前的VAR56+5 AND 1日前的VAR56>2日前的VAR56
VAR61:=1日前的VAR54>=1日前的VAR53
VAR62:=50
VAR63:=VAR61 AND 1日前的VAR53>=1日前的VAR55 AND 1日前的VAR55>=1日前的VAR56 AND 2日前的VAR53>=2日前的VAR54 AND 2日前的VAR54> 2日前的VAR55 AND 2日前的VAR55>2日前的VAR56 AND 3日前的VAR54>3日前的VAR55 AND 3日前的VAR55>3日前的VAR56
VAR65:=收盘价VAR67:=收盘价
VAR68:=88
VAR69:=91
VAR70赋值:最高价
VAR71赋值:IF(VAR67>1日前的VAR67,VAR68,0)
VAR73赋值:VAR72>90的45过滤=1
VAR75赋值:30日内VAR74最高值
VAR77赋值:60日内成交量最高值
VAR79赋值:VAR76 AND VAR78
如果 到最后交易的周期=1 AND PERIOD=5返回成交量*240/FROM开盘价否则返回成交量
VAR82:=VAR81的5日简单移动平均
VAR83:=VAR81的60日简单移动平均
VAR85:=成交量的5日简单移动平均
VAR86:=成交量的35日简单移动平均
VAR87:=成交量的135日简单移动平均
VAR95赋值:VAR88的20过滤
STICKLINE((VAR52 AND VAR84) OR (VAR52 AND VAR95) OR (VAR52 AND VAR96),空,空+15,1,0),画红色, 线宽为2
STICKLINE(FILTER((VAR66 AND VAR84) OR (VAR66 AND VAR95) OR (VAR66 AND VAR96),12),多+15,多,1,0),画红色, 线宽为3
STICKLINE((VAR73 AND VAR84) OR (VAR73 AND VAR95) OR (VAR73 AND VAR96),多+15,多,1,0),画红色, 线宽为3
STICKLINE((VAR80 AND VAR84) OR (VAR80 AND VAR95) OR (VAR80 AND VAR96),多+15,多,1,0),画红色, 线宽为3
- QQ:88652583
- 邮箱:88652583@qq.com
- 工作时间:8:30-23:00
- 微信:88652583或扫描如下二维码
sitemap站点地图