Join our fan page
- Published by:
- Mykola Demko
- Views:
- 12025
- Rating:
- Published:
- 2011.01.05 11:31
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The indicator plots the standard ZigZag by connecting the price peaks with bottoms during the period.
It plots a channel by connecting the ZigZag peaks and ZigZag bottoms. The colors looks fine for black and white background.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/246

The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.

If you want to optimize your Expert Advisor using your own characteristics, you can use "Custom max" mode via OnTester() function. This code provides you many characteristics, which can be used during the optimization of your EA. Also it allows you to save the optimized charateristics in HTML file.

The indicator plots a channel using the linear regression model: y=b+a*x.

Trade signals based on price crossover with moving average indicator (CSignalMA from MQL5 Standard Library) is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.