Re: Already Converted TradingView Indicators to MT4 Indicators
Posted: Mon May 05, 2025 10:09 pm
Thanks, the improved version produces the same output of original version, but it works better and after the compilation the there is no "warning". Good work!nwesterhuijs wrote: Mon May 05, 2025 8:44 pm Check the third option in the inputs: "MaxBarsMulti" or "Max Bars ..."
Introduced it as an multiplier of Trend Length to make it easier wrt consistency checks. A "0"-value will ignore this feature and for me at a value of 4 one quickly sees the impact of limiting bars, hence defaulted to 10 for the time being. Also changed Indicator Prefix to "222" so one can drag and drop both version 1 and 2 onto a chart and compare them.
Relative_Trend_Index_v2.mq4
And some additional price options and Jurik smoothening of RTI (set Length to 1 to have original):
Relative_Trend_Index_v4.mq4
Top sub-window no smoothening (v2) and bottom sub-window has Jurik smoothening (v4):
2025-05-05 15_55_04-2796399_ Afterprime-Demo AP - Demo Account - Afterprime Ltd - [EURUSD,H1].png
