A multi-currency grid Expert Advisor, in most cases, receives fairly accurate inputs. If the entry is not accurate enough, the positions are
managed using a carefully thought-out martingale strategy.
Working on a real account:
The entry is made according to the signals of the RSI and Stochastic indicators, in the overbought/oversold zones, plus an additional
entry condition according to the author’s algorithm.
Recommended timeframe – M15
Input parameters
- setName – the name of the current settings
- MagicNumber – MagicNumber, an identification number for a pair.
- slip – slip
- Lots – lot size
- DepoPer001Lot-automatic lot calculation (specify the number per unit of 0.01 lot) (if 0, the lot value from
the Lots parameter is used) - LotExponent – The value by which the lot of the current open order will be multiplied.
- BaseLotLevelCount – The number of knees that will be opened sequentially with the base lot
- PipStep – Minimum allowed distance between grid orders
- GridAvgComissionSwap-Take into account the commission and swap when calculating the breakeven of the grid
- MaxTrades – Maximum number of averaging knees
- TakeProfit-Basic Take Profit
- Lvl1 – № The order (knee) starting from which the TakeProfit will be equal to TPS1
- TPS1-Take after opening Lvl1 knee
- Lvl2 – № The order (knee) starting from which the TakeProfit will be equal to TPS2
- TPS2-Take after opening the Lvl2 knee
- UpdateSecond-Frequency of checking current levels
- TrailStart – After how many points the trailing stop starts
- TrailStop – The distance from the current course (points) at which the stop moves after the start of the trailing (TrailStop=0
disabled) - TrailLvl1, TrailStart1, TrailStop1, TrailLvl2, TrailStart2, TrailStop2-Changing the trailing depending on
the number of orders, similar to Lvl1, TPS1, Lvl2, TPS2
[spoiler title=”Read More…”]
Login Settings
- PeriodRSI – The period of the RSI indicator
- RsiChannel-The width of the channel at the exit for which the entry conditions will be checked, at 20 it is 70/30 (50 20/50-20)
- KPeriod – Period (number of bars) for calculating the % K stochastic line
- dPERIOD – The averaging period for calculating the % D stochastic line
- Slowing – The value of the stochastic deceleration
- StochChannel – The width of the channel at the exit for which the entry conditions will be checked, similar to the RSI
Lock Settings
- LockAfterSeriesCount – № Order (knee), starting from which the locking order will be opened
- LockGridPercent – Which part of the grid will be covered by the locking order
Other settings
- SMaxDrawdownPercent – The drawdown level in percent, after which the averaging orders will stop opening
- MaxSpread – Maximum Spread
- VisualDebug-Displaying additional information on the chart
[/spoiler]