您现在的位置:程序化交易>> 期货公式>> (MC)multicharts>> MC知识>>正文内容

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.

     

    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

    PosTradeEntryPrice(0,1) 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.

     

    编辑文章 by 客服一号 2011-12-16 14:18:32

     

  • MC客服:

    MC7 的指令才能支援多次进场的取用,若你有使用MC7 ,HELP中有说明

     

     

    PosTradeEntryPrice

     

    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

    PosTradeEntryPrice(0,1) 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.

     

    编辑文章 by 客服一号 2011-12-16 14:18:32

【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容