Count Total Open Positions by Symbol

Created at 04 Jan 2015, 02:49
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!
deklin's avatar

deklin

Joined 31.12.2014

Count Total Open Positions by Symbol
04 Jan 2015, 02:49


How can I count the number of total open positions by symbol?


@deklin
Replies

deklin
05 Jan 2015, 14:33

RE: Count Total Open Positions by Symbol

I found the answer!

Print(Positions.Count(p => p.SymbolCode == "EURUSD"));

 


@deklin