Rss & SiteMap

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

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

标题:[求助]涨幅不同分别平仓,怎么编写?

1楼
gz12345678gz 发表于:2014/2/13 12:02:09
条件A,开多;在平仓时,区分两种情况:开仓价在昨天收盘价跌幅-1%以上的,按条件B平仓;但如果开仓价是在昨天收盘价跌幅-1%以下的,则按赢利两跳平仓。请教下如何编写,谢谢
2楼
jinzhe 发表于:2014/2/13 13:13:01

if b and (enterprice-ref(close,todaybar))/ref(close,todaybar)<=-0.01 then 平仓语句

if (enterprice-ref(close,todaybar))/ref(close,todaybar)>-0.01 and (enterprice-ref(close,to;daybar))/ref(close,todaybar)<0 and h>=enterrpcie+2*mindiff then 平仓语句;

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


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