Forums › ProRealTime English forum › ProOrder support › Order rejection › Reply To: Order rejection
Hi GraHal,
Thank you for your response. It was not a stop loss order it was a Sellshort instruction. The reason for the rejection shows “price not valid” the same kind of thing that happens when you do a manual trade and the moment you clicked the sell instruction the market moved away from the price you clicked on. The instruction was a simple moving average cross over. I used the 20 and 30 day on a hourly timeframe. I am not concerned that the code is wrong I am concerned that after the rejection the order was eventually done 50 points out of the market. If it was possible that you could get the pro real code to identify the price value, in this case the bid it was about to trade on, in your code one can code something that prohibits the trade from taking place if the price falls away. Say for instance if the bid price/offer price is 10 points away from the open of the candle when the instruction was given the trade should not take place.