講師 您好
我想請(qǐng)問(wèn)關(guān)於entryprice的問(wèn)題, 如果我的掛單都使用停止單, 那麼在跳空時(shí)會(huì)發(fā)生掛單價(jià)和實(shí)際成交價(jià)不同的情況, 因此
我想要在code里面去print我的實(shí)際成交價(jià)是多少, 因此我使用entryprice, 但是如果我有兩筆以上的未平倉(cāng), 我想要知道最近一次進(jìn)場(chǎng)的進(jìn)場(chǎng)價(jià)格
而不是第一筆進(jìn)場(chǎng)的價(jià)格, 請(qǐng)問(wèn)我該怎麼寫(xiě)?
謝謝
僅能自行紀(jì)錄了!它的功能僅能抓到第一筆未平倉(cāng)的值..
MC7 的指令才能支援多次進(jìn)場(chǎng)的取用,若你有使用MC7 ,HELP中有說(shuō)明
Returns an absolute numerical value, indicating the execution price of trade entry order.
Usage
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).
Notes
This function can only be used in signals.
To retrieve the total number of trades in specified position use PosTradeCount
Example
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
)
編輯文章 by 客服一號(hào) 2011-12-16 14:18:32
MC7 的指令才能支援多次進(jìn)場(chǎng)的取用,若你有使用MC7 ,HELP中有說(shuō)明
Returns an absolute numerical value, indicating the execution price of trade entry order.
Usage
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).
Notes
This function can only be used in signals.
To retrieve the total number of trades in specified position use PosTradeCount
Example
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
)
編輯文章 by 客服一號(hào) 2011-12-16 14:18:32