以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 高级功能研发区 (http://www.weistock.com/bbs/list.asp?boardid=5) ---- 能不能将以下策略改成python (http://www.weistock.com/bbs/dispbbs.asp?boardid=5&id=165457) |
-- 作者:zwdqx -- 发布时间:2018/9/10 19:51:41 -- 能不能将以下策略改成python macd00:=stkindi(\'\',\'macd.macd1\',0,21,120); LB:=240*vol/OPENMINUTES(currenttime)/ref(ma(vol,5),1); A:=CURRENTTIME>094500 and LB>2;
b:=o<1.05*ref(c,1); d:=c<1.04*ref(c,1); e:=c>o;
// C>O f:=c/llv(c,10)<1.20; ddjlr:=(DYNAINFO(136)+DYNAINFO(112)-DYNAINFO(113)-DYNAINFO(137))/(DYNAINFO(111)+DYNAINFO(135))>0.5; J:=ref(all(vol/ref(ma(vol,5),1)<2,4),1); if A and
B and D
and E and
F and macd00>ref(macd00,1) and J
and tbuyholding(1)=0 then begin
tbuy(1,10000/close,MKT); end if hhv(h,tenterbars)*0.97>c and
tbuyholding(0)>0 then begin
tsell(1,0,mkt); end if tenterbars>=1
and tbuyholding(0)>0 then
begin tsell(1,0,mkt); end [此贴子已经被作者于2018/9/10 19:52:13编辑过]
|
-- 作者:马良 -- 发布时间:2018/9/10 20:07:10 -- 策略是需要用户自己学习去改写的,普通论坛我们对此问题服务有限,希望用户谅解 |