HistoryDealGetDouble returns 100000.00 every once in a while for no reason in the context of DEAL_PROFIT
OK I see why 100000.0.
position_id=HistoryOrderGetInteger(Ordnum,ORDER_POSITION_ID)
Occasionally returns 0 which causes me to wind up with the deposit as the profit. Not sure why yet though, ordnum is a legit order number that got executed and then exited by SL.
OK I see why 100000.0.
Occasionally returns 0 which causes me to wind up with the deposit as the profit. Not sure why yet though, ordnum is a legit order number that got executed and then exited by SL.
Happy ending. Ordnum is not a legit order that executed there must be a bug elsewhere. I'll find it.
In the logs, every once in a while I get this:
I can match the Ordnum to a stop loss hit for small loss in the report:
100000.0 is the most baffling....