DCA Spaghetti Bot

5 1967 Views 14 Comments 2 years ago
HTS CLOUDBETA
  • The DCA Spaghetti Bots derives it’s name from the quality of my Haas Visual Code. It looks like tasty spaghetti to me. It takes a constant long signal or an external long signal to create a base order. After that the bot uses pyramiding safety orders based on a % drop from the bot’s average position and if you want in combination with the RSI indicator. This will cause the average buy price to be lowered which helps the bot to exit its long position with a profit. By averaging down the position the bot is able to achieve profits using long only orders even in bear markets. The bots has a few plots that can be handy to build your strategy.

    Strengths:
    – A great bot for rising markets or if you are longer term bullish
    – Can make use of price volatility to generate more profits
    – Can be a profitable bot in almost all market conditions

    Weaknesses:
    – You will likely need to reserve a lot of collateral to use it in a efficient way
    – Needs a (dead) cat bounce to exit in bear markets

    HaasScript Code
    Sign in or Register to download for free
  • Earn Up to $100,000 USDT Promotion Type: contest Expires: June 30, 2024 Exclusive
    Fire up your trade bots and earn up to $100,000 USDT, BitMEX VIP, free subscriptions, and more.
    • #3403
      zdemirci55
      Basic
      Up
      0
      Down
      ::

      I have been using it actively for 1 week, the results are amazing. I am grateful for the work.

      • #3460
        Katerin
        Basic
        Up
        0
        Down
        ::

        Can you share your settings

    • #3565
      Up
      1
      Down
      ::

      CAN YOU PLEASE SHARE A SPOT VERSIONS, THANKS IN ADVACE BROTHER.

    • #3572
      Up
      0
      Down
      ::

      thank you, much appreciated.

    • #3580
      AlesVrto
      Basic
      Up
      1
      Down
      ::

      It works great even in high volatile bear market
      Just set take profit to 1 %.
      Price data interval 15 min
      Max pos amount calculate how much you want to invest and divide to trade amount and you get max SO(it should be 50-100).
      For price data interval 4h should be ( SO 20-50)
      Volume scale 1.1 Don’t go over 1.1( you will loose at end).
      Price diff: 0,8 (low and middle volatile market). For high volatile market ( 1 or 1.2)
      step scale: 0.6 (low and middle volatile market). For high volatile market ( 0.8 or 1)
      rsi period 21
      rsi interval 1 min
      rsi below 40%
      These settings works for xrp. 100% win rate without single lost the last 12 months on backtesting for xrp/usdt future 30x

      Update:
      I tested this bot for 4 years in backtesting from jan 2020 – dec 2023. For low and middle volatile market it works great previously settings I mentioned.
      But for high volatile market I’v seen market dropped for 40- 50% in couple of hours in 2022. If you see big bearish volatile red line 10% and more you must increase immediately in settings
      Price diff to 1 or 1.2 and step scale to 0.8 or 1 !!! If you don’t increase you will get a lot of new orders and potential liquid margin balance.
      It works really good this bot. These settings works for the last 4 years of backtesting future xrp/usdt.

      • #3584
        galselhard
        Basic
        Up
        0
        Down
        ::

        It really depends on how you want to use the bot and the coin.
        For example if you look long term you can also do higher volume scale but only use max 8 SOs and cover what deviation you think you need with step scale.
        Less safety orders and higher volume is more capital efficient because your average price will be lower.
        The tradeoff you make with less safety orders is that it is possible to miss the cat bounce you need to exit, but that also applies for volume if its not enough.

    • #3585
      galselhard
      Basic
      Up
      1
      Down
      ::

      This is the newest version. You will need to install the CCs also.
      It uses % of the wallet as the base order for compounding profits.
      It has improved plotting.
      It has a build in fitness function for HaasLaabs (Intelligence) to tune the bot.

      https://app.haasbot.com/Public/Scripts/c852315c0bf041ea98d6cb36ba2d5ef4

      • #3587
        AlesVrto
        Basic
        Up
        0
        Down
        ::

        I tested and it doesn’t close the position. Why?

      • #3592
        galselhard
        Basic
        Up
        0
        Down
        ::

        likely in trailing profit also check if you are using market or limit orders.

      • #3600
        galselhard
        Basic
        Up
        0
        Down
        ::

        I noticed an issue if trailing was set to 0. If you don’t want to use trailing best is to set it to 0.01

    • #3588
      Up
      0
      Down
      ::

      This bot is very impressive, thank you. One improvement that I keep thinking about is whether it’s possible to make the DCA bot work for both long and short positions to maximize profits. I am considering using a 50×200 SMA cross for long positions and vice versa for short and executing the DCA strategy (posiblly for SPOT VERSION). I am not a pro, but I am asking if it’s possible to implement such a strategy.

      • #3593
        galselhard
        Basic
        Up
        0
        Down
        ::

        Its possible yes but really hard within the same bot. You can offcourse run a long bot and a short bot on the same coin and use hedge mode on the exchange.
        I have a short version but i havent touched it for a long time so its not in sync with the long version. Maybe i share it when i have time to update it.
        The SMA cross signal can be sent from tradingview or you can edit the bot sources.

        Some other interessting signals are the “technical ratings” on tradingview. You can sent an alert to start based on a timeframe and buy, strong buy, sell, strong sell.
        But it is not easy to get the timing perfect.

    • #3594
      Up
      0
      Down
      ::

      I’ve switched to using the CC_StroothsTrailingEnter in place of the remote signal, and I’ve found it to be highly effective on higher time frames. This adjustment has resolved the timing issues. When you’re available, I’d appreciate it if you could share the short strategy. Thanks once again.

Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free