Need help closing individual positions (vs all at once)

Created at 21 Jan 2021, 15:46
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!
CT

ctid1074959

Joined 19.03.2019

Need help closing individual positions (vs all at once)
21 Jan 2021, 15:46


I'm using a trade copier to send trades from 5 accounts into a single account... not submitted by an algo so is seen as a manual trade to cTrader

So there could be 5 different positions.

I want to use cTrader Automate to close each position individually if they reach a set profit or loss target (i.e. 1 position is down -100, close it but leave the others open)

Can anyone help?

I'm trying close.position but it closes all 5 positions

Thanks! 


@ctid1074959
Replies

PanagiotisCharalampous
22 Jan 2021, 07:59

Hi ctid1074959,

Can you share the code you are using?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous