Pyramid MA-Characteristics of the Expert Advisor: it uses the Moving Averages (MA) indicator. Changing the order grid when the trend reverses. The exponent of the increase in the volume of orders of the main trading grid against the averaging positions. Work on pending BUYSTOP and SELLSTOP orders. It uses a system of averaging losses with the control of the balance of open trades and bringing them to breakeven. Sound notification of open and completed trades. You can easily create your own trading strategy based on the PYRAMID MA Expert Advisor.
- koef_grid = 0.5 – multiplication factor of grid order lots
Indicator Settings:
- tf_grid = 0 – The chart period for receiving indicator signals when placing starting orders. It can be one of the schedule periods. 0 indicates the period of the current chart. 1-minute. 5-5 minutes. 15-15 minutes. 30-30 minutes. 60 – 1 hour. 240 – 4 hours. 1440 – 1 day. 10080 – 1 week. 43200 – 1 month.
- tf_lock = 60-The chart period for receiving signals from indicators when locking orders
- tf_aw = 60-Chart period for receiving signals from indicators when averaging orders
- shift = 1-Index of the value obtained from the indicator buffer (shift relative to the current bar by the specified number of periods ago).
[spoiler title=”Read More…”]
Initial settings:
- start_recede = 30 – starting distance in points from the current price to the first order
- steps = 15 – step distance in the order grid, in points
- steps_plus = 0-distance correction, in points
- quantity = 5 – the number of orders in the grid
- MagicNumber = 2808 – magic number of orders
- StopLoss = 0 – the loss level of the starting orders
- Lot = 0 – volume of starting positions, at = 0 working MM
- Choice_method = false – method for selecting MM, from free funds or from the balance
- Risk = 0.3-percent level for MM operation
- Slippage = 3 – the level of slippage in points
Lock Settings:
- Lock = true-enable the locking method
- lock_pips = 15 – distance in points from the open position to trigger the lock
- koef_lot_lock = 2 – lot ratio of the lock
- StopLoss_Lock = 0 – loss level for lock orders
Averaging Settings:
- AV = true-enable the loss averaging method
- exponents = 0-exponent of increasing the distance of subsequent orders placed
- level_AV = 20 – distance in points from the position opening price to trigger averaging
- level_OP = 15 – distance in points from the current price to the pending order opening level
- f_lot_av = 2 – lot multiplication factor for averaging orders
- TakeProfit_AV = 10 – the total profit level of all orders when exiting the drawdown
Other settings:
- NumberOfTry = 5 – number of trading attempts
- UseSound = True-enable sound notification of trading requests
- NameFileSound = “expert. wav” – name of the sound file when opening orders
- NameCloseSound = “ok. wav” – name of the sound file when closing orders
- MarketWatch = false-setting profit and loss levels using the modification method
[/spoiler]