Firetron’s UpdateOnInterval

1 109 Views No Comments 4 months ago
  • Calls a function on an interval, and remembers the previous result between the update intervals. Works the same as OptimizedForInterval/DefineIntervalOptimization, but with override feature.

    Custom Command Dependencies:
    None

    Test Script:

    local interval = 15
    local override = false
    
    local GetCurrentAsk = function ()
    
      return CurrentPrice().ask
    
    end
    
    local result = CC_UpdateOnInterval(GetCurrentAsk, interval, override)[1]
    
    Log(result)
    • This topic was modified 3 months, 3 weeks ago by Firetron. Reason: Changed description
    • This topic was modified 3 months, 3 weeks ago by Firetron. Reason: Changed description
    HaasScript Code
    Sign in or Register to download for free
Login or Register to Comment

Unlock your crypto trading potential

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

Join for Free