TrendsAreSexy

Easy to Use Stochastic + RSI Strategy

A simple strategy that yields some great results.

CODE VARIABLES
LINE 2 - Here you can change your currency and amount you want to invest on each entry.
LINE 10/11/12 - Here we establish what date we want to start backtesting from. Simply change the defval on each line to change the date (In the code below we start on Jan 1st, 2014).
LINES 19 through 27 - Here we set our Stochastic and RSI sensitivity (Currently %K = 14, %D = 3, RSI = 14). Change these to your preference.
LINE 39/41 - Here we execute our orders (Currently set when %K crosses %D under the 20 value and RSI is less than 50 to BUY, %K crosses %D above the 80 value and RSI is greater than 60 to SELL). Change these to your preference.

NOTE: As a beginner you may not want to short stock, therefore LINE 6 was added to only allow long positions.

I didn't overlay the RSI value over the Stochastics because it was too cluttered. Just add the RSI indictor seperately to your layout.

As always, couple this with trend following and exit/entry rules to make the profitability even higher!

Cheers!
Script open-source

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.

Declinazione di responsabilità

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.

Vuoi usare questo script sui tuoi grafici?