Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:能不能将以下策略改成python

1楼
zwdqx 发表于:2018/9/10 19:51:41

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编辑过]
2楼
马良 发表于:2018/9/10 20:07:10
策略是需要用户自己学习去改写的,普通论坛我们对此问题服务有限,希望用户谅解
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.00781 s, 2 queries.