以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [求助]关于浮动盈亏 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=61343) |
-- 作者:gasoftcwhy -- 发布时间:2014/1/28 12:40:47 -- [求助]关于浮动盈亏 想将最低盈利点(浮动盈利)定为59.99(多空都一样),而不是止盈点,代码怎么写啊,太菜了。 |
-- 作者:jinzhe -- 发布时间:2014/1/28 13:07:22 -- 就是一直是59.99止盈? 100的时候40.01止盈 200的时候140.04止盈? 这样的? |
-- 作者:gasoftcwhy -- 发布时间:2014/1/28 18:49:37 -- 就是啊,楼主,感谢了,老是被抽!! |
-- 作者:jinzhe -- 发布时间:2014/1/29 9:31:11 -- if holding>0 and h<=hhv(h,enterbars+1)-59.99/MULTIPLIER then sell........; if holding<0 and l>=llv(l,enterbars+1)+59.99/MULTIPLIER then sellshort.....; 如果59.99是实际资金,那么按照上面写 如果59.99是点数,那么不要写 /MULTIPLIER
|
-- 作者:gasoftcwhy -- 发布时间:2014/1/29 10:39:24 -- 谢谢楼主,网站响应好慢啊 |
-- 作者:gasoftcwhy -- 发布时间:2014/1/29 11:45:19 -- 楼主,怎么不用OPENPROFIT这个函数呢? |