/Springfield-3Grids-MT5-Bot

Springfield 3 Grids MT5 Expert Adviser

Primary LanguageMQL5

Springfield-3Grids-MT5-Bot

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.

The bot is set on the chart

Inputs

Inputs Dialog

There is a list of settings for every grid:

  1. MaxTrades: Max grid size.
  2. Lots: Initial grid order lots size.
  3. LotsExponent: Next grid order volume ratio.
  4. Step: Price distance to open next grid order, points.
  5. Take Profit: Distance from grid breakeven, points.
  6. 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.