Script uses an EMA (Exponential Moving Average) as an indicator. When the price crosses (breakout/breakdown) the EMA, the trigger is activated. Script does the breakout and breakdown calculations. It considers one candle close above or below the EMA.
It is used only in trending markets like bullish trends and/or bearish trends and never in flat. It can get very bad results so pay attention!
Feel free to test it and add comments.
I am open to answer any questions.
I would like to know what you think and how can we improve this strategy.
Thank you & enjoy!