This is a beginner script, any feedback is welcome.
It indicates a bull trend with or without volume (yellow and green arrow) and give a buy signal (green flag) once the trend is "confirmed" and the stock became good for the buy market.
I look forward to make this for a bear market as well, but it's not good for now.
Symbols and its meanings:
Yellow Arrows --> When the EMA of 9 candles and the MA of 21 candles are higher then the previous candle.
Green Arrows --> When the EMA of 9 candles and the MA of 21 candles are higher then the previous candle and the volume is higher than the MA of 21 candles.
Green Flag --> The previous candles has a green arrow and the running candle reaches the previous candle high + 1 point/cent.