ohenrik

Pivoted EMA

This strategy checks if we have a low pivot above the EMA (48) line. If so it enters a long trade with a stop loss set to EMA - an additional gap.

This is reversed for Short trades: high pivot bellow the EMA, and SL set to EMA + gap.

The EMA gap for SL can be set individually for Short and Long positions. Backtests reveal that short positions need higher EMA SL gap that long positions.

The red lines above/bellow the candles during open trades are SL prices. The lines are invisible and the prices are gray in the list above the chart when not in active Trade. If the SL line is set equal to the EMA price the line appears as purple because they are both semi transparent. (this is the case for long trades in the current settings used in displaying this strategy).
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact ohenrik for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?

Warning: please read before requesting access.