How to find Limit Order has been executed or not

Forums ProRealTime English forum ProOrder support How to find Limit Order has been executed or not

Viewing 9 posts - 1 through 9 (of 9 total)
  • #105248

    Hi

    I am creating sell order into auto trading system, when trading system start.

    Sell order will not in position tab, Until system reach to mySellprice. It will take some time to reach to my indicated (mySellPrice) price.

    Meanwhile how can I detect that sell order is executed or not?

    #105252

    Check if OnMarket or not OR, if not, if StrategyProfit <> StrategyProfit[1].

    #105254

    So when I place the sell order using limit, OnMarket condition will be false. And when sell order will be executed in future OnMarket condition will return true.

    #105262

    Yes, sometimes if a trade enters and exits on a single bar ONMARKET will not be able to update its status, so you’ll have to compare STRATEGYPROFIT.

    #105271

    Parimal Patel – I have moved this topic to the ProOrder forum as it is strategy related and not a general discussion. Please try to post future topics and questions in the correct forum.

    #105549

    i have tried above suggestion, but doesn’t work 100%.

    When first condition is hit , I am executing first order (could be limit or market). When second condition hit, I am placing another order. In 90% case my 2nd order executed successfully but 10% case system don’t pick up the order. I don’t know why its happening. So I have to check in next bar or next execution point that my order has been executed or not.

    STRATEGYPROFIT value change every time (or on every bar) due to first order is already there. ONMARKET doesn’t work as first order is already there.

    Is there anyway I can check and fix this issue?

    #105551

    STRATEGYPROFIT will not be updated until a position is closed. You should compare POSITIONPERF <> 0 for trades that are open.

    #105552

    STRATEGYPROFIT is updated only when a trade is closed, so it cannot change each bar, unless your trades only last one bar.

    The only workaround would be checking if the entry price of the pending order has been hit, if it is then you may assume the order has been triggered, unless rejected for some reasons.

    #105732

    You can check if you were on market or not on the previous bar with this snippet: (useful if the order opened and closed in the same bar)

     

    1 user thanked author for this post.
Viewing 9 posts - 1 through 9 (of 9 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login