• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python _constant._constant_Float函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中marketsim.gen._out._constant._constant_Float函数的典型用法代码示例。如果您正苦于以下问题:Python _constant_Float函数的具体用法?Python _constant_Float怎么用?Python _constant_Float使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了_constant_Float函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, base = None, power = None):
     from marketsim.gen._out._observable._observablefloat import Observablefloat
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     Observablefloat.__init__(self)
     self.base = base if base is not None else deref_opt(_constant_Float(1.0))
     self.power = power if power is not None else deref_opt(_constant_Float(1.0))
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_Pow.py


示例2: getImpl

 def getImpl(self):
     from marketsim.gen._out.orderbook._midprice import MidPrice_IOrderBook as _orderbook_MidPrice_IOrderBook
     from marketsim.gen._out.ops._div import Div_FloatFloat as _ops_Div_FloatFloat
     from marketsim.gen._out.math.rsi._raw import Raw_IObservableFloatFloatFloat as _math_rsi_Raw_IObservableFloatFloatFloat
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim.gen._out.ops._add import Add_FloatFloat as _ops_Add_FloatFloat
     from marketsim.gen._out.ops._sub import Sub_FloatFloat as _ops_Sub_FloatFloat
     return _ops_Sub_FloatFloat(_constant_Float(100.0),_ops_Div_FloatFloat(_constant_Float(100.0),_ops_Add_FloatFloat(_constant_Float(1.0),_math_rsi_Raw_IObservableFloatFloatFloat(_orderbook_MidPrice_IOrderBook(self.book),self.timeframe,self.alpha))))
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:8,代码来源:_RSI.py


示例3: __init__

 def __init__(self, x = None, y = None):
     from marketsim.gen._out._observable._observablebool import Observablebool
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     Observablebool.__init__(self)
     self.x = x if x is not None else deref_opt(_constant_Float(1.0))
     self.y = y if y is not None else deref_opt(_constant_Float(1.0))
     Greater_Impl.__init__(self)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:8,代码来源:_Greater.py


示例4: __init__

 def __init__(self, signedVolume = None, price = None):
     from marketsim.gen._out._iorder import IOrder
     from marketsim.gen._out._observable._observableiorder import ObservableIOrder
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     ObservableIOrder.__init__(self)
     self.signedVolume = signedVolume if signedVolume is not None else deref_opt(_constant_Float(1.0))
     self.price = price if price is not None else deref_opt(_constant_Float(100.0))
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:8,代码来源:_LimitSigned.py


示例5: __init__

 def __init__(self, base = None, power = None):
     from marketsim.gen._out._observable import Observablefloat
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import rtti
     Observablefloat.__init__(self)
     self.base = base if base is not None else _constant_Float(1.0)
     
     self.power = power if power is not None else _constant_Float(1.0)
     
     rtti.check_fields(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:10,代码来源:_Pow.py


示例6: __init__

 def __init__(self, x = None, y = None):
     from marketsim.gen._out._observable import Observablefloat
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import rtti
     Observablefloat.__init__(self)
     self.x = x if x is not None else _constant_Float(1.0)
     
     self.y = y if y is not None else _constant_Float(1.0)
     
     rtti.check_fields(self)
     _Sub_Impl.__init__(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:11,代码来源:_Sub.py


示例7: __init__

 def __init__(self, signedVolume = None, price = None):
     from marketsim.gen._out._iorder import IOrder
     from marketsim.gen._out._observable import ObservableIOrder
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import rtti
     ObservableIOrder.__init__(self)
     self.signedVolume = signedVolume if signedVolume is not None else _constant_Float(1.0)
     
     self.price = price if price is not None else _constant_Float(100.0)
     
     rtti.check_fields(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:11,代码来源:_LimitSigned.py


示例8: __init__

 def __init__(self, x = None, y = None):
     from marketsim import _
     from marketsim import event
     from marketsim.gen._out._observable._observablefloat import Observablefloat
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     Observablefloat.__init__(self)
     self.x = x if x is not None else deref_opt(_constant_Float(1.0))
     self.y = y if y is not None else deref_opt(_constant_Float(1.0))
     self.impl = self.getImpl()
     event.subscribe(self.impl, _(self).fire, self)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:11,代码来源:_max.py


示例9: __init__

 def __init__(self, x = None, elsePart = None):
     from marketsim import _
     from marketsim import rtti
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import event
     from marketsim.gen._out._observable import Observablefloat
     Observablefloat.__init__(self)
     self.x = x if x is not None else _constant_Float(1.0)
     self.elsePart = elsePart if elsePart is not None else _constant_Float(1.0)
     rtti.check_fields(self)
     self.impl = self.getImpl()
     event.subscribe(self.impl, _(self).fire, self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:12,代码来源:_IfDefined.py


示例10: __init__

 def __init__(self, side = None, price = None, volume = None):
     from marketsim.gen._out._iorder import IOrder
     from marketsim import rtti
     from marketsim.gen._out._observable import ObservableIOrder
     from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     ObservableIOrder.__init__(self)
     self.side = side if side is not None else _side_Sell_()
     
     self.price = price if price is not None else _constant_Float(100.0)
     
     self.volume = volume if volume is not None else _constant_Float(1.0)
     
     rtti.check_fields(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:14,代码来源:_Limit.py


示例11: __init__

 def __init__(self, cond = None, ifpart = None, elsepart = None):
     from marketsim.gen._out._observable import Observablefloat
     from marketsim.gen._out._true import true_ as _true_
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import rtti
     Observablefloat.__init__(self)
     self.cond = cond if cond is not None else _true_()
     
     self.ifpart = ifpart if ifpart is not None else _constant_Float(1.0)
     
     self.elsepart = elsepart if elsepart is not None else _constant_Float(1.0)
     
     rtti.check_fields(self)
     _Condition_Impl.__init__(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:14,代码来源:_condition.py


示例12: __init__

 def __init__(self, x = None):
     from marketsim.gen._out._observable._observablefloat import Observablefloat
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     Observablefloat.__init__(self)
     self.x = x if x is not None else deref_opt(_constant_Float(1.0))
     Negate_Impl.__init__(self)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_Negate.py


示例13: __init__

 def __init__(self, expiry = None, proto = None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim.gen._out.order._curried._sidevolume_limit import sidevolume_Limit_Float as _order__curried_sidevolume_Limit_Float
     from marketsim import rtti
     self.expiry = expiry if expiry is not None else _constant_Float(10.0)
     self.proto = proto if proto is not None else _order__curried_sidevolume_Limit_Float()
     rtti.check_fields(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_sidevolume_WithExpiry.py


示例14: __call__

 def __call__(self, price = None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim.gen._out.order._limit import Limit
     price = price if price is not None else _constant_Float(100.0)
     side = self.side
     volume = self.volume
     return Limit(side, price, volume)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_price_Limit.py


示例15: __init__

 def __init__(self, proto = None, lotSize = None):
     from marketsim.gen._out.order._curried._sidevolume_price_limit import sidevolume_price_Limit_ as _order__curried_sidevolume_price_Limit_
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import rtti
     self.proto = proto if proto is not None else _order__curried_sidevolume_price_Limit_()
     self.lotSize = lotSize if lotSize is not None else _constant_Float(10.0)
     rtti.check_fields(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_sidevolume_price_Iceberg.py


示例16: __init__

    def __init__(self, side=None, volume=None):
        from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
        from marketsim import deref_opt
        from marketsim.gen._out._constant import constant_Float as _constant_Float

        self.side = side if side is not None else deref_opt(_side_Sell_())
        self.volume = volume if volume is not None else deref_opt(_constant_Float(1.0))
开发者ID:xiaobozi,项目名称:marketsimulator,代码行数:7,代码来源:_price_limit.py


示例17: __init__

 def __init__(self, maxloss = None, proto = None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim.gen._out.order._curried._sidevolume_price_limit import sidevolume_price_Limit_ as _order__curried_sidevolume_price_Limit_
     from marketsim import rtti
     self.maxloss = maxloss if maxloss is not None else _constant_Float(0.1)
     self.proto = proto if proto is not None else _order__curried_sidevolume_price_Limit_()
     rtti.check_fields(self)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_sidevolume_price_StopLoss.py


示例18: __call__

 def __call__(self, signedVolume = None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     from marketsim.gen._out.order._limitsigned import LimitSigned
     signedVolume = signedVolume if signedVolume is not None else deref_opt(_constant_Float(1.0))
     price = self.price
     return LimitSigned(signedVolume, price)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_signedvolume_limitsigned.py


示例19: __init__

 def __init__(self, f = None, base = None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import rtti
     self.f = f if f is not None else _constant_Float(1.0)
     self.base = base if base is not None else 1.002
     rtti.check_fields(self)
     self.impl = self.getImpl()
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_AtanPow.py


示例20: __call__

 def __call__(self, signedVolume = None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     from marketsim.gen._out.order._marketsigned import MarketSigned
     signedVolume = signedVolume if signedVolume is not None else deref_opt(_constant_Float(1.0))
     
     return MarketSigned(signedVolume)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_signedvolume_marketsigned.py



注:本文中的marketsim.gen._out._constant._constant_Float函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python _observable.Observablefloat类代码示例发布时间:2022-05-27
下一篇:
Python _const._const_Float函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap