@ieysimurra, Hi, thanks for your comment. Currently I'm not writing more scripts in this platform because I've developed my own system based on three simple indicators and graphical patterns. What I've been doing so far is trying to figure out a way to identify automatically those patterns based on indicators, however I'm doing this on R. Perhaps in the feature I'll post more scripts.
Was trying this indicator. It is good measurement of overall trend. But indicator repaints. But sometimes it changes the colour of the previous candle even after the close of the candle. Is there any way to stop repainting..Thanks