Thanks mrtools! It works flawlessy!! I almost dont dare to ask you one more thing
The direction(color) of the indicator can change while the candle is forming. I know its not repainting and i just need to look to the indicator at te beginning of a new candle. But this can be quite misleading as im using 4 mtf halftrends on 1 chart.
Would it be possible to change the code that the halftrend only changes its color at the beginning of the new candle selected in the MTF parameter?
Thanks in advance!!