How to count number of Position in each Symbol

Created at 23 Jul 2018, 14:12
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MI

MinMin

Joined 23.07.2018

How to count number of Position in each Symbol
23 Jul 2018, 14:12


Please help me how to count Position in each Symbol ! I can count total of position but not with each Symbol.

Thanks so much!


@MinMin
Replies

PanagiotisCharalampous
23 Jul 2018, 14:22

Hi,

Thanks for posting in our forum. Regarding your question, see below

Positions.Count(x => x.SymbolCode == Symbol.Code)

Best Regards,

Panagiotis


@PanagiotisCharalampous