I programmed an indicator/robot.
When I place a stopmarket order long, priced BELOW the current close we are getting an error, this can happen in a fast-moving market. In a strategy you have a way to suppress the error message using RealtimeErrorHandling = RealtimeErrorHandling.IgnoreAllErrors;
My indicator does not stop, this is good, as it keeps on working. But the error messages are a bit ugly and will add up. I do check the price just before placing the order, but sometimes it just goes too fast. I use Close[0] + (TickSize * 5)
Is there something to suppress the error messages for placing orders in indicators?
Comment