My trading system send orders using OpenPosition.
I am 100% sure that SUBMITORDER return true (I catch the error into submit function) but sometimes I see errors like these:
Error submitting ProfitTargetorder:
Error submitting Stoplossorder:
These error messages does not explain better the reason of the errors......
The connection to the broker plugin appear OK to me
May be that Rightedge analyze entry price/stop loss price and profit target price and found an
illogical situation? (target < initial stop loss for a LONG?)
The bad thing is that SUBMITORDER send successfully my orders to the broker (so my broker accept orders not accepted by Rightedge) and the final result is that the broker pending positions does not match with RightEdge pending positions