Join our fan page
- Views:
- 8243
- Rating:
- Published:
- 2012.12.27 11:56
- Updated:
- 2023.03.29 13:42
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A trend indicator drawn on the basis of the advanced Keltner channel.
Indicator input parameters:
//+-----------------------------------+ //| Indicator input parameters | //+-----------------------------------+ input Smooth_Method MA_Method1=MODE_SMA; // Averaging method input uint Length1=100; // Moving Average smoothing depth input int Phase1=15; // Moving averages parameter input Smooth_Method MA_Method2=MODE_JJMA; // Candlesticks size averaging method input uint Length2=20; // Averaging candlesticks depth input int Phase2=100; // The parameter of smoothing candlesticks size input double Deviation = 2.0; // Coefficient of channel expansion input uint Smooth=20; // Smoothing period input Applied_price_ IPC=PRICE_CLOSE; // Price constant input int UpLevel=+50; // Upper level input int DnLevel=-50; // Low level input int Shift=0; // Horizontal shift of the indicator in bars
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging price series for intermediate calculations without using additional buffers".
.
Fig.1 The i-KlPrice indicator.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1352
![Renko](https://c.mql5.com/i/code/indicator.png)
The renko (renko) chart in a separate subwindow. No matter on what chart timeframe the indicator is attached, the renko is drawn on close price of М1 timeframe.
![Exp_ColorMomentum_AMA](https://c.mql5.com/i/code/expert.png)
The Expert Advisor drawn on the basis of the change of direction of the ColorMomentum_AMA indicator.
![Disparity Index](https://c.mql5.com/i/code/indicator.png)
Disparity Index (difference index) displays the difference between the close price and chosen Moving Averages in percentage. It is recommended to use in combination with the other candlestick models
![Exp_ColorLeManTrend](https://c.mql5.com/i/code/expert.png)
The Exp_ColorLeManTrend trading system is based on changes of the trend direction displayed by the ColorLeManTrend indicator