以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 求救,策略源码始终没有多单信号 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=13773) |
-- 作者:lcgs005 -- 发布时间:2012/8/19 18:49:47 -- 求救,策略源码始终没有多单信号 //求救啊,始终没有多单信号,不知原因 //策略原理:先求出macd与diff大于0的最高值,和小于0的最低值,在高值处开空仓,低值处开多仓,在运行过程中若有盈利,止盈,否则运行完整个macd高值--diff低值后再平仓 //基础线 sell(dx,1,market); |
-- 作者:guotx2010 -- 发布时间:2012/8/19 22:49:01 -- if holding>0 then begin if holding<0 then begin if holding=0 then begin 这是开平仓部分的代码
|
-- 作者:lcgs005 -- 发布时间:2012/8/19 22:55:39 -- 以下是引用guotx2010在2012-8-19 22:49:01的发言:
if holding>0 then begin if holding<0 then begin if holding=0 then begin 这是开平仓部分的代码
谢谢,不过仍有部份信号出来不了,仔细看了下图,当空单信号未出来前,多单信号发不出来,但当平空信号出来后,开多信号已经过去了,所以发不出信号,不知有无其它解决办法 |
-- 作者:admin -- 发布时间:2012/8/20 11:18:38 -- 建议初学用户一定要仔细的阅读并研究金字塔的调试技巧,你说的这个问题即便是我们帮你也是要通过这些技巧来完成
http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=332 问题4 |