Solutions1978

All in One Strategy

Solutions1978 已更新   
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 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.
版本注释:
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.
版本注释:
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.
版本注释:
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: docs.google.com...ycBbaeuxEs/edit?usp=sharin...
版本注释:
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.
版本注释:
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.

Performers follow, high performers break from convention.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?