Firetron’s FractionGrab

1 607 Views No Comments 3 years ago
  • Grabs a fractional range from an array, list, or table.

    Custom Command Dependencies:

    Test code:

    if not Load('done', false) then
      local list = Grab(ClosePrices(), 0, 12)
      Log(' ')
      Log('Unsorted List:')
      Log(' ')
      local unsorted_3_4 = CC_FractionGrab(list, 3, 4, false)
      Log('3rd part of 4 unsorted:')
      Log(' ')
      Log('Sorted List:')
      Log(' ')
      local sorted_3_3 = CC_FractionGrab(list, 3, 3, true)
      Log('3rd part of 3 sorted:')
      Log(' ')
      local sorted_1_3 = CC_FractionGrab(list, 1, 3, true)
      Log('1st part of 3 sorted:')
      Log(' ')
      Save('done', true)
    HaasScript Code
    Sign in or Register to download for free
  • HaasOnline Black Friday Sale Promotion Type: Sale Expires: December 7, 2023 24:00 UTC
    For a limited-time get up to 50% off monthly and 30% off annual plans.
Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free