• #1249
      Firetron
      Basic

      Discord is better suited for that discussion.

    • #1224
      Firetron
      Basic

      Here’s a simple test to prove it works:

      local objectArray = CC_ObjectArray('name,age')
      objectArray.Load('savedObjectArray')
      
      function Main ()
      
        local count = objectArray.Count()
      
        local object = {
          age  = 20 + count,
          name = 'Guy '..count,
        }
      
        objectArray.Add(object)
      
        objectArray.Save('savedObjectArray')
      
      end
      
      OptimizedForInterval(60, Main)
      
      Finalize(function ()
      
        local another = CC_ObjectArray('name,age')
      
        local object = {
          age  = 19,
          name = 'Me',
        }
      
        another.Add(object)
      
        local all = objectArray.GetAllValueLists()
      
        Log(all.valueList1)
        Log(all.valueList2)
      
        another.Concat(objectArray)
      
        local count = another.Count()
      
        Log('Count is '..count)
      
        for i = 1, count do
      
          local object = another.Get(i)
      
          Log(' ')
      
          Log('Age is '..object.age)
      
          Log('Name is '..object.name)
      
        end
      
      end)
      
      • This reply was modified 1 month ago by Firetron.
      • This reply was modified 1 month ago by Firetron.
      • This reply was modified 1 month ago by Firetron. Reason: Updated to test methods Concat and GetAllFieldLists
      • This reply was modified 1 month ago by Firetron. Reason: Renamed field lists to value lists
    • #1220
      Firetron
      Basic

      Fixed some major typos.

      • This reply was modified 1 month ago by Firetron.
    • #1209
      Firetron
      Basic

      Right, having it in the math lib for SE would be rather superfluous when you can just % in SE.

    • #1198
      Firetron
      Basic

      I reverted the contracts and usdPerContracts inputs, because you should only be using this on the exact same base currency.

    • #1196
      Firetron
      Basic

      This is in the latest standard lua math lib. Maybe someday our lua will be upgraded and we won’t need a CC for it?

    • #1189
      Firetron
      Basic

      I added inputs for contracts and usdPerContract to convert between how the contracts work.

      • This reply was modified 1 month, 2 weeks ago by Firetron.
    • #1186
      Firetron
      Basic

      Won’t be able to give it a good test until there is 2 full quarters worth of history on an exchange for 2 different quarterly contracts on the same pair.

    • #1175
      Firetron
      Basic

      Better setting for BTC:

      Expand By: 0.01
      Expansion Trigger: -5
      Interval: 4 hour
      Profit Trigger: 5
      
    • #1165
      Firetron
      Basic

      Decent setting for BTC:

      Expand By: 0.01
      Expansion Trigger: -5
      Interval: 5 minutes
      Profit Trigger: 2
      
Viewing 9 reply threads

Unlock your crypto trading potential

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

Join for Free