首页 > > 详细

代做通达信指标公式、博易大师策略公式调试、玄黄变盘副图指标公式



飞狐玄黄变盘副图指标源码{玄黄变盘}

原理解析:
VAR1赋值:99999999999999999999999
VAR2赋值:成交量(手)的2日简单移动平均
VAR3赋值:99999999999999999999999
VAR4赋值:成交量(手)的40日简单移动平均
VAR5赋值:收盘价的2日简单移动平均
VAR6赋值:99999999999999999999999
VAR7赋值:收盘价的40日简单移动平均
VAR8赋值:"1A0001$收盘价"的2日简单移动平均
VAR9赋值:99999999999999999999999
VARA赋值:"1A0001$收盘价"的40日简单移动平均
VARB赋值:"1A0001$成交量(手)"的2日简单移动平均
VARC赋值:-9999999999999999999999
VARD赋值:"1A0001$成交量(手)"的40日简单移动平均
VARE赋值:(VAR8-VARA)/VARA
VARF赋值:(VAR5-VAR7)/VAR7
VAR10赋值:(VARB-VARD)/VARD
VAR11赋值:(VAR2-VAR4)/VAR4
VAR12赋值:VARE和0的较大值+VARF和0的较大值
VAR13赋值:VARE和0的较小值+VARF和0的较小值
VAR14赋值:VAR10和0的较大值+VAR11和0的较大值
VAR15赋值:VAR10和0的较小值+VAR11和0的较小值
VAR16赋值:如果VAR12>0,返回VAR12*10,否则返回VAR13*20
VAR17赋值:如果VAR14>0,返回VAR14,否则返回VAR15
输出变盘: VAR16>0 AND VAR12>0 AND VAR16>1日前的VAR16 AND VAR16上穿VAR17 AND 10日内VAR17的最高值>2, STICK,线宽为3,画黄色
S赋值:VAR16>0 AND VAR12>0 AND VAR16>1日前的VAR16 AND VAR16上穿VAR17 AND 10日内VAR17的最高值>2,
如果S,返回0.7,否则返回0,STICK,线宽为3,画红色
S1赋值:VAR16>0 AND VAR12>0 AND VAR16>1日前的VAR16 AND VAR16上穿VAR17 AND 10日内VAR17的最高值>2,
如果S1,返回0.3,否则返回0,STICK,线宽为3,画蓝色


源码:
Var1:=99999999999999999999999;
Var2:=MA(VOL,2);
Var3:=99999999999999999999999;
Var4:=MA(VOL,40);
Var5:=MA(CLOSE,2);
Var6:=99999999999999999999999;
Var7:=MA(CLOSE,40);
Var8:=MA("1A0001$CLOSE",2);
Var9:=99999999999999999999999;
VarA:=MA("1A0001$CLOSE",40);
VarB:=MA("1A0001$VOL",2);
VarC:=-9999999999999999999999;
VarD:=MA("1A0001$VOL",40);
VarE:=(Var8-VarA)/VarA;
VarF:=(Var5-Var7)/Var7;
Var10:=(VarB-VarD)/VarD;
Var11:=(Var2-Var4)/Var4;
Var12:=MAX(VarE,0)+MAX(VarF,0);
Var13:=MIN(VarE,0)+MIN(VarF,0);
Var14:=MAX(Var10,0)+MAX(Var11,0);
Var15:=MIN(Var10,0)+MIN(Var11,0);
Var16:=IF(Var12>0,Var12*10,Var13*20);
Var17:=IF(Var14>0,Var14,Var15);
变盘: Var16>0 AND Var12>0 AND Var16>REF(Var16,1) AND CROSS(Var16,Var17) AND HHV(Var17,10)>2, stick,linethick3,coloryellow;
s:=Var16>0 AND Var12>0 AND Var16>REF(Var16,1) AND CROSS(Var16,Var17) AND HHV(Var17,10)>2,;
IF(s,0.7,0),stick,linethick3,colorred;
s1:=Var16>0 AND Var12>0 AND Var16>REF(Var16,1) AND CROSS(Var16,Var17) AND HHV(Var17,10)>2,;
IF(s1,0.3,0),stick,linethick3,colorblue ;







 

联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。