Robot risk management in my opinion boils down to the following:
Time Filter (To allow opening new operations).
Allowed days filter to allow opening trades.
Time Filter (To close open trades). Condition to assume or not harm. Keep orders open or close on loss.
Spread Filter (To avoid absurd spreads).
Daily Earnings Limit
Daily Loss Limit
Weekly Earning Limit
Weekly Loss Limit
Monthly Earnings Limit
Monthly Loss Limit
Limit on number of trades won daily
Limit on the amount of daily lost trades
Maximum limit of concurrent open operations.
Time to close profit-only trades and stop trading on the day.
DrawDown Control
Margin Level Control
Batch increase and decrease control based on Balance
I have a lot more to say, but it wouldn't fit here, but in my opinion this is the basics that every robot should have.





Hello guys, I am trying to close the first and last orders together as soon as a condition is met, but it is not closing properly.