• #1722
      Firetron
      Basic

      Test this with SIM for a while to make sure I don’t have any bugs: https://www.haasscripts.com/t/pshaibot-simple-market-maker-spot-mode/

    • #1667
      Firetron
      Basic

      Can you provide some more details or use cases of how to benefit?

    • #1651
      Firetron
      Basic

      You should probably describe its purpose. This is very useful but many may have no clue why. Describe what it does and when you would want to.

    • #1650
      Firetron
      Basic

      Love it! Make it work for hedged!

    • #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 4 months, 3 weeks ago by Firetron.
      • This reply was modified 4 months, 3 weeks ago by Firetron.
      • This reply was modified 4 months, 3 weeks ago by Firetron. Reason: Updated to test methods Concat and GetAllFieldLists
      • This reply was modified 4 months, 3 weeks ago by Firetron. Reason: Renamed field lists to value lists
    • #1220
      Firetron
      Basic

      Fixed some major typos.

      • This reply was modified 4 months, 3 weeks 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?

Viewing 9 reply threads

Unlock your crypto trading potential

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

Join for Free