• Overview
  • Reviews (5)
  • Comments (71)
  • What's new

BreakChannelExp

BreakChannelExp is an Expert Advisor for trading Moving Average channels.


General

  • The EA is a versatile tool with many settings and operation modes.
  • Expansion of the functionality in the new versions with full compatibility with older versions.
  • Deals are performed only when a new bar is opened (at Open prices) for fast testing and optimization.
  • The EA works with any amount of quote digits.
  • The EA is resistant to unstable power supply and connection to a broker. As soon as connection is restored, the orders are managed by the EA again.
  • The EA has been developed for USD accounts, though you can use a fixed lot for other accounts.
  • The EA is accompanied by auxiliary MQL4 programs that I am going to post in the Comments section.


Input parameters

It is possible to create various trading systems based on the Moving Average channels by using different combinations of parameters.

A detailed description of the input parameters for the current version of the EA is available in the Comments section.

==== MM ====

Block of the money management parameters. You can select a fixed lot, risk in USD or a percentage of the balance.

  • Lots
  • RiskInDollars
  • PercentRiskBalance

==== Exit ====

Block of exit parameters.

  • PeriodAverageHL - period in bars on the current chart for calculating the average High-Low (AverageHL). The parameters below with the names starting with "Percent" are calculated as a percentage of AverageHL.
  • PercentStopLoss
  • PercentTakeProfit
  • PercentBreakeven
  • PercentBreakevenProfit
  • PercentTrailingStop
  • KexpTS - Trailing Stop smoothing factor (0..1).
  • KexpTP - Take Profit approximation factor (0..1).
  • PercentMinProfitExpTP - minimum profit that Take Profit approaches to.
  • ModeExp - maintenance and exiting mode (0..6).

==== Entry ====

Block of entry parameters.

  • MAChannelPeriod - period of the Moving Average for the signal channel.
  • PercentHalfChannel - half of the signal channel width.
  • ModeTrend - trend mode (0..5).
  • MATrendPeriod - period of the Moving Average for the trend channel.
  • PercentHalfTrend - half of the trend channel width.
  • ModeReverse - entry mode.
  • PosReverse
  • OpenOnlyInBreakMoment
  • Filter
  • BlockNewOrders
  • BlockNewOrdersTimer

==== Averaging ====

Block of averaging parameters. If the averaging mode is disabled, Stop Loss is used. If enabled, averaging is used instead of Stop Loss.

  • ModeAveraging - averaging mode. 0 - disabled, 1,2 - enabled.
  • PercentStepOrders - parameters for the step between orders.
  • PercentStepOrdersInc
  • PercentStepOrdersMax
  • QntOrdersStepOrdersInc
  • MAAveragingPeriod - parameters for the averaging channel.
  • PercentHalfAveraging
  • QntOrdersAveragingMA
  • PercentProfitOneOrder - parameters for profit per order in the series.
  • PercentProfitOneOrderDec
  • PercentProfitOneOrderMin
  • QntOrdersProfitOneOrderDec
  • QntOrdersFastExit - parameters for quick exit.
  • PercentProfitOneOrderFastExitQO
  • QntBarsFastExit
  • PercentProfitOneOrderFastExitQB
  • KIncLot - parameters for the lot increase ratio.
  • KIncLotDec
  • KIncLotMin
  • QntOrdersKIncLotDec
  • MaxOrders - parameters for limiting by orders or drawdown.
  • MaxLossBalance
  • MaxLossDollars
  • MaxLossBalanceBlock

==== Optional ====

Block of additional parameters.

  • MagicNumber
  • BlockHoursFrMo
  • StartBlockHourFriday
  • EndBlockHourMonday
  • BlockHoursDaily
  • StartBlockHour
  • EndBlockHour
  • PercentSlippage
  • MaxSpread
  • SoundOn

==== Tester ====

Block of parameters for the genetic optimization using "Custom".

  • TesterRF
  • TesterMinQntTrades
  • TesterMaxDD
  • TesterMinProfit
  • TesterMinPF
  • TesterMinPercentProfitTrades
  • TesterMinRatioAverageProfitLoss
  • TesterFilterProfitJumps
  • TesterKJumpDetector

The default parameters of the EA are merely an example of using the EA.

For most parameters, a value of 0 means disabled/not used, the same applied to invalid values, for example, negative numbers.

Attention! Profits in the past do not guarantee profits in the future. Test Expert Advisors carefully before buying.

Andrey Litvichenko
7588
2017.10.21 09:48 
 

User didn't leave any comment to the rating

Aleksej Kravcenko
1387
2017.09.10 11:18 
 

GOOD

Ali irwan
5195
2017.08.17 16:05 
 

Showed satisfactory results for averaging.

Rinor Memeti
2789
2017.06.22 19:05 
 

User didn't leave any comment to the rating

Hodaka Satoh
1673
2017.04.11 17:20 
 

User didn't leave any comment to the rating

Version 1.19 - 2017.07.31
Fixed a logic error in the optimization function.
Version 1.18 - 2017.06.22
Changes in the optimization function logic.
Version 1.17 - 2017.05.17
- Added new averaging mode features.
- Added optimization features.
- Optimized the code.
Version 1.12 - 2015.11.06
Improved the look of closed orders on a chart.
Version 1.11 - 2015.10.23
- Changed input values (default ones are provided for EURUSD M15).
- The filter can be used during a market entry for the price reversal back to the channel (ModeReverse = true).
- A few minor fixes.
Version 1.10 - 2015.09.07
A few additional parameters and fixes.
Version 1.7 - 2015.02.16
Improved the trend indicator.

Now, it is displayed as a Moving Average channel with a large period.
There may be 3 states depending on the price position:
- The price exceeding the channel means uptrend
- The price above the channel means downtrend
- The price inside the channel means flat
ModeTrend switch has 6 states:
0 - do not use the trend
1 - enter only by the trend
2 - enter only against the trend
3 - enter only during the flat
4 - enter by the trend and during the flat
5 - enter against the trend and during the flat

Other additions:
- Added new averaging mode features.
- Added optimization features.
- Fixed logical errors.
Version 1.6 - 2014.10.07
- New additional features: opening of orders only in the specified hours range, maximum spread when opening, reverting a profitable order in case of an opposite signal.
- Lot calculation logic changed.
Version 1.5 - 2014.09.22
Fixed minor logic errors.
Version 1.4 - 2014.09.12
- Added trend indicator.
- Added averaging mode with lot increasing.
Version 1.2 - 2014.08.01
- Added 3 input parameters to setup filters and one parameter for additional adjusting of entries.
- Parameter ModeExp is extended to 6 possible values (0..5).
- Default values are changed to less "optimized" (defaults are for EURUSD M15). At that, the balance curve has remained steady for the entire history starting from year 2000.
Version 1.1 - 2014.07.21
- Added filter.
- Updated input parameters (defaults are for EURUSD M15).