[pshaiBot] Simple Market Maker (Leverage, NEW HEDGE MODE)

7 4185 Views 14 Comments 11 months ago
  • Simple Market Maker
    by pshai @ 2020

    Introduction:
    This simple market maker makes the market!
    It doesn’t stop, it has no limits (other than max. pos. size)
    and it’s amazing. Get familiar with the bot before using it!
    I strongly suggest doing backtests and especially running it
    using a simulated account until you are confident that you know that
    this bot knows what it is doing! Also remember that backtests cannot
    represent the results you would see with a live bot; the difference
    is very…different.

    About trading commands….
    This bot uses exit order commands only, but dont be alarmed!
    It is merely a hack that I found while exploring, and this hack
    allowed me to not bother handling positions whatsoever!
    In other words, the bot works well with these; it just looks weird.

    –== !NEW! Hedge Mode ==–
    With this new feature you are able to trade on Binance Futures, OKEx
    and other excahnges that support hedge mode. Enable this mode ONLY
    when you are certain that hedging is supported on your chosen exchange!

    *THINGS TO NOTE:*
    – This bot will not work well on:
    –> Bybit; bot is too intense for their API, dont trade there…
    –> Bitmex; API Incompatibilities
    – BE VERY CAREFUL with fixed high leverage!

    ~~ May the profits be with you ~~
    ~pshai

    Consider donating to support my work!
    BTC: 3KBNiSWXLBdkM8s5CKizo9rUK7ViA2PuFA

    • This topic was modified 10 months, 3 weeks ago by pshai.
    • This topic was modified 10 months, 1 week ago by pshai. Reason: Fixed hedge mode positions
    • This topic was modified 10 months, 1 week ago by pshai. Reason: Changed TP to price based
    • This topic was modified 8 months, 1 week ago by Team HaasScripts.
    • This topic was modified 8 months ago by Team HaasScripts.
    HaasScript Code
    Sign in or Register to view
    • #1248
      wane
      Basic
      Up
      0
      Down

      This is truly a beautiful beast!

      I do have a question though, maybe you can help. I’d like the to use the “Trailing stop market order” for Take Profit, but it doesn’t work. Is there a setting in the script that I haven’t paid attention to, or is the Binance API currently not up to it?

    • #1313
      pshai
      Admin
      Up
      0
      Down

      Hey Wane,

      Currently HTS doesnt support any native trailing orders, only available ones are the stop orders and take-profit orders.

    • #1716
      MAHDZAMAN
      Basic
      Up
      0
      Down

      Dear Pshai
      can you enable this bot on SPOT market

    • #1722
      Firetron
      Basic
      Up
      0
      Down

      Test this with SIM for a while to make sure I don’t have any bugs: https://www.haasscripts.com/t/pshaibot-simple-market-maker-spot-mode/

    • #1736
      scsmcripto
      Basic
      Up
      0
      Down

      Pshai this script is really crazy!

      I have a question, I hope you can help me. I want to add “Stop Loss” to restrict loss, how can I add it?

      • #2128
        pshai
        Admin
        Up
        0
        Down

        Adding a simple Stop-Loss might bring in some problems, as the bot relies on averaged (DCA) positions. Contact me on Discord misthema#5446 and we can work something out.

    • #2010
      iddqd
      Basic
      Up
      0
      Down

      52. 15 Feb 2021 18:30:00 WARNING: Order has been cancelled. Reason unknown. (6ce13588878a40da9b835c09ad8f637d)
      51. 15 Feb 2021 18:30:00 WARNING: No maker template available for BinanceFutures. Falling back to normal limit order.

      on simulated account all ok but on real not working

    • #2031
      Up
      0
      Down

      What can i do, if bot lost positions. Means still short open, but bot doesnt show? Thx

    • #2093
      Up
      0
      Down

      I have the same issue with the bot saying “No maker template available for BinanceFutures. Falling back to normal limit order.” what does it mean?

      • #2127
        pshai
        Admin
        Up
        0
        Down

        It is just a warning telling you that it is trying to use unsupported order type which makes it fall back to a limit order. Nothing worth worrying 🙂

    • #2195
      antharas
      Basic
      Up
      0
      Down

      Hi pshai,

      It gives great results in test mode, but when I try to run with Binance USDT Futures, no orders were created. From the log:

      408. 28 Apr 2021 05:34:25 WARNING: Order has been cancelled. Reason unknown. (82fafa7104e44cceb94d5f4552913060)

      Please can you let me know if that’s error from my side or how can we fix it?

      • #2207
        ximalo
        Basic
        Up
        0
        Down

        I had the same issue. Look at the HaasOnline Trade Server Log/Shell/Command Window. Here I found the following message:
        “Order’s notional must be no smaller than 5.0 (unless you choose reduce only)”
        I had the slot size reduced to 0.9 in simulation mode. There it seems to work, but for the real account/live mode I had to increase the value.

    • #2260
      Up
      0
      Down

      Seem like the Max Open Contracts not working. I set slot size 1000, max open 10000, and it’s now at 40000

Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free