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:
11990
Rating:
(26)
Published:
2018.12.18 19:16
Coral.mq5 (10.67 KB) view
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

Exp_AdaptiveRenko_Duplex Exp_AdaptiveRenko_Duplex

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_Cld AdaptiveRenko_Cld

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

APTR_MA APTR_MA

Average Percentage True Range indicator with MA adjustments

APTR APTR

Average Percentage True Range indicator