[Full]
完整版
[Rss]
订阅
[Xml]
无图版
[Xhtml]
无图版
Rss
& SiteMap
金字塔客服中心 - 专业程序化交易软件提供商
http://www.weistock.com/bbs/
专业程序化软件提供商
◎
金字塔客服中心 - 专业程序化交易软件提供商
→
公式模型编写问题提交
→
求编写模型
共4 条记录, 每页显示 10 条, 页签:
[1]
[浏览完整版]
标题:求编写模型
1楼
sunfei_1024
发表于:2014/10/9 9:39:15
收盘价在60日均线以上,并且高于5个交易日的最高价,建立多仓;
收盘价收于60日均线以下,多头退出。
收盘价在60日均线以下,并且低于5个交易日的最低价,建立空仓;
收盘价收于60日均线以上,空头退出。
2楼
jinzhe
发表于:2014/10/9 9:41:20
处理中,请稍等
3楼
pyd
发表于:2014/10/9 9:57:50
ma1:ma(c,60);
hh:hhv(h,5);
ll:llv(l,5);
if c>ma1 and c>hh then buy(holding=0,1,market);
if c<ma1 then sell(holding>0,1,market);
if c<ma1 and c<ll then buyshort(holding=0,1,market);
if c>ma1 then sellshort(holding<0,1,market);
4楼
sunfei_1024
发表于:2014/10/9 9:58:57
谢谢老师
共4 条记录, 每页显示 10 条, 页签:
[1]
Powered By
Dvbbs
Version 8.3.0
Processed in 0.03125 s, 3 queries.
[Full]
完整版
[Rss]
订阅
[Xml]
无图版
[Xhtml]
无图版