Topics
Replies
vvictord
03 Feb 2023, 04:42
RE:
PanagiotisChar said:
Hi there,
This happens because OnPositionOpened() is triggered for all the account's positions. You need to check that the opened position has the same symbol as the cBot, before modifying the take profit and stop loss.
Need help? Join us on Telegram
Need premium support? Trade with us
Hi boss, I tried but no luck.. could you please indicate me what you mean by "You need to check that the opened position has the same symbol as the cBot", please?
Appreciate it
@vvictord
vvictord
03 Feb 2023, 04:42
RE:
PanagiotisChar said:
Hi there,
This happens because OnPositionOpened() is triggered for all the account's positions. You need to check that the opened position has the same symbol as the cBot, before modifying the take profit and stop loss.
Need help? Join us on Telegram
Need premium support? Trade with us
Hi boss, I tried but no luck.. could you please indicate me what you mean by "You need to check that the opened position has the same symbol as the cBot", please?
Appreciate it
@vvictord
vvictord
01 Feb 2023, 14:13
RE:
PanagiotisChar said:
Hi there,
This happens because OnPositionOpened() is triggered for all the account's positions. You need to check that the opened position has the same symbol as the cBot, before modifying the take profit and stop loss.
Need help? Join us on Telegram
Need premium support? Trade with us
MAN!!!!
Really appreciate you answering here!!!
I will try this tomorrow morning and come back with feedback.
Thanks thanks
@vvictord
vvictord
16 Nov 2022, 01:15
RE:
PanagiotisChar said:
Hi there,
If you need professional help, contact us at development@clickalgo.com
Hi,
thanks for your answer.
I can not afford professional help.
I just want to learn what code to use for this task. I will learn the rest.
Thanks a lot though
@vvictord
vvictord
03 Feb 2023, 14:12
RE:
PanagiotisChar said:
YESSSSSSSSSS!!!! You solved the issue!!!
THANKS THANKS THANKS!!!
Only thing now is that before it was opening only one trade per pair and a new one would not open until the previous one is closed.
Now it opens as many as it identifies.
Do you know how to set a max number of trades that I can set up as parameter?
I am so glad you could help me!
THANKS
@vvictord