I need to calculate used capital (positions cumulative value) of a MetaStrategy on a daily basis.
For this I created a mock strategy and included it into the MetaStrategy. I can access CurrentEquity of the MetaStrategy, but I need MetaStrategy.Positions to calculate current leverage. But I don't understand how to access the MetaStrategy object from the UserBaseStrategy. I found IsMetaStrategyComponent field, so there should be some connection between Meta and regular strategies... or not?
Can you please suggest, how I can access the MetaStrategy object?
Thank you
For this I created a mock strategy and included it into the MetaStrategy. I can access CurrentEquity of the MetaStrategy, but I need MetaStrategy.Positions to calculate current leverage. But I don't understand how to access the MetaStrategy object from the UserBaseStrategy. I found IsMetaStrategyComponent field, so there should be some connection between Meta and regular strategies... or not?
Can you please suggest, how I can access the MetaStrategy object?
Thank you
Rename
Currently there are no replies yet. Please check back later.
Your Response
Post
Edit Post
Login is required