Positions_Modified(): How to disregard TSL ?
Positions_Modified(): How to disregard TSL ?
10 Aug 2023, 08:25
Hello,
Is there any straightforward way to check if Positions_Modified() has been triggered by the trailing stop?
I'd like to ignore this and return from the method in such a case.
Thanks.
Replies
ncel01
11 Aug 2023, 08:08
Hi firemyst,
Yes, it would be pretty straightforward, like that, if not considering any manual modifications.
The problem is that I want to implement a protection against manual modifications. Unfortunately, in that case, just comparing the SL with the previous value won't be enough to conclude anything.
I really think there should be a way to simply identity this. The TLS is placed on server and will trigger Positions_Modified() all the time, however, the most likely is that no acton is to be taken in such cases.
As an automated action, I even think there should be a dedicated/separated event for this.
@ncel01
PanagiotisChar
11 Oct 2023, 12:22
RE: Positions_Modified(): How to disregard TSL ?
ncel01 said:
cTrader Team,
Can you please inform if this is possible?
Thank you.
It's not
@PanagiotisChar
ncel01
11 Oct 2023, 12:59
RE: RE: Positions_Modified(): How to disregard TSL ?
PanagiotisChar said:
ncel01 said:
cTrader Team,
Can you please inform if this is possible?
Thank you.
It's not
Hi Panagiotis,
Noted. Thanks for confirming this!
@ncel01
firemyst
11 Aug 2023, 00:31
I don't think you can check for that directly, however, what you can try is:
@firemyst