All in One Strategy

True improvement over my previous script. This script adds in all of the complementary indicators, makes it truly easy to adjust the inputs, and has produced a real world net gain using the TradingView bots paired with any broker's API that is supported.

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 Connors option - it only depends on the RSI length variable, everything else is hard coded and tweaked for Crypto.

To tweak the MACD - play around with the min and max values of the RSI 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 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.
Notes de version: Have you ever wished for a Really Stupid Indicator (RSI) strategy that really worked? Well, alone it will never work. But, when paired with some actual mathematical logic to cross check for a true sell and buy condition it can do wonders. Look no further, with this update I bring you a vastly improved All in One strategy that has the true Holy Grail of RSI strategies built in. I have tweaked it that Long and Short can coexist peacefully within a single strategy to be unleased at the same time without the dumbass overlap you see with other strategies closing a long and starting a short at the same time as if by magic. To prove it works, I tried it with an Alt Coin - EOS. Here are the settings I used to produce these wonderful results. Oh...and NO REDRAWING!!! Of note, this is not for the squeamish and fidgety trader that expects a quick buy and sell to happen instantly as the price rises and falls. The average number of bars that buys and sells occur on is 278 bars at 30 minutes in this example, which amounts to 139 minutes for those that can't math.

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.
Notes de version: Fixed some issues reported to me on the EMA function, found the issue in one of the lines of code and apologize to anyone who ran into similar issues.

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.
Notes de version: Added some better risk management techniques to the code due to the market making dookie as opposed to making money.

How to use my script:
Notes de version: Found another error in the script for trading long and short together and fixed it. If you are using this script with the default RSI strategy and doing long/short simultaneously, you will need to set your trade equity either at 50% of the fiat or with a fixed number of contracts for the back test results to show the right analysis.
Notes de version: Played around with the EMA portion of the strategy and figured out better crosses that didn't lose money like the common approach of fast crossing slow.
Script open-source

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.

Vous voulez utiliser ce script sur un graphique ?
Performers follow, high performers break from convention.


I like the strategy but is there a way to convert this easily to a study? I would really like to use this along with other indicators. nice!
500 coins
Solutions1978 mmarano869
@mmarano869, here it is as a study:
mmarano869 Solutions1978
@Solutions1978, Can you explain this a little better? All these colors are throwing me for a loop but I like the concept of combining them all into one script. Thank you! Also explaining how to exactly use the indicator properly.
+1 Répondre
Hi sir ,

Can you make this a study pls ?

And does it repaint or not? thx
+1 Répondre
@NYTRADE, no repainting. Here is the converted study:
+1 Répondre
Blueprintsud Solutions1978
@Solutions1978, you are a legend :) my friend
My bad...I see you can choose long or short,,, your way ahead of me, S..1978
Thanks, Solutions 1978...for most of us in the U.S., shorting is not an option. Is there a way to turn off the shorting part of this?
Maybe the best indicator script I’ve seen, however I’m likely losing my mind picking 1 strategy…not so much which one, but how to actually just make it one. Any chance you can detail a bit of the “how” to pick the strategy in the properties?