Join our fan page
- Views:
- 13641
- Rating:
- Published:
- 2018.12.18 19:16
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Coral indicator is a colored moving average.
It has two configurable parameters:
- Coefficient - smoothing ratio (*)
- Applied price
Calculation:
Coral = (-0.064) * B6 + 0.672 * B5 - 2.352 * B4 + 2.744 * B3
where:
B6 = Coefficient * B5 + coeff2 * PrevB6
B5 = Coefficient * B4 + coeff2 * PrevB5
B4 = Coefficient * B3 + coeff2 * PrevB4
B3 = Coefficient * B2 + coeff2 * PrevB3
B2 = Coefficient * B1 + coeff2 * PrevB2
B1 = Coefficient * Applied price + coeff2 * PrevB1
coeff2 = 1.0 - Coefficient
* Smoothing ratio is, in fact, a calculation period. It cannot be less than 0.0086 and exceed 1.0.
The smaller the value, the longer the calculation period. The value of 1 corresponds to the calculation period of 1 of the moving average.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22496

Two identical trading systems (for long and short positions) based on the signals of the AdaptiveRenko indicator, which can be configured in different ways within one Expert Advisor

AdaptiveRenko indicator with the channel background filling and additional display of the NRTR line using colored icons allowing users to visually track trend signals present on a single bar