[CMD] Sync Positions

2 462 Views 1 Comment 1 year ago
  • Yes it works, Yes Its running on live working bots.

    Will sync positions with whats open at the exchange if the bot looses its amount or entry price somehow.


    if backtest == false then 
                CC_SyncPositions(sync, LongPositionId, ShortPositionId, PriceMarket(), Leverage(), false, false)

    — Feel free to donate to support my work or if my script helped you in any way <3
    — BTC Adress: 33MsEAbA8tg7SpohgnCpSrmPTBih2UkhxQ

    • This topic was modified 1 year, 3 months ago by Strooth.
    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
    • #3406

      Please update line 68 of the script to:

      elseif pos.isLong == true and pos.positionId != long then

      because pos.isLong == true is missing, when you delete the position from exchange it is not updated in the bot.

Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free