check if TSL is active

Created at 10 Dec 2018, 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!
swingfish's avatar

swingfish

Joined 25.06.2016

check if TSL is active
10 Dec 2018, 17:42


is there a way for an algo to check if an active trade has TSL active? 

in order to enable it  just once 

 


@swingfish
Replies

PanagiotisCharalampous
11 Dec 2018, 10:27

Hi Mario,

Check HasTrailingStopLoss

Best Regards,

Panagiotis


@PanagiotisCharalampous

swingfish
11 Dec 2018, 10:41

thank you .. yes that was it, it turns out that my bug was in another place ... 

where limit orders were filled without a stop at all if the spread was too large,

is there a way to add a condition while placing the order? I added a check for the spread now, but that's not very "effective" 

 


@swingfish

PanagiotisCharalampous
11 Dec 2018, 10:47

Hi Mario,

I am not sure what are you trying to check. Can you please elaborate?

Best Regards,

Panagiotis


@PanagiotisCharalampous