This is a repost, the first version was locked and I am unable to unlock it. So I'm simply publishing it anew.
Original Post
Original Description
This is more of a test run than anything. Gunbot approximation courtesy of Vosechu and the original can be found here.
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...