def __init__(self, x=None): from marketsim.gen._out._observable._observablefloat import Observablefloat from marketsim.gen._out.math._moving import Moving_IObservableFloatFloat as _math_Moving_IObservableFloatFloat from marketsim import deref_opt Observablefloat.__init__(self) self.x = x if x is not None else deref_opt( _math_Moving_IObservableFloatFloat()) Max_Impl.__init__(self)
def __init__(self, x=None): from marketsim.gen._out._observable._observablefloat import Observablefloat from marketsim.gen._out.math._moving import Moving_IObservableFloatFloat as _math_Moving_IObservableFloatFloat from marketsim import deref_opt Observablefloat.__init__(self) self.x = x if x is not None else deref_opt(_math_Moving_IObservableFloatFloat()) Max_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 100.0 rtti.check_fields(self) Max_Impl.__init__(self)
def __init__(self, source = None, timeframe = None): from marketsim.gen._out._constant import constant 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 constant() self.timeframe = timeframe if timeframe is not None else 100.0 Max_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): Max_Impl.reset(self)
def bind_impl(self, ctx): Max_Impl.bind_impl(self, ctx)