[pshaiBot] Simple Position Guard

2 638 Views 2 Comments 1 year ago
  • Simple Position Guard is here to help you trade leverage with more confidence!
    It will see whether or not you have a position in the exchange and track it with trailing stop-loss and take-profit, with settings of your choice.

    Known issues:
    – Manually closing a position will be spotted by the bot, but the virtual position information the bot holds cannot be removed. To fix this, just clear the bot’s history.

    The bot will NOT WORK in spot-markets! It is for leverage markets only!

    • This topic was modified 1 year, 4 months ago by pshai.
    • This topic was modified 1 year, 4 months ago by pshai.
    • This topic was modified 1 year, 4 months ago by pshai.
    HaasScript Code
    Sign in or Register to view
    • #693
      zpeach
      Basic
      Up
      4
      Down

      Great script. FYI for other users… I had one issue with my setup. When I ran this script with a “Main Interval” of 1 minute and had the “Main Chart” at 1 minute the position information was not saving and the position kept increasing on each check. For example if the actual Bitmex XBT position was 34 contracts on the next passes the virtual position is 34, then 68, then 102, and so on. This all happened within minutes of starting the script. When I changed the Main Interval to 5 minutes, cleared the log, and restarted the script the virtual position remained at 34 and everything worked very well.

    • #761
      pshai
      Admin
      Up
      0
      Down

      Hey zpeach, thanks for the tip!

Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free