Greg_007

Buy the dips - sell the tops

Greg_007 Güncellendi   
This script is a merge of the RSI and the Williams %R.
I've observed that in strong uptrends, we go from RSI overbought to RSI overbought, but it hardly gets oversold. (the same in the opposite direction)
To find a better entry point, Williams %R is used to find oversold conditions in an uptrend or overbought in a downtrend.

=> When W%R returns from oversold/overbought to normal, a triangle will be plotted and this is the point of entry to add to your position. (there's an option to mark all candles in the overbought/oversold region, by default it is off)
=> When RSI goes from overbought back to normal it will tell you to buy the dip. In a downtrend it will tell you to sell the tops.
=> When the RSI gets oversold and the previous RSI was overbought, it will mark to exit the position

I did backtest this one with a risk to reward of 2 and exit when target is reached.
Trading EUR/USD on the daily would return 28% after 10 years of trading with a success ratio of 43%.
Trading BTC/USD on the daily would lose 12% after 7 years and a success rate of 28%.

Trading it this way is not the best idea ;-) 2 Interesting observations however:
- Once you get the entry right, in 80% of the cases, you do reach the next RSI oversold/overbought level. Keeping your position open until you reach that level can be an option to maximize profits.
- When a triangle is plotted and it is the low compared to the previous more or less 5 candles (same for the high), chances are high it will be taken out a few candles later, so don't take a trade yet.

Using classic technical analysis might improve more your entry and exit positions.
Feel free to comment your best strategy using this indicator ;-)

Happy trading!
Sürüm Notları:
The label will tell you now when the RSI or %R is overbought/oversold. You don't need to compare numbers anymore ;-)
Sürüm Notları:
Added moving averages similar to Williams Alligator without an offset. The label will tell you what the short term and long term trends are.

A strategy can be to buy dips when the long term trend is bullish, sell tops when long term is bearish. Stay out when the trend is mixed. Take profit when short term switches from bullish/bearish to mixed.

By default the moving averages are disabled.

As always, do your own backtesting ;-)

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?