position.Reverse() but keep Label

Created at 15 Nov 2019, 05:15
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!
OF

office3131

Joined 24.05.2019

position.Reverse() but keep Label
15 Nov 2019, 05:15


I have several positions with different labels. When I use position.Reverse(); the labels are deleted, so I can`t use a command like var allposcheck = Positions.FindAll(Label)

How to keep the existing label of the positions?


@office3131
Replies

PanagiotisCharalampous
15 Nov 2019, 08:20

Hi office3131,

I cannot reproduce such a behavior. Label should be kept after reversing and this seems to be the case. Can you please provide us more inforrmation so that we can reproduce this behavior like the cBot code?

Best Regards,

Panagiotis


@PanagiotisCharalampous