Rss & SiteMap

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

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

标题:老师,帮我写个加仓策略

1楼
宁静致远1 发表于:2016/10/14 16:19:30
我想设置一个,在初始仓位未平仓的情况下,再次出现买点,每次加2手,该怎么表达
2楼
宁静致远1 发表于:2016/10/14 16:40:49
if macd1>0 and macd1>ref(macd1,1) and isup  and oi>ref(oi,1)  and A>ref(A,1)  then buy(holding=0,ss,marketr);
这是开仓条件,如何把它加进去?
3楼
jinzhe 发表于:2016/10/14 16:43:08
if macd1>0 and macd1>ref(macd1,1) and isup  and oi>ref(oi,1)  and A>ref(A,1) and holding=ss  then buy(1,ss,marketr);
4楼
宁静致远1 发表于:2016/10/14 16:49:44
我加进去后,多单信号全部消失了,这是是吗原因
5楼
宁静致远1 发表于:2016/10/14 16:50:03
什么原因
6楼
宁静致远1 发表于:2016/10/14 16:52:02
我的意思是比如第一次开仓为10手,以后加仓都是2手2手的加
7楼
jinzhe 发表于:2016/10/14 16:59:21

if macd1>0 and macd1>ref(macd1,1) and isup  and oi>ref(oi,1)  and A>ref(A,1)  then buy(holding=0,ss,marketr);

if macd1>0 and macd1>ref(macd1,1) and isup  and oi>ref(oi,1)  and A>ref(A,1) and holding>=ss then buy(1,2,marketr);

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


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