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.
Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.