Firetron’s GetSpread

1 63 Views No Comments 2 months ago
  • Creates a spread of values that can be used for order amounts or prices.

    Custom Command Dependencies:
    Firetron’s Fib

    Test code:

    if not Load('done', false) then
    
      local p = {
        base      = 100,
        count     = 5,
        direction = 'below',
        factor    = 2,
        isPercent = false,
        offset    = 0,
        type      = 'fixed',
      }
    
      local spread = CC_GetSpread(p)
    
      for i = 1, #spread do
    
        Log('Spread Value: '..spread[i])
    
      end
    
      Save('done', true)
    
    end
    • This topic was modified 1 month, 3 weeks ago by Firetron. Reason: Corrected description
    • This topic was modified 1 month, 3 weeks ago by Firetron. Reason: Corrected tags
    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