TradingView
wbburgin
2023年3月30日午後3時13分

MTF Diagonally Layered RSI - 1 minute Bitcoin Bot [wbburgin] 

詳細

This is a NON-REPAINTING multi-timeframe RSI strategy (long-only) that enters a trade only when two higher timeframes are oversold. I wrote it on BTC/USD for 1min, but the logic should work on other assets as well. It is diagonally layered to be profitable for when the asset is in a downtrend.

Diagonal layering refers to entry and exit conditions spread across different timeframes. Normally, indicators can become unprofitable because in downtrends, the overbought zones of the current timeframe are not reached. Rather, the overbought zones of the faster timeframes are reached first, and then a selloff occurs. Diagonally-layered strategies mitigate this by selling diagonally, that is, selling once the faster timeframe reaches overbought and buying once the slower timeframe reaches oversold.

Thus this strategy is diagonally layered down. I may create a separate script that alternates between diagonal-up and diagonal-down based off of overall trend, as in extended trend periods up this indicator may not flash as frequently. This can be visualized in a time series x timeframe chart as an "X" shape. Something to consider...

Let me know if you like this strategy. Feel free to alter the pyramiding entries, initial capital, and entry size, as well as commission regime. My strategies are designed to maximize average profit instead of flashing super frequently, as the fees will eat you up. Additionally, at the time of publication, all of my strategy scripts are intended to have profitable Sharpe and Sortino ratios.

Timeframes, RSI period, and oversold/overbought bounds are configurable.

リリースノート

Altered to align with Tradingview's method of non-repainting, see the link inside the script.

リリースノート

Added another way to prevent repaint. The "Manual Calculation" will use the multiple between your current timeframe and your higher timeframes to calculate the RSI. Compare it with tradingview's default RSI - it is practically the same!

I set this new RSI setting as default. It should not repaint at ALL now because all higher TF RSI's are being calculated from the group up using timeframe multiples.

リリースノート

Added short capabilities.

リリースノート

Added timeframes above 4 hours to the manual calculation method.

リリースノート

Changed tooltip message.

リリースノート

Updated strat settings.

リリースノート

I didn't have the input for the ema actually link to the ema calculation. Now it does.

リリースノート

Option to go both long and short vs. just long is now in settings (for those in the comments wondering about changing the code).

リリースノート

Added title to short trades.
コメント
Nickbele
Man, this Simple Strategy is Sooo deceivingly Good! Thank You! It's simply a money-making machine...! Thank you!
wbburgin
@Nickbele, Thanks man! I'm glad you're having success with it!
JaimeReyes17
@Nickbele, how are you using it? Please tell me
borsakuzen
when i try to get this in my market i get an error "invalid value of the length argument (0) in the "rma" function.it must be / 0". what do i do wrong?
wbburgin
@borsakuzen, I believe your timeframe is not in the table I created in the code. As of now I haven't updated it to work with nonlinear timeframes, but if you have a custom timeframe that is a normal multiple of seconds (can you divide it into seconds?) I can add it to the timetable.
rzaretoks
@wbburgin, Hello, I have the same problem. Is it possible to add short till 1h?
ilmdy0314
I found this worked very well on back testing, any tips on how to use this on forward testing and using Tradingview's paper trading account? sorry if this sounds too newbie
wbburgin
@ilmdy0314, I've had the same question in the past but I don't think we can use Tradingview's paper trading account for it unless we manually enter the trades (tradingcode.net/tradingview/supports-automated-trading/). There has to be some sort of workaround but I haven't found it yet :/
ilmdy0314
@wbburgin, thanks for the reply sir, much appreciate
CryptoZooms
So so good and as you mean need to be for down trend. Perfectly. Wish you continued success..
詳細