how to close a position by robot

Created at 03 Jan 2023, 10:01
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!
LE

leokao.com

Joined 09.11.2022

how to close a position by robot
03 Jan 2023, 10:01


I do not know the method to close a position by robot, please help


@leokao.com
Replies

firemyst
05 Jan 2023, 02:57

When you open a position, you have to give it a distinct "label". EX, "Robot1_EURUSD_M1"

Then when you want to close a position, you search all your open positions for that distinct label, and then close that position if it's found.


@firemyst