CMD – Plot Average EnterPrice

0 77 Views No Comments 4 months 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 3 months, 1 week ago by strooth.
    • This topic was modified 3 months, 1 week ago by strooth. Reason: Added screenshot, updated and added color change feature
    HaasScript Code
    Sign in or Register to view
Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free