Rss & SiteMap

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

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

标题:K线走完模式下的停损单是如何触发的?

1楼
弦外之音 发表于:2012/1/9 11:46:06

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线走完后才发出停损信号还是盘中价格跌破指令价格时就直接发发出止损信号?

2楼
admin 发表于:2012/1/9 12:17:38
K线走完后,将停损单委托过去,然后等到盘中价格跌破指令价格时直接触发交易
3楼
弦外之音 发表于:2012/1/9 12:33:20
以下是引用admin在2012-1-9 12:17:38的发言:
K线走完后,将停损单委托过去,然后等到盘中价格跌破指令价格时直接触发交易

明白了,谢谢~

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


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