CMD – Plot Average EnterPrice

0 340 Views No Comments 2 years ago
  • Note – Requried custom command: GetColor

    Grabbed this originally from pshai’s work but I have since modified it and made it into a cmd that I can call on any script easily

    Option 1 – just give it the position id and thats it!

    
    -- Plot
             InputGroupHeader('Average Enter Price')
             Finalize(CC_PlotAEP(longPosId))
             Finalize(CC_PlotAEP(shortPosId))
    

    Option 2 – If you as using it more then once to plot multiple positions then you can specify suffix, input name and color

    
    -- Plot
             InputGroupHeader('Average Enter Price')
             Finalize(CC_PlotAEP(longPosId, 'Trade', 'Long Trade', 'DarkGreen'))
             Finalize(CC_PlotAEP(shortPosId, 'Trade', 'Short Trade', 'Maroon'))
    
    • This topic was modified 1 year, 10 months ago by Strooth.
    • This topic was modified 1 year, 10 months ago by Strooth. Reason: Added screenshot, updated and added color change feature
    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
Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free