I'm looking for someone to write an indicator for Trading view in pine script.
What I want it to do is to highlight breakouts of closing prices above and below an EMA.
Buy signals: A price bar closes above EMA where previous price bar was close below EMA. I want to have an arrow pointing up below breakout bar
Sell signals: A price bar closes below EMA where previous price bar is closed above EMA. I want to have an arrow pointing down above breakout bar
I want to have the option to:
1. change the EMA periods
2. Change the colour of the buy and sell signals
Attached is a pic of chart showing what these look like on a chart