通达信多空波段,买卖信号明确 源码副图用法简单精准
多空波段,
买卖信号明确
用法很简单,黄箭头买,蓝箭头卖
源码
VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR16:=EMA(VAR15,13);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR1E:=AMOUNT/VOL/100;
VAR20:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR21:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR23:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR24:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR25:=EMA(VAR24,24);
VAR26:=STD(VAR24,24);
VAR27:=(VAR24-VAR25)/VAR26*100;
VAR28:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR29:=EMA(VAR27,5);
VAR2A:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR2B:=SUMBARS(VOL,CAPITAL);
VAR2C:=(VAR20-MA(VAR20,90))/(0.015*AVEDEV(VAR20,90));
VAR2D:=((VAR2C+VAR2A+VAR29+VAR28+VAR21)/5+165)/4;
VAR2E:=(EMA(EMA(EMA(VAR2D,15),10),5)-25)*2+VAR23;
VAR2F:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR30:=EMA(VAR2F,13);
VAR31:=(VAR2D+VAR2F)/2/1.1;
VAR32:=HHV(VAR22,VAR2B);
VAR33:=LLV(VAR22,VAR2B);
VAR34:=(VAR22-VAR33)/(VAR32-VAR33);
人: IF(VAR22>=VAR32,(2*VAR22-VAR33-REF(VAR32,1))/(VAR32-VAR33),VAR34),COLORRED;
IF(VAR22<=VAR33,(2*VAR22-VAR33-REF(VAR33,1))/(VAR32-VAR33),VAR34),COLORGREEN;
AAA:=IF(VAR22>=VAR32,(2*VAR22-VAR33-REF(VAR32,1))/(VAR32-VAR33),VAR34);
DRAWICON(REF(AAA,1)<=0 AND AAA>0,0,34);
DRAWICON(AAA>=1,1.1,35);
地:0;
黄箭头选股如下:
VAR22:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR2B:=SUMBARS(VOL,CAPITAL);
VAR32:=HHV(VAR22,VAR2B);
VAR33:=LLV(VAR22,VAR2B);
VAR34:=(VAR22-VAR33)/(VAR32-VAR33);
AAA:=IF(VAR22>=VAR32,(2*VAR22-VAR33-REF(VAR32,1))/(VAR32-VAR33),VAR34);
DRAWICON(REF(AAA,1)<=0 AND AAA>0,0,34);
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
多空波段,
买卖信号明确
用法很简单,黄箭头买,蓝箭头卖
源码
VAR1赋值:(收盘价-100日内最低价最低值)/(100日内最高价最高值-100日内最低价最低值)*200
VAR1的3日[1日权重]移动平均
VAR2的3日[1日权重]移动平均
VAR4赋值:3*VAR2-2*VAR3
VAR5赋值:5日内最低价最低值
VAR6赋值:5日内最高价最高值
VAR7赋值:EMA((收盘价-VAR5)/(VAR6-VAR5)*100,4)*2
VAR8赋值:E0.667*1日前的VAR7+0.333*VAR7的2日简单移动平均
VAR9赋值:3*VAR7-2*VAR8
VARA赋值:POW(收盘价的5日简单移动平均,2)+收盘价的5日简单移动平均
VARB赋值:POW(最低价的5日简单移动平均,2)+最低价的5日简单移动平均
VARC赋值:POW(最高价的5日简单移动平均,2)+最高价的5日简单移动平均
VARD赋值:(VARA-64日内VARB最低值)/(64日内VARC最高值-64日内VARB最低值)*150+65-10
VARD的3日[1日权重]移动平均
VARE的3日[1日权重]移动平均
VAR10赋值:3*VARE-2*VARF
VAR11赋值:(最高价+最低价+收盘价*2)/4
VAR12赋值:VAR11的13日指数移动平均
VAR13赋值:VAR11的13估算标准差
VAR14赋值:(VAR11-VAR12)*100/VAR13
VAR15赋值:VAR14的5日指数移动平均
VAR16赋值:VAR15的13日指数移动平均
VAR17赋值:VAR15的13日指数移动平均+200-100
VAR18赋值:VAR17的10日指数移动平均
VAR19赋值:3*VAR17-2*VAR18
VAR1A赋值:VAR2+VAR7+VARE+VAR17
VAR1B赋值:VAR3+VAR8+VARF+VAR18
VAR1C赋值:VAR4+VAR9+VAR10+VAR19
VAR1D赋值:(最高价+最低价+收盘价)/3
VAR1E赋值:成交额/成交量/100
VAR20:=5的成交额日累和/5的成交量日累和/100
VAR21:=(VAR1D-VAR1D的34日简单移动平均)/(0.015*AVEDEV(VAR1D,34))
VAR22:=(收盘价+最高价+最低价+开盘价)/4
VAR23:=D成交额/成交量/100的成交量/当前流通股本日简单移动平均
VAR24:=(最高价+最低价+收盘价+VAR1D)/4
VAR25:=VAR24的24日指数移动平均
VAR26:=VAR24的24估算标准差
VAR27:=(VAR24-VAR25)/VAR26*100
VAR28:=(VAR1D-VAR1D的24日简单移动平均)/(0.015*AVEDEV(VAR1D,24))
VAR29:=VAR27的5日指数移动平均
VAR2A:=(VAR1E-VAR1E的21日简单移动平均)/(0.015*AVEDEV(VAR1E,21))
VAR2B:=成交量累加至当前流通股本的天数
VAR2C:=(VAR20-VAR20的90日简单移动平均)/(0.015*AVEDEV(VAR20,90))
VAR2D:=((VAR2C+VAR2A+VAR29+VAR28+VAR21)/5+165)/4
VAR2E:=(VAR2D的15日指数移动平均,10),5)-25)*2+VAR23
VAR2F:=(VAR1A+VAR1B+VAR1C*30)/32/5-15
VAR30:=VAR2F的13日指数移动平均
VAR31:=(VAR2D+VAR2F)/2/1.1
VAR32:=VAR2B日内VAR22最高值
VAR33:=VAR2B日内VAR22最低值
VAR34:=(VAR22-VAR33)/(VAR32-VAR33)
输出人: IF(VAR22>=VAR32,(2*VAR22-VAR33-1日前的VAR32)/(VAR32-VAR33),VAR34),画红色
IF(VAR22<=VAR33,(2*VAR22-VAR33-1日前的VAR33)/(VAR32-VAR33),VAR34),画绿色
AAA赋值:IF(VAR22>=VAR32,(2*VAR22-VAR33-1日前的VAR32)/(VAR32-VAR33),VAR34)
DRAWICON(1日前的AAA<=0 AND AAA>0,0,34)
当满足条件AAA>=1时,在1.1和35之间画图标
输出地:0
黄箭头选股如下:
VAR22:=(收盘价+最高价+最低价+开盘价)/4
VAR2B:=成交量累加至当前流通股本的天数
VAR32:=VAR2B日内VAR22最高值
VAR33:=VAR2B日内VAR22最低值
VAR34:=(VAR22-VAR33)/(VAR32-VAR33)
AAA赋值:IF(VAR22>=VAR32,(2*VAR22-VAR33-1日前的VAR32)/(VAR32-VAR33),VAR34)
DRAWICON(1日前的AAA<=0 AND AAA>0,0,34)
- QQ:88652583
- 邮箱:88652583@qq.com
- 工作时间:8:30-23:00
- 微信:88652583或扫描如下二维码
sitemap站点地图