[Full]
完整版
[Rss]
订阅
[Xml]
无图版
[Xhtml]
无图版
Rss
& SiteMap
金字塔客服中心 - 专业程序化交易软件提供商
http://www.weistock.com/bbs/
专业程序化软件提供商
◎
金字塔客服中心 - 专业程序化交易软件提供商
→
公式模型编写问题提交
→
[求助]请老师编一个加仓的模型
共2 条记录, 每页显示 10 条, 页签:
[1]
[浏览完整版]
标题:[求助]请老师编一个加仓的模型
1楼
qihuotaiji
发表于:2014/1/1 20:38:05
c>ma(c,31) and c=hhv(c,9)买入开仓30%仓位;
c<ma(c,10) and c=llv(c,9)卖出平仓;
c<ma(c,31) and c=llv(c,9)卖出开仓30%仓位;
c>ma(c,10) and c=hhv(c,9)买入平仓;
连续亏损3次以后的下一次开仓40%仓位;
连续亏损4次以后的下一次开仓50%仓位;
连续盈利3次以后的下一次开仓20%仓位;
老师这个能完成吗?谢谢
2楼
jinzhe
发表于:2014/1/2 9:02:54
if c<ma10 and c=llv(c,9) and holding>0 then begin
sell(1,0,market);
if numprofit(1)>0 then begin
n:=n+1;
m:=0;
end
if numprofit(1)<0 then begin
n:=0;
m:=m+1;
end
end
共2 条记录, 每页显示 10 条, 页签:
[1]
Powered By
Dvbbs
Version 8.3.0
Processed in 0.03516 s, 3 queries.
[Full]
完整版
[Rss]
订阅
[Xml]
无图版
[Xhtml]
无图版