Put the SL and TP after several seconds

Created at 09 Nov 2024, 15:39
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!
FA

fabiennavarrete

Joined 27.10.2024

Put the SL and TP after several seconds
09 Nov 2024, 15:39


Hello everyone, to finalize my bot, do you know how to put the TP and SL after several seconds, after taking the position? ChatGPT does not know how to do it


@fabiennavarrete
Replies

PanagiotisCharalampous
11 Nov 2024, 06:22

Hi there,

You can check the distance between the Server.Time and the position's EntryTime.

Best regards,

Panagiotis


@PanagiotisCharalampous