VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 5
声望: 0

各位大神好,
初学Python和VNPY,有一个关于持仓语法的咨询:
为什么多头持仓用self.pos>0表示,多头持仓用self.pos<0表示,这种语法又是引用Template中哪部分来写的?
万分感谢!

Member
avatar
加入于:
帖子: 4622
声望: 284

可参考
https://www.vnpy.com/forum/topic/3129-guan-yu-self-posde-liang-tiao-wen-ti
https://www.vnpy.com/forum/topic/4775-qing-wen-self-posdao-di-shi-ru-he-ji-suan-chu-lai-de

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】