Firetron’s FractionGrab

1 734 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
  • Phemex x HaasOnline Promotion Type: contest Expires: May 31, 2024 Exclusive
    Receive up to 1,200 USDT! The more you trade, the more you earn.
Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free