示例#1
0
 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)
示例#2
0
    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)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 def reset(self):
     Lagged_Impl.reset(self)
示例#6
0
 def bind_impl(self, ctx):
     Lagged_Impl.bind_impl(self, ctx)
示例#7
0
 def reset(self):
     Lagged_Impl.reset(self)
示例#8
0
 def bind_impl(self, ctx):
     Lagged_Impl.bind_impl(self, ctx)