Rss & SiteMap

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

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

标题:[求助]求个模版

1楼
xian_0_9 发表于:2011/10/7 7:56:12

图表逐周期。

均选穿越模型C大于30日均线开多。小于30日均线平多。

当品种是RB的时候图表显示开10手。当品种是TA的时候显示开5手。

谢谢

2楼
阿火 发表于:2011/10/7 20:14:26
cangwei:=if(stricmp(strleft(stklabel,2),'rb')=0,10,if(stricmp(strleft(stklabel,2),'ta')=0,5,0));
ma30:=ma(c,30);
if holding>0 and c<ma30 and cangwei>0 then sell(1,cangwei,thisclose);
if holding=0 and c>ma30 and cangwei>0 then buy(1,cangwei,thisclose);
3楼
xian_0_9 发表于:2011/10/8 9:00:06

谢谢火哥

共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02704 s, 3 queries.