It buys when 4 of the RMIs are below their thresholds and sells when they are above. There is a 5th one I added last night that works in Reverse - buy when its above and sell when below, which should work better for pyramiding strats by using it at the right rate to set the overall trend.
Very basic sample below, I could have set it up better as my example but just want to publish.
Second - THREE stop losses and two and a half take profits!
Hard stop loss stops as soon as you lose that %!
Soft stop loss triggers at a % + chande crossing down!
Safe stop loss triggers at a % loss + sell conditions!
Take profits are the same way, but working in reverse!
I incorporated a Take Profit into the base sell signal- which means you can tell it to ONLY ever sell at a certain % gain - unless its a triggered by one of the other conditions!
SO thats a lot of choices to keep you safe. We all hate it when our oscillators generate a classic "sell" signal, but at a loss - which will happen eventually on almost any strat without price awareness. By making our strats aware of our buy in cost and commission rate, we can prevent that. This will ONLY sell at gain unless it is a stop loss, and the stop losses should be plenty useable for anyone on any chart.
And I know this backtest sucks - but you can see take profits and stop losses in one screen which is all I wanted for now.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.