Anyone getting issues with Positions.Find() since last update?

Created at 28 Jul 2016, 17:42
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!
Waxy's avatar

Waxy

Joined 12.05.2015

Anyone getting issues with Positions.Find() since last update?
28 Jul 2016, 17:42


Hello

I have some bots and it seems they are getting glitched since last update, for example I had to change the 
(Positions.Find() == null) conditionals to Positions.FindAll().Length == 0 and it acts completely different.

Am I missing something?


@Waxy
Replies

Waxy
28 Jul 2016, 18:09

I think Positions.Find() is not tracking orders correctly because of the comments (I have many orders with the same label but different comments), I'll try to check if this is true.


@Waxy

whis.gg
28 Jul 2016, 19:20

Hi Waxy, I highly recommend you using Linq query operations rather than those built in functions due to their limitations.


@whis.gg