Firetron’s InputPriceSpread

1 104 Views No Comments 4 months ago
  • Creates a group of inputs for Firetron’s GetPriceSpread.

    Custom Command Dependencies:
    None

    Test Script:

    if not Load('done', false) then
    
      local p = {listDynamic = CC_InputPriceSpread('Price Spread')}
    
      local spreadPrices = CC_GetPriceSpread(p)
    
      for i = 1, #spreadPrices do
    
        Log('Spread Price: '..spreadPrices[i])
    
      end
    
      Save('done', true)
    
    end
    • This topic was modified 4 months, 1 week ago by Firetron. Reason: Corrections to descriptions
    • This topic was modified 4 months, 1 week ago by Firetron. Reason: Changed group name in test script
    • This topic was modified 4 months, 1 week ago by Firetron. Reason: Added a tag
    • This topic was modified 4 months ago by Firetron. Reason: Updated test script to use new parameter: listDynamic
    • This topic was modified 3 months, 3 weeks ago by Firetron. Reason: Added "exp" option
    • This topic was modified 3 months, 2 weeks ago by Firetron. Reason: Added offset input
    • This topic was modified 3 months, 2 weeks ago by Firetron. Reason: Added fibPercent spreadType
    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