MQL5 Task: 207191 Requirements read in requirements.md.
The Springfield bot is an expert advisor for MetaTrader 5. It implements a grid algorithm with increasing volume for the next opened position at a set price distance.
The bot can simultaneously manage 3 grids on a single instrument with different parameters.
The next position in each grid is opened after the price passes a specified distance in the opposite direction of the take profit. The new positions volume calculates as a the volume of the last grid position multiplied by a specified coefficient.
The bot maintains a take profit on all its positions at a specified distance from the grid's weighted average price. If any of the grid positions are closed, the bot will update the take profit for the remaining orders by the specified distance from the average price. Manually updating the take profit for a position is not possible, the bot will set the necessary value if it detects that the current one has changed.
There is a list of settings for every grid:
- MaxTrades: Max grid size.
- Lots: Initial grid order lots size.
- LotsExponent: Next grid order volume ratio.
- Step: Price distance to open next grid order, points.
- Take Profit: Distance from grid breakeven, points.
- RSI timeframe. Used to detect direction of first position of the grid. It's recommended to use different TF for every grid. In this case the bot will open grids in different directions with a higher probability. Other RSI params is the same for all grids. You can change them in MISC section.