以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- K线走完模式下的停损单是如何触发的? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=9619) |
-- 作者:弦外之音 -- 发布时间:2012/1/9 11:46:06 -- K线走完模式下的停损单是如何触发的? buycond:=c>ma(c,5); sellcond:=c<ma(c,5); if holding>0 and sellcond then sell(1,1,market); if holding<0 and buycond then sell(1,1,market); if holding=0 and buycond then buy(1,1,market); if holding=0 and sellcond then buyshort(1,1,market); 如题,上面的模型在K线走完模式下运行。 问题是: if holding>0 and l<enterprice-10 then sell(1,1,stop,enterprice-10); 该停损语句在K线走完模式下运行,是当K线走完后才发出停损信号还是盘中价格跌破指令价格时就直接发发出止损信号? |
-- 作者:admin -- 发布时间:2012/1/9 12:17:38 -- K线走完后,将停损单委托过去,然后等到盘中价格跌破指令价格时直接触发交易 |
-- 作者:弦外之音 -- 发布时间:2012/1/9 12:33:20 -- 以下是引用admin在2012-1-9 12:17:38的发言:
K线走完后,将停损单委托过去,然后等到盘中价格跌破指令价格时直接触发交易 明白了,谢谢~ |