Create and Test Forex Strategies
This is an old revision of the document!
Expert Advisor Plus includes additional features, which can be tested in the MetaTrader's Strategy Tester only.
Expert Advisors Plus trades as an ordinary EA Studio Expert Advisor by default. All of the additional options are initially switched off.
The Grid option enables possibility to open new positions at determined distance and amount when the market moves against our initial entry. Effectively, it adds lots to a losing position (Averaging Down). The Averaging Down moves the aggregate position price towards the market and sometimes recovers the floating loss.
The Grid functionality opens new positions when the market reaches the next Grid level.
The Grid closes positions id any of the following events occurs:
The Grid closes all positions when Grid Pair Position Closing is off, or some of the positions if it is on.
The Grid functionality is disabled by default. When disabled (false), the Expert trades as the ordinary EA Studio's Expert Advisor.
Turn it on (true), to enable the Grid's functionality.
Grid distance is the vertical distance in pips between the Grid's entries. The initial distance sets price of the first Grid entry below or above the initial entry by the strategy.
Example: Initial at 1.2000, grid entries at 1.1950, 1.1900, 1.1850 (50 pips apart each).
Example: With initial 50 pips and increment 20, entries are at: 50 pips from initial (1.1950), then 70 pips below (1.1880), then 90 pips below (1.1790).
Example: With initial 50 pips and scale 1.25, entries are at: 50 pips from initial (1.1950), then 62 pips below, then 78 pips below.
Example: 100, 100, 200, 300, 500, …
Example: If initial is 0.05 lots, all grid entries are 0.05 lots
Example: If initial is 0.05 lots and increment is 0.01, entries are: 0.06, 0.07, 0.08 lots.
Example: If initial is 0.05 lots and scale is 1.25, entries are: 0.06, 0.08, 0.10 lots.
Examples: 0.01, 0.01, 0.02, 0.03, 0.05, 0.08, 0.13, …
When off (false), the Grid closes all positions at once on a closing signal: Take Profit (pips), Take Profit (currency), Indicator's closing signal, Account or Position's protection…
See more here: Grid Pair Position Closing
Pair Position Closing is an advanced Grid closing algorithm. It may reduce the equity drawdown.
It is a good idea to test your strategy with “Pair Closing” on and off and to choose the better option in your case.
The purpose of the Pair Closing is to move the Grid window (respectively the aggregate position price) towards the current market. It does it by closing the first position (fully or partially), together with the last or some of the recent positions on profit.
The algorithm tries to close or reduce the first entry because it is the least favorable in the adverse market movement.
The Pair Closing uses the Take Profit (currency) value as a reference.
The screenshot above shows 6 open positions, the Pair closing is enabled, and the Take Profit (currency) is set to $20.
The “Grid pair position closing” logic may not work well in all cases. Please check your Expert carefully in the MetaTrader's Tester with Pair Closing on and off and choose the better option.