OPEN-SOURCE SCRIPT

EMA Envelope

This is an attempt to convert gunbot's SG strategy into a proper TradingView strategy. The problem is that SG Sell Level relies on % above purchase price, which we don't actually know in TradingView. So we could try to get the average of the next bar or something, which maybe this is what the Slippage setting is? I'm not sure.

Anyways, using % above EMA does actually work as a strategy a bit. It's nothing like Turtle Rules by tmr0 though!

Will keep working on this gradually; feedback greatly appreciated!
Exponential Moving Average (EMA)gunbot

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer