TradingView
godtrix
Jun 16, 2021 2:03 PM

Godtrix's Crypto HA+RSI+EMA+ATH+DCA Strategy 3.0 

Bitcoin / U.S. dollarBitstamp

描述

New Updates is here! Upgrade from previous version 2.0 (Please avoid using v2.0 as it's outdated.)
Great stability, Repaint bug fixes, and New features!

==================
| Introduction: |
==================
This is a Long Term Strategy, using compounding profit method, it can generate high returns, but it also risk for losses, this can be overcome if you set Stop Loss to over 25% for bitcoin & 60% for Altcoins.

Best profit plan with this strategy is you trade on Future leverage while you hold on to your coin, so that when price goes up, your coin value goes up, and at the same time, you trade with your leverage to earn even more, easily doubling up your total profit.

Benefits:
  • Fully customizable and you can easily personalized it and FINE TUNE it according to the market or coin you trading on.
  • The strategy is based on REAL PRACTICAL trading skills, so it works in real-world.
  • I fixed the "repainting" issue so the backtest it shows you IS ACCURATE when you run for real-time.
  • We all know one indicator is not going to help you win your trades, so this strategy combines ALL three: EMA for long+short term trend, HA for short term trend, RSI for entry/exit
  • This strategy is designed for LONG trade (Buy low, Sell high), not for SHORT trade.
  • This is not day trading, it is more to mid-term trading, where there's only few trades per month
  • Mainly is coded to work with 3Commas bot auto trading, so you only need to key in your Bot ID & Email Token.


Bot trading NOTE:
- You need to replace the Alert Message with this: {{strategy.order.alert_message}}
- And you'll need the Bot's webhook Url set with the Alert too.
- One Alert will work for both Buy and Sell Order
- If you using other Bot service, you can enter Custom Command in Input Settings too, it works on any bot service.

Lastly,
regarding the setting advice, I would say you try playing with different settings and your objective is to achieve a backtest result that has:
1) Profitable is > 80%
2) Losing trades is nearly 0 or below 25% of your winning trades. Trick is using far stop loss %
3) Net Profit be almost same or more than "Buy & Hold Profit"

==================
| Latest Updates: |
==================

=| Tidy Up Codings |=
- Group input fields so it'll be easier to understand and find the settings
- Upgrade code for obsolete 'transp' options

=| Repaint Issues |=
- Previous v2.0's RSI has repaint issue, creating false result against real-time data. I've fixed this.
- Also done fine-tuning other parts of the codes to prevent possible repaint issues.

=| Bot System |=
- Improved Custom Bot system, so that you're able to set dynamic order size/quantity with my custom keyword: [{base_order}] and [{dca_order}]
Base Order Example:
{ 'message_type': 'bot', 'bot_id': 1234567, 'email_token': 'abcdefgh-1234-1234-1234', 'base_order': [{base_order}], 'delay_seconds': 0, 'pair': 'USDT_BTC'}

=| EMA Downtrend Exit |=
- Added option for you to decide whether to close position when detected EMA Long term downtrend.

=| EMA 2 (short term) is removed |=
- After several test, I've decided to remove this because it doesn't contribute to improving the results.

=| Heikin Ashi System |=
- Improved the chart display, now you'll see the HA candle 'shadowed' behind, so you'll see both actual price candle and HA candle at same time.
- Added the system that detect the HA candle sizes to decide specifically when it's suitable for Entry and Exit.

>> For "Entry/Exit Range"
- This means after HA is valid for Entry or Exit, how many following bars are allowed to stay valid so it will match other requirements to be completely fulfilled for Entry or Exit.

>> For "Crossing Interval"
- This means after detected HA line crossover, how many HA intervals is allow to Entry or Exit

>> For "Reversed Exit"
- This function let's you decide whether to close position if after HA bull (green candle) changed into HA Bear (red candle)

=| RSI A Entry |=
- Added option to avoid Entry during NTZ (No trade Zone)
- Also added the option to avoid next same condition RSI A entry too soon

=| RSI B Entry |=
- This function is for Entry if RSI is going very low, mostly due to bigger price drops in short time, it's good for buying DIP, however we'll never be able to know when a DIP ends, so do more test on this settings before put into real use.
- Added "avoid" options to help avoid getting Entry at "false" DIP, more like a short & fast pullback which causes RSI to drop very low but actually the price is near ATH or Recent High.
- Added option for Entry with Trailing Price Lower Buy combine with a limit order that grabs low price, so whichever it fulfill first.

=| New: Avoid Entry |=
- Well, it's a pain if you bought at the top, so I've added two options that will avoid buying near ATH and Recent High.

=| Time-limit Removed |=
- Sorry that I've missed look on the script policy which I'm not allowed to put a time-limit for public scripts.

=| System Improvements |=
- HA condition detection is optimized and bug fixed
- RSI values now reads accurately on each bar despite using higher timeframe, especially when moving to next interval

=| New: Dollar Cost Averaging (DCA) Orders |=
- Although DCA strategy is not appealing for Long term strategy, but I've added it for your extra options and flexibilities.
- The settings are quite straight-forward and standard, so I won't be explaining here.

=| New: Backtest Start & End Date |=
- This is very good function when you need more accurate result starting at specific date & time.
- Also if you set the date & time for your real trading starts, it'll much result the same as your actual trading records, which helps you to see clearer and make future decisions.

Any found bugs or flaws, please feel free to PM me, I can't get notifications from comments here below, so I'll not able to reply you the soonest possible, still not sure how to turn on notification for comments, anyone who knows can PM and teach me, lol... Thanks in advance!

Well, this is free version, hope it helps! Feedbacks are all welcome :)

(To Moderators: I've fully use the "f_security()" guideline, but instead of creating a separate function, I apply directly on all security() function. Please don't ban my script before fully check if I've truly fixed repaint. Thank you.)

BITSTAMP:BTCUSD COINBASE:BTCUSD COINBASE:ETHUSD BINANCE:BNBUSDT
评论
godtrix
Hey guys, I just noticed in my description under the Bot System, the keyword is missing due to the mechanism of the publishing system. I'll repost it here:

=| Bot System |=
- Improved Custom Bot system, so that you're able to set dynamic order size/quantity with my custom keyword (Actual Keyword can be found in the input settings of the script).

Base Order Example:
{ 'message_type': 'bot', 'bot_id': 1234567, 'email_token': 'abcdefgh-1234-1234-1234', 'base_order': KEYWORD, 'delay_seconds': 0, 'pair': 'USDT_BTC'}
godtrix
@all
Hi guys, sorry for the long wait, the new upgraded script has been published, a very strong & stable Quant DCA bot strategy script, support for various bots such as Alertatron, 3Commas, Cryptohopper, Nextlevelbot, and custom command for other platforms.
Link to the script:
tradingview.com/script/DWoL48SH-Godtrix-DCA-Bot-Strategy-v2-TRIAL/
godtrix
Brand new upgraded, stable, powerful DCA bot strategy trading script, get 7-day trial today:
tradingview.com/script/DWoL48SH-Godtrix-DCA-Bot-Strategy-v2-TRIAL/
UnknownUnicorn27433452
Brilliant, loving it, thanks very much.
godtrix
@ferrariman74, glad you like it, thanks!
sincerePear28493
Hi, is this script still working? because I get an error message
"pine cannot determine the referencing length of a series. try using max_bars_back in the study of the strategy function"

Is it possible to share this script?
godtrix
@sincerePear28493, Hi, that error is mostly due to your timeframe too small, this script is not suitable for a small timeframe, recommended using a 30m chart. The script is private, or you can buy it, if interested, dm me. TQ
igorkyz500
Good afternoon. I use the WAVESUSDT chart and different times. The problem with redrawing remains. what to do?
godtrix
@igorkyz500, good evening! Yes, I'm aware of it, however, I've stopped working on this script, not sure if I'll ever work on this script in the future. But I'm working on a new paid script that's called Quant DCA Strategy, which doesn't lose, you can sleep well & totally no fear of losing money in the morning :) If you're interested, Keep in touch, follow me on twitter
godtrix
I just noticed I didn't highlight the recommended timeframe to use, which is 30mins.
更多