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!
Notes de version
Changed the chart so it can be clear of other drawings Changed the code so it writes TOP and BOT (form BOTTOM) Changed the default minimum years for backtest
Notes de version
Changed the chart so it is clean and does not show any other lines or technical analysis. Changed the text plotted to "MAX" and "MIN" (from Maximum and Minimum) Changed the minval for backtest year back to 1970
Notes de version
Added Stop Loss option with percentage
Notes de version
Updated to Version4 of Pinescript so you can use alerts from this strategy. Enjoy!
Notes de version
changed the EMA to a regular one so it can reflect the reality
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.