请教跨周期引用 [博易POBO]
咨询内容:
P1:=5;
P2:=13;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) AND JJJ>(DYNAINFO(6)-0.01)));
CYC1:IF(JJJT,0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((H+L+C)/3,P1));
CYC2:IF(JJJT,0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((H+L+C)/3,P2));
DRAWICON(CROSS(CYC2,CYC1),(HIGH * 1.001),5),ALIGN1,COLOR00FFFF;
DRAWICON(CROSS(CYC1,CYC2),(LOW * 0.999),4),ALIGN1,COLOR00FFFF;
P2:=13;
CYC1:=STKCALC('',5,'IF(IF((DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01),1,(IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))<(DYNAINFO(5)+0.01) AND IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))>(DYNAINFO(6)-0.01))),0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((H+L+C)/3,P1))');
CYC2:=STKCALC('',5,'IF(IF((DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01),1,(IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))<(DYNAINFO(5)+0.01) AND IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))>(DYNAINFO(6)-0.01))),0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((H+L+C)/3,P2))');
DRAWICON(CROSS(CYC2,CYC1),(HIGH * 1.001),5),ALIGN1,COLOR00FFFF;
DRAWICON(CROSS(CYC1,CYC2),(LOW * 0.999),4),ALIGN1,COLOR00FFFF; 谢谢 来源 程序化久久网
请教跨周期引用
请教60分跨周期引用至5分周期P1:=5;
P2:=13;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) AND JJJ>(DYNAINFO(6)-0.01)));
CYC1:IF(JJJT,0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((H+L+C)/3,P1));
CYC2:IF(JJJT,0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((H+L+C)/3,P2));
DRAWICON(CROSS(CYC2,CYC1),(HIGH * 1.001),5),ALIGN1,COLOR00FFFF;
DRAWICON(CROSS(CYC1,CYC2),(LOW * 0.999),4),ALIGN1,COLOR00FFFF;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: P1:=5;P2:=13;
CYC1:=STKCALC('',5,'IF(IF((DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01),1,(IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))<(DYNAINFO(5)+0.01) AND IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))>(DYNAINFO(6)-0.01))),0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((H+L+C)/3,P1))');
CYC2:=STKCALC('',5,'IF(IF((DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01),1,(IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))<(DYNAINFO(5)+0.01) AND IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))>(DYNAINFO(6)-0.01))),0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((H+L+C)/3,P2))');
DRAWICON(CROSS(CYC2,CYC1),(HIGH * 1.001),5),ALIGN1,COLOR00FFFF;
DRAWICON(CROSS(CYC1,CYC2),(LOW * 0.999),4),ALIGN1,COLOR00FFFF; 谢谢 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容