Replies

vvictord
03 Feb 2023, 14:12

RE:

PanagiotisChar said:

Hi there,

Here you go


        protected override void OnPositionOpened(Position openedPosition)
        {

            if (openedPosition.SymbolName == SymbolName)
            {
                // Do something
            }
        }

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

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

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.

Aieden Technologies

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.

Aieden Technologies

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.

Aieden Technologies

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
24 Nov 2022, 00:25

Still looking for someone with these skills hehe


@vvictord

vvictord
16 Nov 2022, 01:15

RE:

PanagiotisChar said:

Hi there,

If you need professional help, contact us at development@clickalgo.com

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

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
15 Nov 2022, 02:58

Pleaseeee

Please, someone who can help me with this?


@vvictord