mGrid EA
Logic:
- Grid Trading:
- The EA uses a grid system to place buy stop and sell stop orders at predefined intervals (increments) from an initial price level.
- Multiple levels of orders are placed based on the specified LEVELS parameter.
- The EA continues to add orders to the grid as the market price moves and triggers existing orders.
- Dynamic Lot Sizing:
- If money management is enabled, the lot size is adjusted based on the account balance and leverage using a risk ratio.
- Profit Management:
- The EA monitors the profitability of open orders and applies a profit target mechanism.
- It can take partial profits and close orders when the profit target is reached.
- Order Management:
- Orders are placed with stop loss and take profit levels.
- The EA can close all orders and delete pending orders when certain conditions are met, ending the session.