Skip to content

调用context.stra_get_position获取仓位异常 #146

Answered by zjokerxxx
zjokerxxx asked this question in Q&A
Discussion options

You must be logged in to vote

测试当使用stra_get_position传入usertag参数时,空仓获取的仓位为正数,当不传入usertag参数时,空仓获取的仓位为负数。
是否可以理解为,当传入usertag时,策略中可以根据usertag来判断仓位的多空?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zjokerxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant