Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 6099
- Rating:
- Published:
- 2019.01.02 14:28
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Trend Interruption Average displays three lines:
- the average number of consecutive rising candlestick Close prices (uptrend)
- the average number of consecutive falling candlestick Close prices (downtrend)
- the difference of these two streams
It has two input parameters:
- Period - averaging period
- Method - averaging calculation method
Calculation:
Up = AvgUp
Down = AvgDown
Difference = AvgUp - AvgDown
where:
AvgUp - MA(Up, Period, Method)
AvgDown - MA(Down, Period, Method)
- If Close > PrevClose
Up = PrevUp+1
Down = 0
- If Close < PrevClose
Down = PrevDown+1
Up = 0
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22922

Indicator Stalin_NRTR with the timeframe selection option in its input parameters

The Stalin indicator in the form of NRTR.