• #3085
      Kobalt
      Basic

      Hey,
      Great job, love the buttons!.
      -gave input menu some some <3.
      Maybe you can merge this then will set this to EOL.
      [to prevent multiple suggestions for the [non essential or breaking ] VPM dependency in many scripts, trade bots..]

      https://www.haasscripts.com/t/vpm4-virtual-position-management-for-hs4-tradeserver-cloud/

      • This reply was modified 3 weeks ago by Kobalt. Reason: minor cleanup, finishing touch, suggest merge
    • #3078
      Kobalt
      Basic

      Cool Looking at above trades [if the first position was kept vs exits, re-entry]
      Are you [like me] also still are tackling the same hurdle:
      How to NOT close your Short [only reduce to a minimum 1x leverage cross] until bullish confirmation (increase BTC and hedge its USD] or have a re entry mechanism SL for the minimum portion of your accounts equity?
      Have closed it too often and was ‘naked’ ‘long unnecessary . very deja vu isn’t it? ;p

      • #3079
        Kobalt
        Basic

        Arguably both are just as clean
        I think this for me gives a clear view of what you would achieve with IfElseIf chains in VE and especially the levels you need to end :


        ”’ if CurrentPrice().close < vwap250[1] and GetPositionDirection() != PositionShort
        then
        if vwap20[1] < vwap60[1]
        then
        if vwap20[1] < vwap250[1]
        then
        if vwap60[1] < vwap250[1]
        then
        if ppo[1] <= ppoSignal
        then
        if rsi > rsiShortLevel
        then
        if vwap250[1] < vwap250[12]
        then
        PlaceGoShortOrder(0,TradeAmount(), {type=MarketOrderType, note=’S’})
        end
        end
        end
        end
        end
        end
        end
        end”’

        • This reply was modified 3 weeks, 1 day ago by Kobalt.
    • #3065
      Kobalt
      Basic

      t / REX 🙂

    • #2818
      Kobalt
      Basic

      Have you already been able to try this on v4? (It seems good practice to keep scripts tidy, fast)

      Thanks for publishing this, educational content is much appreciated.

    • #3077
      Kobalt
      Basic

      You could limit long entries on Inverse to only very OS delayed MFI/RSI and a high ATR this is pretty good at catching the lows (1 minute interval for ATR others rsi etc try higher intervals)
      If you are still interested in this let me know if you already have the unique positionId thing :
      (connecting PositionContainer orderId to the StopLoss or an Insurance like done here will not assign a NewGuid in Managed Trading Bot here ) I can look or cook up a template for this.

      —- assorted bits Regarding leverage:
      When you start with 1x on futures you immediately lock your equity and cannot apply higher leverage so it in a way seems safe but it’s just as unforgiving as spot alts can be
      If you start with max leverage you can easily deleverage to get more range for your bucks.
      Inverse Perpetual (with BTC or COIN as collateral) Long positions are inherently much riskier as when market goes against your Long position, your uLoss gets bigger while the price of BTC also goes down your margin requirements are impacted even more this will get you liquidated for sure.

      Right now is still.. bear market, even if you think we have seen a bottom having a short of 1x leverage will be neutral and protect your USD value (and shorts are very forgiving as when market goes against you BTC collateral USD value goes up (You may end with less BTC same USD value while every successfully closed Short increases your BTC.. (I only open longs as a hedge but pretty much never on Inverse)

      (Even in Bull market I only traded short on inverse, just more conservatively… building up to 1x around the local and ATH’s never opened long on Inverse ever.. learned my lesson)
      if I’m bullish will buy BTC on Spot (or open a Long on BTC/USDT against my 1x short on inverse) I only ever start to open long on USDT Linear for any market but will also short there against spot or HEDGE, my USDT scripts tend to trade both directions (MMB variations)

      Just use very small amounts, check what equals 1x leverage amount then set to max leverage and only use part a very small part 1% up to 1.5% start slow and set your orders bigger further from price ~1.25x then after you return and it looks like -300% you can recover with some DCA you can very easily get that position back in range, ‘Freeze it for manual fixing after you do your things’ with a hedge, Or just wait it out..maybe with a mix of all of the above..

      Patience works well for BTC just check daily, 4h 1h timeframes as long as price keeps rejecting 200MA it is bear market, expect price to revisit 200MA on daily when that gets broken, open a long hedge, start getting out of the short.
      using leverage on an as needed basis can really help to still safely get you back in the trade range to exit with a profit, but the hardest thing for me has been to NOT close my short position…
      [really difficult right now every low looks very low while it keeps going lower on macro any up move can turn relief rally up to 40% and still be a local rally to reject 200MA]
      I always try to build in local uptrend up to 4hour charts or have >1x leverage short in a still bear market on inverse it’s a neutral hedge and earns you funding interest in BTC
      using Market orders also adds a big hurdle as you pay difference between Mark and Bid + taker fees, to add to your position use post only MakerOrCancel really helps ‘relatively’ confident it will go both higher and lower than current market so patience is key .

      [this was collected and copy pasted on topic]
      —-

    • #3075
      Kobalt
      Basic

      This happens due to not assigning a fresh unique positionId (connecting PositionContainer orderId to the StopLoss or an Insurance like done here will not assign a NewGuid in Managed Trading Bot here )
      Try adding this custom command to manually adjust/fix position issues
      https://www.haasscripts.com/t/haasbot-utilities-vpm3-create_adjust_close-virtual-position-management-for-running-haasbots/

    • #3072
      Kobalt
      Basic

      Updated links guys please check if you still get same crap or shitloads of coin. (only short the shit out of alts for USDC BUSD)

    • #3060
      Kobalt
      Basic

      That is SJEEET guys, and a shame as it smelled like $$….
      I will check saved shits[full off it]
      With a bit of luck might be able to produce another #2:

      ‘Running Late/Less Shitty Bot.’
      Soon..

    • #2819
      Kobalt
      Basic

      +++ Indeed! Some commented descriptions as a/our guide will greatly compliment your example [+your time inverted, will return you 3x the mana spent ;] here.
      Would be great to have this knowledge in a more beginner friendly accessible format for educational purposes.. @pshai

Viewing 3 reply threads

Unlock your crypto trading potential

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

Join for Free