MT4 exit target order place error

102 views
Skip to first unread message

Константин Рогожкин (AiSales)

unread,
Dec 16, 2022, 1:24:12 PM12/16/22
to Adaptrade Builder
Hello.
I have build trade robots, it working ok, but every day I have errors as in screenshot.
What I can do for fix it?

57f551b7ec.png

Mike Bryant

unread,
Dec 16, 2022, 2:15:09 PM12/16/22
to adaptrad...@googlegroups.com

Are you using the new option to “Place stop and limit orders only if well-formed” (Evaluation menu, Order Placing Options)? That’s designed specifically to prevent invalid stop and limit orders. Another possibility is running multiple copies of the same strategy, which would therefore be using the same “magic number”, which is defined in the Builder-generated strategy by the STRATORDERID variable. The STRATORDERID should be different for each strategy being run, which it will be if each strategy is different because the STRATORDERID is generated randomly for each strategy.

 

I also noticed you’re getting a “common error”. From Google, a “MT4 common error represents a connection problem in your Metatrader platform. To overcome this problem, you need to check the internet connection, the antivirus program, or your login details. However, a “common error” problem can sometimes happen if your broker has technical issues and you can not connect to your broker’s account.”

 

Mike Bryant

Adaptrade Software

 

From: adaptrad...@googlegroups.com <adaptrad...@googlegroups.com> On Behalf Of ?????????? ???????? (AiSales)
Sent: Friday, December 16, 2022 7:27 AM
Subject: MT4 exit target order place error

 

Hello.

I have build trade robots, it working ok, but every day I have errors as in screenshot.

What I can do for fix it?

 

image001.png

Константин Рогожкин (AiSales)

unread,
Dec 16, 2022, 5:08:02 PM12/16/22
to Adaptrade Builder
Mike, thank you for you fast response.
I was use 4.1 version for build this strategies, they dont have “Place stop and limit orders only if well-formed” option. 
Now I check all runned experts (8) and all use different STRATORDERID

1671221556761.png

суббота, 17 декабря 2022 г. в 00:15:09 UTC+5, MikeBryant:

Mike Bryant

unread,
Dec 16, 2022, 5:13:57 PM12/16/22
to adaptrad...@googlegroups.com

As I said below, if the strategies are different, the STRATORDERID’s will all be different. It’s only an issue if you run the same strategy on different symbols at the same time.

 

I recommend using the most recent version, 4.3.0, which includes the option I mentioned. Otherwise, it’s possible in some cases to get stop and limit orders that MT4 might reject.

 

Mike Bryant

Adaptrade Software

 

From: adaptrad...@googlegroups.com <adaptrad...@googlegroups.com> On Behalf Of ?????????? ???????? (AiSales)
Sent: Friday, December 16, 2022 12:15 PM
Subject: Re: MT4 exit target order place error

 

Mike, thank you for you fast response.

I was use 4.1 version for build this strategies, they dont have “Place stop and limit orders only if well-formed” option. 
Now I check all runned experts (8) and all use different STRATORDERID

 

 

суббота, 17 декабря 2022 г. в 00:15:09 UTC+5, MikeBryant:

Are you using the new option to “Place stop and limit orders only if well-formed” (Evaluation menu, Order Placing Options)? That’s designed specifically to prevent invalid stop and limit orders. Another possibility is running multiple copies of the same strategy, which would therefore be using the same “magic number”, which is defined in the Builder-generated strategy by the STRATORDERID variable. The STRATORDERID should be different for each strategy being run, which it will be if each strategy is different because the STRATORDERID is generated randomly for each strategy.

 

I also noticed you’re getting a “common error”. From Google, a “MT4 common error represents a connection problem in your Metatrader platform. To overcome this problem, you need to check the internet connection, the antivirus program, or your login details. However, a “common error” problem can sometimes happen if your broker has technical issues and you can not connect to your broker’s account.”

 

Mike Bryant

Adaptrade Software

 

From: adaptrad...@googlegroups.com <adaptrad...@googlegroups.com> On Behalf Of ?????????? ???????? (AiSales)
Sent: Friday, December 16, 2022 7:27 AM
Subject: MT4 exit target order place error

 

Hello.

I have build trade robots, it working ok, but every day I have errors as in screenshot.

What I can do for fix it?

 

Image removed by sender.

--
You received this message because you are subscribed to the Google Groups "Adaptrade Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adaptrade-buil...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adaptrade-builder/d1c03834-10ee-4fee-99e6-0ca76e646c7cn%40googlegroups.com.

~WRD0000.jpg
image001.png

Константин Рогожкин (AiSales)

unread,
Dec 17, 2022, 4:10:09 PM12/17/22
to Adaptrade Builder
Okay, thx Mike.
Now, I open my old .gpstrat file with strategies in new version, checked checkbox "if well formed", evaluate it all, and save strategies again to mt4 file and run it.
I think right?

суббота, 17 декабря 2022 г. в 03:13:57 UTC+5, MikeBryant:

Mike Bryant

unread,
Dec 17, 2022, 4:37:23 PM12/17/22
to adaptrad...@googlegroups.com

Yes, if the problem is that the stop entry orders were not “well-formed”, then that should solve it. Otherwise, it must be something else.

 

Mike Bryant

Adaptrade Software

 

From: adaptrad...@googlegroups.com <adaptrad...@googlegroups.com> On Behalf Of ?????????? ???????? (AiSales)
Sent: Saturday, December 17, 2022 1:56 AM
Subject: Re: MT4 exit target order place error

 

Okay, thx Mike.
Now, I open my old .gpstrat file with strategies in new version, checked checkbox "if well formed", evaluate it all, and save strategies again to mt4 file and run it.
I think right?

суббота, 17 декабря 2022 г. в 03:13:57 UTC+5, MikeBryant:

As I said below, if the strategies are different, the STRATORDERID’s will all be different. It’s only an issue if you run the same strategy on different symbols at the same time.

 I recommend using the most recent version, 4.3.0, which includes the option I mentioned. Otherwise, it’s possible in some cases to get stop and limit orders that MT4 might reject.

 Mike Bryant

Adaptrade Software

 From: adaptrad...@googlegroups.com <adaptrad...@googlegroups.com> On Behalf Of ?????????? ???????? (AiSales)
Sent: Friday, December 16, 2022 12:15 PM
Subject: Re: MT4 exit target order place error

 Mike, thank you for you fast response.

I was use 4.1 version for build this strategies, they dont have “Place stop and limit orders only if well-formed” option. 
Now I check all runned experts (8) and all use different STRATORDERID

 

суббота, 17 декабря 2022 г. в 00:15:09 UTC+5, MikeBryant:

jishnu dey

unread,
Dec 18, 2022, 2:40:48 PM12/18/22
to adaptrad...@googlegroups.com
Mike I've used the option of place stop and limit order only when well  formed. But still it didn't work.

--
You received this message because you are subscribed to the Google Groups "Adaptrade Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adaptrade-buil...@googlegroups.com.

Mike Bryant

unread,
Dec 18, 2022, 2:49:40 PM12/18/22
to adaptrad...@googlegroups.com

If you really want to find the source of the problem, you’ll probably have to compare the order price with the market price for any error and see if anything stands out. I’d also check the position size to make sure it’s valid. If you can’t find the problem and it’s only this one strategy, maybe just move on to a different strategy. If you’re getting the same problem with all your strategies, then you should check your settings in Builder. In particular, I’d check the parameter ranges to make sure your stop sizes are not too tight and your target sizes are not too close to the entries.

 

Mike Bryant

Adaptrade Software

Reply all
Reply to author
Forward
0 new messages