Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
3089
Rating:
(14)
Published:
2018.12.18 19:14
Updated:
2023.03.29 13:48
JMACandle_Chl.mq5 (21.26 KB) view
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

JMACandle indicator with two colored channels based on standard deviations from High and Low of the indicator candles. For a normal display of the indicator, check the "Chart on foreground" checkbox in the chart properties.

//+----------------------------------------------+
//|  INDICATOR INPUTS                            |
//+----------------------------------------------+
input Smooth_Method MA_Method1=MODE_JJMA;              //smoothing method
input int Length1=12;                                  //smoothing depth                    
input int Phase1=15;                                   //smoothing parameter,
//---- for JJMA, changing within -100 ... +100, affects the transient process quality;
//---- For VIDIA this is CMO period, for AMA this is a slow average
input uint Gap=10;                                     //not considered gap in points
input uint BBLength=10;                                // Bollinger period                                                   
input double BandsDeviation=1.0;                       // deviation

The indicator uses SmoothAlgorithms.mqh library classes (copy it to <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. JMACandle_Chl indicator

Fig. 1. JMACandle_Chl indicator

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22534

JMACandle_Chl_HTF JMACandle_Chl_HTF

JMACandle_Chl indicator with the timeframe selection option available in input parameters

SL_Breakeven SL_Breakeven

The function for moving an open position to a breakeven.

JMACandle_HTF JMACandle_HTF

JMACandle indicator with the timeframe selection option available in input parameters

JBrainTrend1_HTF JBrainTrend1_HTF

JBrainTrend1 indicator with the timeframe selection option available in the input parameters