def __init__(self, source = None, timeframe = None):
     from marketsim.gen._out._icandlestick import ICandleStick
     from marketsim.gen._out._observable._observableicandlestick import ObservableICandleStick
     from marketsim.gen._out._const import const_Float as _const_Float
     from marketsim import deref_opt
     ObservableICandleStick.__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
     CandleSticks_Impl.__init__(self)
Example #2
0
 def __init__(self, source=None, timeframe=None):
     from marketsim.gen._out._icandlestick import ICandleStick
     from marketsim.gen._out._observable._observableicandlestick import ObservableICandleStick
     from marketsim.gen._out._const import const_Float as _const_Float
     from marketsim import deref_opt
     ObservableICandleStick.__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
     CandleSticks_Impl.__init__(self)
    def __init__(self, source=None, timeframe=None):
        from marketsim import rtti
        from marketsim.gen._out._observable import ObservableICandleStick
        from marketsim.gen._out._const import const_Float as _const_Float
        from marketsim import event
        from marketsim.gen._out._icandlestick import ICandleStick
        ObservableICandleStick.__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)
        CandleSticks_Impl.__init__(self)
 def __init__(self, source = None, timeframe = None):
     from marketsim import rtti
     from marketsim.gen._out._observable import ObservableICandleStick
     from marketsim.gen._out._const import const_Float as _const_Float
     from marketsim import event
     from marketsim.gen._out._icandlestick import ICandleStick
     ObservableICandleStick.__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)
     CandleSticks_Impl.__init__(self)
 def reset(self):
     CandleSticks_Impl.reset(self)
 def bind_impl(self, ctx):
     CandleSticks_Impl.bind_impl(self, ctx)
Example #7
0
 def reset(self):
     CandleSticks_Impl.reset(self)
Example #8
0
 def bind_impl(self, ctx):
     CandleSticks_Impl.bind_impl(self, ctx)