您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

老师,这个指标用在白银小周期图中会正常显示B或S信号,但用在原油中时不会显示信号,请帮忙修改下。谢谢! [博易POBO]

咨询内容:

老师,这个指标用在白银小周期图中会正常显示B或S信号,但用在原油中时不会显示信号,请帮忙修改下。谢谢!

VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:=ZIG(C,5,1)*100,COLORRED;
G:=MA(B,2);
D:CROSS(B,G)*1000,COLORRED,LINETHICK2;
W:CROSS(G,B)*1000,COLORWHITE,LINETHICK2;
INDEXC1:="999001$CLOSE";
E:=REF(INDEXC1,1);
F:=SMA(MAX(INDEXC1-E,0),3,1)/SMA(ABS(INDEXC1-E),3,1);
VAR10:=F AND F<8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20; 
DRAWTEXT(W=1000,1000,'S' ),COLORWHITE;
DRAWTEXT(D=1000, 1000,'B'),COLORRED;


 

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:=ZIG(C,5,1)*100,COLORRED;
G:=MA(B,2);
D:CROSS(B,G)*1000,COLORRED,LINETHICK2;
W:CROSS(G,B)*1000,COLORWHITE,LINETHICK2;
INDEXC1:=CLOSE;
E:=REF(INDEXC1,1);
F:=SMA(MAX(INDEXC1-E,0),3,1)/SMA(ABS(INDEXC1-E),3,1);
VAR10:=F AND F<8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20; 
DRAWTEXT(W=1000,1000,'S' ),COLORWHITE;
DRAWTEXT(D=1000, 1000,'B'),COLORRED; 老师,在原油小周期中还是不会显示信号,在外汇中也不会。请再看看。谢谢! 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容