Hi again,
I have trying to do the same with this "supertrend button indicator" based on what you did with "super_trend_nrp_ahtf_4_1.mq4" indicator, but for some reason, the inidicator doesn't paint well when you choose a higher timeframe as you can see in the picture attached.
Could please have a quick look to see what I made wrong??? Thank you again....