[HaasBot Utilities] VPM Virtual Position Management: manually adjust positions, prevent anomalies aka “Ghost Orders” in a running HaasBot

4 1028 Views 3 Comments 3 years ago
  • Added screenshot of unspecified_price (default 0) closed with VPM ROI will be different..
    Virtual Position Management for adjusting or cleaning running HaasBots virtual positions (busting ghost orders/ghost errors)

    Useful to adjust a position to match the non virtual: real position size (if not 0) on exchange.
    If this has changed manually or otherwise And
    You want to update a running HaasBot to ‘know’.. or ‘forget about it’….

    Clear /clean any residual Virtual Positions and prevent what is sometimes referred to as
    “Ghost Orders” (Limit orders to close what is already gone on exchange opening new ‘ghost’ positions that your script (now considers as closed)) or trade amount errors instead. When you happen to know your script to occasionally gets residual old orders that you want to clear

    This can occur for various reasons in or outside your script: latency, a server reboot or scripts frequently trading multiple ‘Unmanaged’ positions at a time ..
    Forces of nature / acts of god, Murphy’s law etc all can make the virtual not match the ‘real’ [state of a position size if any.]
    If still in doubt remember this for when you’d wish you called ghostbusters/=] or
    typed VPM and included this simple tool for the job:
    To clean what is not there to begin with..
    If you don’t set a price to close a VP, your ROI will be off….
    (It probably can’t hurt to have it in your scripts, for when you would find out you’d love it (*but use at your own discretion.))

    Additional safety measures added: (courtesy of AlexTan)
    To make sure VPM will only execute 1 simulated order
    (Will need to uncheck and save first before additional order can be executed)
    A warning message will come up once the simulated order is executed. Asking to clear input, uncheck box and save.

    Additional info as suggested and disclaimer…
    *we (anyone you deem even remotely related real or imaginary) are not responsible for any real or imaginary losses incurred in any trading not limited to not using or to any script that chooses to include VPM even if it is executed or not.. or deemed useful in past present or future uses….etc.. and..you agree you love this tool in perpetuity in case…….you…..don’t or do download it or find it embedded wherever… …You’re welcome .;)..]]–

    • This topic was modified 2 years, 4 months ago by Kobalt. Reason: added screen of unspecified_priceVPclose
    • This topic was modified 2 years, 4 months ago by Kobalt.
    • This topic was modified 2 years, 4 months ago by Kobalt.
    • This topic was modified 2 years, 4 months ago by Kobalt.
    • This topic was modified 9 months, 4 weeks ago by Kobalt.
    HaasScript Code
    Sign in or Register to download for free
  • Mandala Trading Competition Promotion Type: contest Expires: June 9, 2023 Exclusive
    Trading volume competition, win up to $10,000 USDT and bounties.
  • Earn Up to 200 BMEX Tokens Promotion Type: contest Expires: March 31, 2023
    15 BMEX @ $20,000, 25 BMEX @ $50,000, 50 [email protected] $200,000, 100 BMEX @ $400,000, 200 BMEX @ $600,000 in monthly derivatives volume
    • #1606

      Heya Kobalt, this one seems not to work – cant import it – please check and update – or note of further issues if on my side

    • #1620

      bunka’s import was a Firefox thing, somehow it included white space, all should be fine now

    • #1651

      You should probably describe its purpose. This is very useful but many may have no clue why. Describe what it does and when you would want to.

Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free