global wrote: Sun Jan 19, 2025 8:07 am
I was very busy since I posted the initial mq4 version of the Adaptive Trend Flow tradingview pine script but I should have some time to see if I can fix it within the next few days.
Adaptive Trend Flow for MT4
Here is a working version of the
Adaptive Trend Flow indicator I converted from the pine script. It doesn't show all the fancy visualizations as the original tradingview script shows but it does show the trend changes which is the main thing. Of course you can adjust the settings as you like to make the trend changes more sensitive. You can learn more about the original indicator from
https://www.tradingview.com/v/1ttpw8M3/
This converted version shows the trend as a simple blue and red line with volatility bands that you can turn on or off in the settings. The colored candles are not part of the indicator but are drawn by a separate heiken ashi indicator.
To use this indicator with an EA just use an iCustom call to access the TrendState buffer number 5 with this call:
string indiAdTrend = "AdaptiveTrendFlow";
double AdaptiveTrend = iCustom(NULL,0,indiAdTrend ,5,0);
If anyone can improve on this indicator then please do so for the benefit of all of us.
PS: For the MT5 version, please see here:
Adaptive Trend Flow for MT5.