forex software

Create and Test Forex Strategies

forex software

eas-guide:expert-advisors-plus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eas-guide:expert-advisors-plus [2026/02/14 09:42] Miroslav Popoveas-guide:expert-advisors-plus [2026/02/15 08:24] (current) Miroslav Popov
Line 8: Line 8:
 ===== Grid (Averaging down) ===== ===== Grid (Averaging down) =====
  
-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 loss.+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.
  
 \\ \\
  
-{{ :eas-guide:demo-grid-trading-balance-equity-chart.png?nolink |Grid Trading Balance/Equity Chart}} +{{ :eas-guide:eas-expert-plus-typical-grid-backtest.png?nolink |Grid Trading Balance/Equity Chart}}
  
 \\ \\
 +
 +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:
 +
 +  * **Stop Loss** (pips) or **Take Profit** (pips) reached. If the original strategy use SL and TP (in pips), the Grid sets them in each of the additional entries. As a result each Grid entry have the same SL and TP and all are closed together.
 +
 +{{ https://image-holder.forexsb.com/store/eas-expert-advisor-plus-equal-sl-tp.png?nolink | Stop Loss and Take Profit}}
 +
 +  * **Stop Loss (currency)** or **Take Profit (currency)** reached. These protection levels are used only by the Grid. The Expert monitors the total floating Profit/Loss of all positions and closes entries when the corresponding value is reached.
 +
 +The Grid closes all positions when [[#grid_pair_position_closing1|Grid Pair Position Closing]] is off, or some of the positions if it is on.
 +
 +  * The Strategy indicators rise a close signal.
 +
 +  * Account or Position protection is activated.
  
 ==== Grid Inputs ==== ==== Grid Inputs ====
Line 55: Line 70:
 === Grid increment distance (pips) === === Grid increment distance (pips) ===
  
 +  * **Grid increment distance (pips) - 50** - the increment value added to the spacing for each subsequent grid entry. Only used when "Grid distance sizing" is "Increment distance (pips)".
  
 === Grid scale distance (coefficient) === === Grid scale distance (coefficient) ===
  
 +  * **Grid scale distance (coefficient) - 1.5** - the multiplier applied to the spacing for each subsequent grid entry. Only used when "Grid distance sizing" is "Scale distance (coefficient)".
  
 === Grid maximum distance (pips) === === Grid maximum distance (pips) ===
  
 +  * **Grid maximum distance (pips) - 400** - It sets the maximum distance between the Grid's entries.
  
 === Grid volume sizing === === Grid volume sizing ===
Line 83: Line 101:
  
 === Grid increment volume (lots) === === Grid increment volume (lots) ===
 +
 +  * **Grid increment volume (lots) - 0.01** - the increment value added to the lot size for each subsequent grid entry. Only used when "Grid volume sizing" is "Increment volume (lots)".
  
  
 === Grid scale volume (coefficient) === === Grid scale volume (coefficient) ===
 +
 +  * **Grid scale volume (coefficient) - 1.25** - the multiplier applied to the lot size for each subsequent grid entry. Only used when "Grid volume sizing" is "Scale volume (coefficient)".
  
  
 === Grid maximum total positions === === Grid maximum total positions ===
  
 +  * **Grid maximum total positions - 10** - the count of the initial entry and the subsequent entries
  
 === Grid pair position closing === === Grid pair position closing ===
  
 +  * **Grid pair position closing** - it enabled an advanced algorithm for pair closing the grid's positions.
 +
 +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_closing1|Grid Pair Position Closing]]
  
 === Grid Take Profit (currency) === === Grid Take Profit (currency) ===
  
 +  * **Grid Take Profit (currency)** - the Grid's closing logic monitors the floating profit/loss of the positions. It closes all (or partial) positions when the floating profit is higher than the set value. It is required by the "Grid pair position closing" closing logic.
  
 === Grid Stop Loss (currency) === === Grid Stop Loss (currency) ===
  
 +  * **Grid Stop Loss (currency)** - the Grid's closing logic monitors the floating profit/loss of the positions. It closes all positions when the floating loss is lower than the set value.
 +
 +==== 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.
 +
 +  * When **Grid pair position closing** is off, the Grid closes all open position at once.
 +
 +  * When **Grid pair position closing** is on, the Grid closes the first (original) position and the last (most recent) position when thy make profit equal or higher than the **Take Profit (currency)**.
 +
 +=== Position Closing Algorithm ===
 +
 +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.
 +
 +\\
 +
 +{{ :eas-guide:eas-expert-plus-pair-closing.png?nolink |Grid Pair Closing}}
 +
 +\\
 +
 +The screenshot above shows 6 open positions, the Pair closing is enabled, and the Take Profit (currency) is set to $20.
 +
 +  * **1) - Full Closing** - the Grid closes all open positions if the total profit reaches $20 (now it is -$167.57).
 +
 +  * **2) - Full Pair Closing** - the Pair Closing logic closes position #1 (the original one) and position #6 (the latest one) if their profit reaches $20. It is called full pair closing because the first position will be fully closed.
 +
 +  * **3) - Partial Pair Closing** - if case 2) happens, the Grid will close position #1 and position #6. However, if the goes against our positions again, the Grid will open a new recovery trade (it will open 0.16 lots because it will be the 5th entry). If the market retraces back and the Grid calculates Partial Pair profit - the full amount of the last position and the profit from 0.01 form the first one (currently 0.02). If it reaches $20, the Grid will close fully the latest position and only 0.01 lots from the first one (aka Partial Pair Closing).
 +
 +  * **4) - Multiple Pair Closing** - the Pair Closing algorithm is advanced, it checks not only the first and the last position, but it is able to calculate the combined profit from the first position (full or partial) with several of the latest positions. If their combined profit reaches the target TP (currency), the grid will close multiple positions.
 +
 +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.