entryprice [MultiCharts MC]
- 咨询内容:
讲师 您好
我想请问关於entryprice的问题, 如果我的挂单都使用停止单, 那麽在跳空时会发生挂单价和实际成交价不同的情况, 因此
我想要在code里面去print我的实际成交价是多少, 因此我使用entryprice, 但是如果我有两笔以上的未平仓, 我想要知道最近一次进场的进场价格
而不是第一笔进场的价格, 请问我该怎麽写?
谢谢
- MC技术部:
仅能自行纪录了!它的功能仅能抓到第一笔未平仓的值..
第2篇 - MC技术部:
MC7 的指令才能支援多次进场的取用,若你有使用MC7 ,HELP中有说明
PosTradeEntryPrice
Returns an absolute numerical value, indicating the execution price of trade entry order.
PosTradeEntryPrice
(PosAgo
,TradeNumber
)Where:
PosAgo
- a numerical expression, specifying the position:0 - open position;
1 - one position back (the last position closed);
2 - two positions back, etc.
TradeNumber
- a numerical expression, specifying the number of trade (zero-based).
This function can only be used in signals.
To retrieve the total number of trades in specified position use
PosTradeCount
will return a value of 100.2 for the second trade of the open position, if this trade was opened by the order filled at 100.2.PosTradeEntryPrice
(0
,1
) - MC客服:
MC7 的指令才能支援多次进场的取用,若你有使用MC7 ,HELP中有说明
PosTradeEntryPrice
Returns an absolute numerical value, indicating the execution price of trade entry order.
PosTradeEntryPrice
(PosAgo
,TradeNumber
)Where:
PosAgo
- a numerical expression, specifying the position:0 - open position;
1 - one position back (the last position closed);
2 - two positions back, etc.
TradeNumber
- a numerical expression, specifying the number of trade (zero-based).
This function can only be used in signals.
To retrieve the total number of trades in specified position use
PosTradeCount
will return a value of 100.2 for the second trade of the open position, if this trade was opened by the order filled at 100.2.PosTradeEntryPrice
(0
,1
)
- 上一篇:商品天数设定一个月或一年,但每次回测只…
- 下一篇:讯号执行有误
相关文章
-
没有相关内容