EduardoMattje

IFR2

EduardoMattje Aggiornato   
The IFR2 strategy is based on the RSI indicator.

If the two period RSI is less than the overbought level (25 is the default, but you can configure it to be lower), a long position is placed at the close of the candle. If you are doing it live, you'd have to enter the market ~ 10 minutes before it closes, check the RSI, and buy if it is lower than your overbought level. This generates a discrepancy in the backtesting, but since it is a very small difference, it can be disregarded. Higher overbought levels generate more signals, but they mostly are unreliable. Lower values generates better yields, but they won't occur very often. This strategy is designed to be used in a daily graph, and I don't recommend using it in intraday periods, since you'll make too little money to compensate for the operational cost.

The strategy exits when the high price of two previous candles is reached. If the exit price is higher than the closing price of when you entered, you'll be at a profit, otherwise you'll be at a loss. The exit price is plotted in the graph and it's colors depends on the current open profit: positive values will be green, negative will be red.

This strategy completely disregards the current trend. Long orders will be placed even if you are at a strong down trend. This may seem odd, but you have to keep in mind that this is a volatility based strategy, not a trend following one.

This setup was designed by Alexandre Wolwacz, a.k.a. Stormer.
Note di rilascio:
Updated the strategy to include different types of exit points. Now you can choose to exit on the highest of previous candles (the default setting), when the RSI is oversold, or when the price closes above the short moving average.

You can also configure to take trades only when the moving averages are trending. This kinda defeats the purpose of the strategy, since it is not a trend following strategy, but I found that is some assets it may work better to filter the trades.
Note di rilascio:
Added the ability to go short.
Note di rilascio:
I simplified the script and added a starting date as requested by a user.
Note di rilascio:
Now it uses the new time entry function, so it is much more accurate. In addition, you can define a custom ATR period.
Note di rilascio:
I made use of the new inline and group features on the input functions, so now they should be clearer and better organized.
Note di rilascio:
I've been showing the wrong oscillator since the last update, now it should be corrected.
Note di rilascio:
I made some changes to the code to make the script load faster.
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?