Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

RTL - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

RTL - indicator for MetaTrader 5

The Recursive Trend Line (RTL) indicator displays trends as recursive lines.

It has two parameters:

Calculation formula:

 RTL[i] = (1 - Alpha)*RTL[i-1] + Alpha*(price[i] + b0[i] - b0[i-1]),
TOSC[i] = (RTL[i] - EMA(period, price))

Where

 Alpha = 2/(Period + 1)
b0[i] = (1 - Alpha)*b0[i-1] + price[i]

Possible interpretation: if the line is below the price - buy, if the line is above the price - sell.

RTL - indicator for MetaTrader 5


Attachment download

📎rtl.mq5 (8.12 KB)

Source: MQL5 #20271

Verification code Refresh