It has a selection for which strategy you'd like to use and due to limitations in Pine I cannot program in logic to make sure you only pick one, so you need to make sure you are only picking one.
To tweak the option - it only depends on the length variable, everything else is hard coded and tweaked for Crypto.
To tweak the - play around with the min and max values of the for lookback and the amount of candles to lookback. Then tweak the fast and slow MA lengths. I have found that a fast length of 3 or 4 and a slow length between 6 and 10 will yield the highest gains.
Also, when I was a young Noob I thought using a chart timeframe of 5 minutes was the best...no...no it wasn't. I lost my ass. Don't lose yours. I highly suggest sticking with a 30 minute timeframe, you will minimize losses caused by false triggers, have less trades and higher profits. More is not always better, trades that may sell one day and then buy six days later are normal. Leave it do its magic and you'll be very happy in the end.
Backtested on EOSUSD pair on Coinbase.
30 minute chart time.
Initial Capital = 829.92
Start Time = 1 April 2021 00:00
End Time = 31 December 2021 00:00
Trade Type = Long/Short
Stop Loss % = 10
Target Profit % = 52.14
RSI Length = 14
Overbought = 62
Oversold = 35
Overbought Lookback Minimum Value = 51
Overbought Lookback Bars = 25
Oversold Lookback Minimum Value = 42
Oversold Lookback Bars = 35
Max Lookback Period = 5
K = 4
D = 12
Everything else not mentioned is default. The default strategy of this script is RSI, so behold the minimal loss of pennies and it's ability to adapt to changing market conditions via the dynamic RSI calculation built into it.
I am still working on the Price Percentage function you see in here, I plan to make another update in the next few days once I have this worked out so it does not impact the function of the rest of the strategy.
I am also working on a guide I'll publish with the next update on how to fully use this strategy.
How to use my script: https://docs.google.com/document/d/1JyQo...
Dans le plus pur esprit de TradingView, l'auteur de ce texte l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur ! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par les règles internes. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.