def __init__(self, source=None, timeframe=None): from marketsim.gen._out._observable._observablefloat import Observablefloat from marketsim.gen._out._const import const_Float as _const_Float from marketsim import deref_opt Observablefloat.__init__(self) self.source = source if source is not None else deref_opt( _const_Float(1.0)) self.timeframe = timeframe if timeframe is not None else 10.0 Lagged_Impl.__init__(self)
def __init__(self, source=None, timeframe=None): from marketsim.gen._out._observable._observablefloat import Observablefloat from marketsim.gen._out._const import const_Float as _const_Float from marketsim import deref_opt Observablefloat.__init__(self) self.source = source if source is not None else deref_opt(_const_Float(1.0)) self.timeframe = timeframe if timeframe is not None else 10.0 Lagged_Impl.__init__(self)
def __init__(self, source = None, timeframe = None): from marketsim.gen._out._observable import Observablefloat from marketsim.gen._out._const import const_Float as _const_Float from marketsim import event from marketsim import rtti Observablefloat.__init__(self) self.source = source if source is not None else _const_Float(1.0) event.subscribe(self.source, self.fire, self) self.timeframe = timeframe if timeframe is not None else 10.0 rtti.check_fields(self) Lagged_Impl.__init__(self)
def __init__(self, source = None, timeframe = None): from marketsim.gen._out._const import const from marketsim import event from marketsim import types from marketsim import event from marketsim import types self.source = source if source is not None else const() self.timeframe = timeframe if timeframe is not None else 10.0 Lagged_Impl.__init__(self) if isinstance(source, types.IEvent): event.subscribe(self.source, self.fire, self) if isinstance(timeframe, types.IEvent): event.subscribe(self.timeframe, self.fire, self)
def reset(self): Lagged_Impl.reset(self)
def bind_impl(self, ctx): Lagged_Impl.bind_impl(self, ctx)