News Trader

zrt

Trader
Nov 4, 2022
8
0
7
44
sure :

2023.03.10 07:00:05.798 NewsTrader GBPUSD,M15: close #50350372 sell 0.01 GBPUSD at 1.19280 sl: 1.19429 tp: 1.19029 at price 1.19329
2023.03.10 07:00:05.360 NewsTrader GBPUSD,M1: modify #50350373 sell 0.01 GBPUSD at 1.19279 sl: 1.19329 tp: 1.19131 ok
2023.03.10 07:00:02.438 NewsTrader GBPUSD,M1: Adjusting SL: 1.19329 and TP: 1.19131.
2023.03.10 07:00:01.313 NewsTrader GBPUSD,M1: open #50350373 sell 0.01 GBPUSD at 1.19279 ok
2023.03.10 07:00:00.720 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 07:00:00.720 NewsTrader GBPUSD,M15: modify #50350372 sell 0.01 GBPUSD at 1.19280 sl: 1.19429 tp: 1.19029 ok
2023.03.10 07:00:00.563 NewsTrader GBPUSD,M1: Opening Sell.
2023.03.10 07:00:00.423 NewsTrader GBPUSD,M15: Adjusting SL: 1.19429 and TP: 1.19029.
2023.03.10 07:00:00.313 NewsTrader GBPUSD,M15: close #50350369 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 at price 1.19280
2023.03.10 06:59:59.860 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:59.845 NewsTrader GBPUSD,M15: modify #50350369 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 ok
2023.03.10 06:59:59.610 NewsTrader GBPUSD,M15: Adjusting SL: 1.19169 and TP: 1.19569.
2023.03.10 06:59:59.610 NewsTrader GBPUSD,M15: close #50350368 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 at price 1.19280
2023.03.10 06:59:59.235 NewsTrader GBPUSD,M1: open #50350369 buy 0.01 GBPUSD at 1.19319 ok
2023.03.10 06:59:59.110 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:59.110 NewsTrader GBPUSD,M15: modify #50350368 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 ok
2023.03.10 06:59:58.876 NewsTrader GBPUSD,M15: Adjusting SL: 1.19169 and TP: 1.19569.
2023.03.10 06:59:58.751 NewsTrader GBPUSD,M1: Opening Buy.
2023.03.10 06:59:58.188 NewsTrader GBPUSD,M15: close #50350365 sell 0.01 GBPUSD at 1.19279 sl: 1.19327 tp: 1.19134 at price 1.19319
2023.03.10 06:59:57.720 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:57.720 NewsTrader GBPUSD,M15: modify #50350365 sell 0.01 GBPUSD at 1.19279 sl: 1.19435 tp: 1.19035 ok
2023.03.10 06:59:57.485 NewsTrader GBPUSD,M15: Adjusting SL: 1.19435 and TP: 1.19035.
2023.03.10 06:59:57.438 NewsTrader GBPUSD,M1: open #50350365 sell 0.01 GBPUSD at 1.19279 ok
2023.03.10 06:59:57.329 NewsTrader GBPUSD,M15: close #50350361 sell 0.01 GBPUSD at 1.19285 sl: 1.19435 tp: 1.19035 at price 1.19330
2023.03.10 06:59:56.892 NewsTrader GBPUSD,M1: Opening Sell.
2023.03.10 06:59:56.782 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:56.782 NewsTrader GBPUSD,M15: modify #50350361 sell 0.01 GBPUSD at 1.19285 sl: 1.19435 tp: 1.19035 ok
2023.03.10 06:59:56.532 NewsTrader GBPUSD,M15: Adjusting SL: 1.19435 and TP: 1.19035.
2023.03.10 06:59:56.532 NewsTrader GBPUSD,M15: close #50350356 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 at price 1.19285
2023.03.10 06:59:56.017 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:56.017 NewsTrader GBPUSD,M15: modify #50350356 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 ok
2023.03.10 06:59:55.798 NewsTrader GBPUSD,M15: Adjusting SL: 1.19144 and TP: 1.19544.
2023.03.10 06:59:55.798 NewsTrader GBPUSD,M15: close #50350355 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 at price 1.19290
2023.03.10 06:59:55.563 NewsTrader GBPUSD,M1: open #50350356 buy 0.01 GBPUSD at 1.19294 ok
2023.03.10 06:59:55.298 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:55.298 NewsTrader GBPUSD,M15: modify #50350355 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 ok
2023.03.10 06:59:55.095 NewsTrader GBPUSD,M15: Adjusting SL: 1.19144 and TP: 1.19544.
2023.03.10 06:59:54.938 NewsTrader GBPUSD,M1: Opening Buy.
2023.03.10 06:59:54.235 NewsTrader GBPUSD,M15: close #50350353 sell 0.01 GBPUSD at 1.19289 sl: 1.19440 tp: 1.19040 at price 1.19294
2023.03.10 06:59:53.720 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:53.704 NewsTrader GBPUSD,M15: modify #50350353 sell 0.01 GBPUSD at 1.19289 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:53.501 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:52.938 NewsTrader GBPUSD,M15: close #50350351 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19289
2023.03.10 06:59:52.392 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:52.392 NewsTrader GBPUSD,M15: modify #50350351 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:52.079 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.10 06:59:51.423 NewsTrader GBPUSD,M15: close #50350347 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 at price 1.19293
2023.03.10 06:59:50.892 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:50.892 NewsTrader GBPUSD,M15: modify #50350347 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:50.688 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:49.970 NewsTrader GBPUSD,M15: close #50350345 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19290
2023.03.10 06:59:49.485 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:49.470 NewsTrader GBPUSD,M15: modify #50350345 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:49.267 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.10 06:59:48.595 NewsTrader GBPUSD,M15: close #50350343 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 at price 1.19293
2023.03.10 06:59:48.048 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:48.048 NewsTrader GBPUSD,M15: modify #50350343 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:47.798 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:47.095 NewsTrader GBPUSD,M15: close #50350341 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19290
2023.03.10 06:59:46.548 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:46.548 NewsTrader GBPUSD,M15: modify #50350341 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:46.329 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.10 06:59:45.595 NewsTrader GBPUSD,M15: close #50350339 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 at price 1.19294
2023.03.10 06:59:45.157 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:45.142 NewsTrader GBPUSD,M15: modify #50350339 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:44.923 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:44.188 NewsTrader GBPUSD,M15: close #50350337 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19290
2023.03.10 06:59:43.704 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:43.704 NewsTrader GBPUSD,M15: modify #50350337 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:43.470 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.09 16:35:35.091 NewsTrader GBPUSD,M1: initialized
 

Luigi

Trader
Feb 20, 2023
7
0
12
34
Hi, I also have same issue on mt4, trades opened-closed and reopened seconds before news. But maybe because I had the EA on 2 diff chart, same pair, with same magic number? Also indeed SL is tight, but less than spread I believe. I am worried it triggered for me 10 trades before the news.

Also, can you explain a bit more how TrailingStop works? Does it trail as soon as profit? By which pip step? Thank you!

Edit : in logs I have many time messages (for each closure I guess) : "closing trade by timeout"
I also had the EA on several different charts, same pair, with same magic number, to automate/program the trades on different dates and times while I was at work. So that seems to be the problem.
Because now I have removed it from all the charts and it is on one chart now , and now it works fine again.
Thank you for highlighting this.
I have seen in the replies above: "If currency pairs are different, you don't need to set different Magic numbers. You only need Magic numbers if you are trading on the same currency pair."
So I will test it with different Magic numbers, different charts, same pair. Maybe then I can plan trades for the whole week.
Thanks for all the help.
Post automatically merged:

Which broker and account type is that? I need to test it.

Also, what is the output in the Experts tab?
I also had the EA on several different charts, same pair, with same magic number, to automate/program the trades on different dates and times while I was at work. So that seems to be the problem.
Because now I have removed it from all the charts and it is on one chart now , and now it works fine again.
Thank you for highlighting this.
I have seen in the replies above: "If currency pairs are different, you don't need to set different Magic numbers. You only need Magic numbers if you are trading on the same currency pair."
So I will test it with different Magic numbers, different charts, same pair. Maybe then I can plan trades for the whole week.
Thanks for all the help.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
sure :

2023.03.10 07:00:05.798 NewsTrader GBPUSD,M15: close #50350372 sell 0.01 GBPUSD at 1.19280 sl: 1.19429 tp: 1.19029 at price 1.19329
2023.03.10 07:00:05.360 NewsTrader GBPUSD,M1: modify #50350373 sell 0.01 GBPUSD at 1.19279 sl: 1.19329 tp: 1.19131 ok
2023.03.10 07:00:02.438 NewsTrader GBPUSD,M1: Adjusting SL: 1.19329 and TP: 1.19131.
2023.03.10 07:00:01.313 NewsTrader GBPUSD,M1: open #50350373 sell 0.01 GBPUSD at 1.19279 ok
2023.03.10 07:00:00.720 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 07:00:00.720 NewsTrader GBPUSD,M15: modify #50350372 sell 0.01 GBPUSD at 1.19280 sl: 1.19429 tp: 1.19029 ok
2023.03.10 07:00:00.563 NewsTrader GBPUSD,M1: Opening Sell.
2023.03.10 07:00:00.423 NewsTrader GBPUSD,M15: Adjusting SL: 1.19429 and TP: 1.19029.
2023.03.10 07:00:00.313 NewsTrader GBPUSD,M15: close #50350369 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 at price 1.19280
2023.03.10 06:59:59.860 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:59.845 NewsTrader GBPUSD,M15: modify #50350369 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 ok
2023.03.10 06:59:59.610 NewsTrader GBPUSD,M15: Adjusting SL: 1.19169 and TP: 1.19569.
2023.03.10 06:59:59.610 NewsTrader GBPUSD,M15: close #50350368 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 at price 1.19280
2023.03.10 06:59:59.235 NewsTrader GBPUSD,M1: open #50350369 buy 0.01 GBPUSD at 1.19319 ok
2023.03.10 06:59:59.110 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:59.110 NewsTrader GBPUSD,M15: modify #50350368 buy 0.01 GBPUSD at 1.19319 sl: 1.19169 tp: 1.19569 ok
2023.03.10 06:59:58.876 NewsTrader GBPUSD,M15: Adjusting SL: 1.19169 and TP: 1.19569.
2023.03.10 06:59:58.751 NewsTrader GBPUSD,M1: Opening Buy.
2023.03.10 06:59:58.188 NewsTrader GBPUSD,M15: close #50350365 sell 0.01 GBPUSD at 1.19279 sl: 1.19327 tp: 1.19134 at price 1.19319
2023.03.10 06:59:57.720 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:57.720 NewsTrader GBPUSD,M15: modify #50350365 sell 0.01 GBPUSD at 1.19279 sl: 1.19435 tp: 1.19035 ok
2023.03.10 06:59:57.485 NewsTrader GBPUSD,M15: Adjusting SL: 1.19435 and TP: 1.19035.
2023.03.10 06:59:57.438 NewsTrader GBPUSD,M1: open #50350365 sell 0.01 GBPUSD at 1.19279 ok
2023.03.10 06:59:57.329 NewsTrader GBPUSD,M15: close #50350361 sell 0.01 GBPUSD at 1.19285 sl: 1.19435 tp: 1.19035 at price 1.19330
2023.03.10 06:59:56.892 NewsTrader GBPUSD,M1: Opening Sell.
2023.03.10 06:59:56.782 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:56.782 NewsTrader GBPUSD,M15: modify #50350361 sell 0.01 GBPUSD at 1.19285 sl: 1.19435 tp: 1.19035 ok
2023.03.10 06:59:56.532 NewsTrader GBPUSD,M15: Adjusting SL: 1.19435 and TP: 1.19035.
2023.03.10 06:59:56.532 NewsTrader GBPUSD,M15: close #50350356 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 at price 1.19285
2023.03.10 06:59:56.017 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:56.017 NewsTrader GBPUSD,M15: modify #50350356 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 ok
2023.03.10 06:59:55.798 NewsTrader GBPUSD,M15: Adjusting SL: 1.19144 and TP: 1.19544.
2023.03.10 06:59:55.798 NewsTrader GBPUSD,M15: close #50350355 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 at price 1.19290
2023.03.10 06:59:55.563 NewsTrader GBPUSD,M1: open #50350356 buy 0.01 GBPUSD at 1.19294 ok
2023.03.10 06:59:55.298 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:55.298 NewsTrader GBPUSD,M15: modify #50350355 buy 0.01 GBPUSD at 1.19294 sl: 1.19144 tp: 1.19544 ok
2023.03.10 06:59:55.095 NewsTrader GBPUSD,M15: Adjusting SL: 1.19144 and TP: 1.19544.
2023.03.10 06:59:54.938 NewsTrader GBPUSD,M1: Opening Buy.
2023.03.10 06:59:54.235 NewsTrader GBPUSD,M15: close #50350353 sell 0.01 GBPUSD at 1.19289 sl: 1.19440 tp: 1.19040 at price 1.19294
2023.03.10 06:59:53.720 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:53.704 NewsTrader GBPUSD,M15: modify #50350353 sell 0.01 GBPUSD at 1.19289 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:53.501 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:52.938 NewsTrader GBPUSD,M15: close #50350351 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19289
2023.03.10 06:59:52.392 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:52.392 NewsTrader GBPUSD,M15: modify #50350351 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:52.079 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.10 06:59:51.423 NewsTrader GBPUSD,M15: close #50350347 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 at price 1.19293
2023.03.10 06:59:50.892 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:50.892 NewsTrader GBPUSD,M15: modify #50350347 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:50.688 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:49.970 NewsTrader GBPUSD,M15: close #50350345 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19290
2023.03.10 06:59:49.485 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:49.470 NewsTrader GBPUSD,M15: modify #50350345 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:49.267 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.10 06:59:48.595 NewsTrader GBPUSD,M15: close #50350343 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 at price 1.19293
2023.03.10 06:59:48.048 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:48.048 NewsTrader GBPUSD,M15: modify #50350343 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:47.798 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:47.095 NewsTrader GBPUSD,M15: close #50350341 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19290
2023.03.10 06:59:46.548 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:46.548 NewsTrader GBPUSD,M15: modify #50350341 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:46.329 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.10 06:59:45.595 NewsTrader GBPUSD,M15: close #50350339 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 at price 1.19294
2023.03.10 06:59:45.157 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:45.142 NewsTrader GBPUSD,M15: modify #50350339 sell 0.01 GBPUSD at 1.19290 sl: 1.19440 tp: 1.19040 ok
2023.03.10 06:59:44.923 NewsTrader GBPUSD,M15: Adjusting SL: 1.1944 and TP: 1.1904.
2023.03.10 06:59:44.188 NewsTrader GBPUSD,M15: close #50350337 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 at price 1.19290
2023.03.10 06:59:43.704 NewsTrader GBPUSD,M15: Closing trade by time out.
2023.03.10 06:59:43.704 NewsTrader GBPUSD,M15: modify #50350337 buy 0.01 GBPUSD at 1.19293 sl: 1.19143 tp: 1.19543 ok
2023.03.10 06:59:43.470 NewsTrader GBPUSD,M15: Adjusting SL: 1.19143 and TP: 1.19543.
2023.03.09 16:35:35.091 NewsTrader GBPUSD,M1: initialized
It looks like you had the concurrently running two instances of NewsTraders for the same currency pair and the same Magic number. In this case, one that had its trades already timed out would also attempt to close any new trades opened by any other instance with the same symbol/magic combination.
 
  • 👍
Reactions: zrt

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
I also had the EA on several different charts, same pair, with same magic number, to automate/program the trades on different dates and times while I was at work. So that seems to be the problem.
Because now I have removed it from all the charts and it is on one chart now , and now it works fine again.
Thank you for highlighting this.
I have seen in the replies above: "If currency pairs are different, you don't need to set different Magic numbers. You only need Magic numbers if you are trading on the same currency pair."
So I will test it with different Magic numbers, different charts, same pair. Maybe then I can plan trades for the whole week.
Thanks for all the help.
Post automatically merged:


I also had the EA on several different charts, same pair, with same magic number, to automate/program the trades on different dates and times while I was at work. So that seems to be the problem.
Because now I have removed it from all the charts and it is on one chart now , and now it works fine again.
Thank you for highlighting this.
I have seen in the replies above: "If currency pairs are different, you don't need to set different Magic numbers. You only need Magic numbers if you are trading on the same currency pair."
So I will test it with different Magic numbers, different charts, same pair. Maybe then I can plan trades for the whole week.
Thanks for all the help.
Yes, that would definitely be the problem, see my response to @zrt above.
 

zrt

Trader
Nov 4, 2022
8
0
7
44
Hello ! New problem :)

2023.03.14 12:29:59.136 NewsTrader USDJPY,M15: USDJPY: Spread fuse prevents positions from opening. Current spread: 94 points.
2023.03.14 12:29:59.245 NewsTrader USDJPY,M15: USDJPY: Spread fuse prevents positions from opening. Current spread: 94 points.
2023.03.14 12:29:59.339 NewsTrader USDJPY,M15: Opening Buy.
2023.03.14 12:29:59.886 NewsTrader USDJPY,M15: open #50489175 buy 0.01 USDJPY at 134.151 ok
2023.03.14 12:30:00.982 NewsTrader USDJPY,M15: Opening Sell.
2023.03.14 12:30:01.545 NewsTrader USDJPY,M15: open #50489176 sell 0.01 USDJPY at 134.091 ok
2023.03.14 12:30:03.685 NewsTrader USDJPY,M15: Adjusting SL: 134.333 and TP: 133.983.
2023.03.14 12:30:04.310 NewsTrader USDJPY,M15: modify #50489176 sell 0.01 USDJPY at 134.091 sl: 134.333 tp: 133.983 ok

SL was 70.... so why Entry of UJ Sell is 134.091, SL set to 70, and it puts SL to 134.333 , then 24.2 pips instead of 7 ?

Thank you!
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
Hello ! New problem :)

2023.03.14 12:29:59.136 NewsTrader USDJPY,M15: USDJPY: Spread fuse prevents positions from opening. Current spread: 94 points.
2023.03.14 12:29:59.245 NewsTrader USDJPY,M15: USDJPY: Spread fuse prevents positions from opening. Current spread: 94 points.
2023.03.14 12:29:59.339 NewsTrader USDJPY,M15: Opening Buy.
2023.03.14 12:29:59.886 NewsTrader USDJPY,M15: open #50489175 buy 0.01 USDJPY at 134.151 ok
2023.03.14 12:30:00.982 NewsTrader USDJPY,M15: Opening Sell.
2023.03.14 12:30:01.545 NewsTrader USDJPY,M15: open #50489176 sell 0.01 USDJPY at 134.091 ok
2023.03.14 12:30:03.685 NewsTrader USDJPY,M15: Adjusting SL: 134.333 and TP: 133.983.
2023.03.14 12:30:04.310 NewsTrader USDJPY,M15: modify #50489176 sell 0.01 USDJPY at 134.091 sl: 134.333 tp: 133.983 ok

SL was 70.... so why Entry of UJ Sell is 134.091, SL set to 70, and it puts SL to 134.333 , then 24.2 pips instead of 7 ?

Thank you!
When it applies SL/TP (after position opening in Market execution mode), it looks at the current Ask/Bid rather than the position's open price. It looks like in your case, if tried to apply it to the position's open price, the SL would be below current price, which isn't possible for short trades.
 
  • 👍
Reactions: zrt

zrt

Trader
Nov 4, 2022
8
0
7
44
Hello ! :)
Again for this GBPUSD (and not for the other trades), my SL was 39 pips instead of 7 pips in the settings, I can't understand why. How can I fix this? This is 0.01 test, but having 6 times more SL than planned is a problem :) How can I improve this if possible? (my principal setttings : https://gyazo.com/b1ccb1ec6784ac7cbba6b790e0dcb7a3
And this is not slippage.
Thank you!


2023.03.15 12:30:03.062 '9104620': order was opened : #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000
2023.03.15 12:30:04.235 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000 -> sl: 1.20980 tp: 1.20592
2023.03.15 12:30:04.641 '9104620': modification of order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000 -> sl: 1.20980 tp: 1.20592 failed [Invalid S/L or T/P]
2023.03.15 12:30:05.078 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000 -> sl: 1.21167 tp: 1.20779
2023.03.15 12:30:05.469 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21167 tp: 1.20779
2023.03.15 12:30:05.469 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21167 tp: 1.20779 -> sl: 1.21150 tp: 1.20779
2023.03.15 12:30:05.875 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21150 tp: 1.20779
2023.03.15 12:30:06.266 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21150 tp: 1.20779 -> sl: 1.21143 tp: 1.20779
2023.03.15 12:30:06.657 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21143 tp: 1.20779
2023.03.15 12:30:19.397 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21143 tp: 1.20779 -> sl: 1.21140 tp: 1.20779
2023.03.15 12:30:19.819 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21140 tp: 1.20779
2023.03.15 12:30:19.819 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21140 tp: 1.20779 -> sl: 1.21137 tp: 1.20779
2023.03.15 12:30:20.210 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21137 tp: 1.20779
2023.03.15 12:30:34.089 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 closed due stop-loss at price 1.21137
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
Hello ! :)
Again for this GBPUSD (and not for the other trades), my SL was 39 pips instead of 7 pips in the settings, I can't understand why. How can I fix this? This is 0.01 test, but having 6 times more SL than planned is a problem :) How can I improve this if possible? (my principal setttings : https://gyazo.com/b1ccb1ec6784ac7cbba6b790e0dcb7a3
And this is not slippage.
Thank you!


2023.03.15 12:30:03.062 '9104620': order was opened : #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000
2023.03.15 12:30:04.235 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000 -> sl: 1.20980 tp: 1.20592
2023.03.15 12:30:04.641 '9104620': modification of order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000 -> sl: 1.20980 tp: 1.20592 failed [Invalid S/L or T/P]
2023.03.15 12:30:05.078 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 0.00000 tp: 0.00000 -> sl: 1.21167 tp: 1.20779
2023.03.15 12:30:05.469 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21167 tp: 1.20779
2023.03.15 12:30:05.469 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21167 tp: 1.20779 -> sl: 1.21150 tp: 1.20779
2023.03.15 12:30:05.875 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21150 tp: 1.20779
2023.03.15 12:30:06.266 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21150 tp: 1.20779 -> sl: 1.21143 tp: 1.20779
2023.03.15 12:30:06.657 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21143 tp: 1.20779
2023.03.15 12:30:19.397 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21143 tp: 1.20779 -> sl: 1.21140 tp: 1.20779
2023.03.15 12:30:19.819 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21140 tp: 1.20779
2023.03.15 12:30:19.819 '9104620': modify order #50565073 sell 0.01 GBPUSD at 1.20750 sl: 1.21140 tp: 1.20779 -> sl: 1.21137 tp: 1.20779
2023.03.15 12:30:20.210 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 was modified -> sl: 1.21137 tp: 1.20779
2023.03.15 12:30:34.089 '9104620': order #50565073 sell 0.01 GBPUSD at 1.20750 closed due stop-loss at price 1.21137
You can try fixing this by finding and removing these line in the code:
MQL5:
    ENUM_SYMBOL_TRADE_EXECUTION Execution_Mode = (ENUM_SYMBOL_TRADE_EXECUTION)SymbolInfoInteger(Symbol(), SYMBOL_TRADE_EXEMODE);
    if (Execution_Mode == SYMBOL_TRADE_EXECUTION_MARKET) ECN_Mode = true;
    else ECN_Mode = false;
And replacing them with:
MQL5:
ECN_Mode = false;
But the thing is - it will likely fail to open a trade due to increased spreads.
 

zrt

Trader
Nov 4, 2022
8
0
7
44
Thanks much for your help! I did the modification in MT4 version, it compiled ok, I will try 0.01
I understand then it will likely fail due to spread (and indeed, seems it happens when spread is wider)

Could you comment this example and tell me if I understood well?

Say there is Eurusd news. Say spread always 0, never any slippage, to make things simple.
Eurusd is 1.2050
I long and short say each at 1.2050 a few second before the news. SL is 10 pips TP is 40 pips.
Say the move brings Eurusd directly from 1.2050 to 1.2090, 1 pip by 1 pip, each second.
Then, the Eurusd sell loose 10 pips.

About the Eurusd long, it will TP 40 pips, 1.2050 to 1.2090
But what about the full trailing stop if enabled?
You said it trails by the amount of the SL. Then 10 by 10 in my case?
When price , is 1.2050, before the news, SL is 1.2040.
But when price is 1.2060, what happens, does SL goes to 1.2050?
And only when price is 1.2070, SL goes to 1.2060, and so on? (until TP 1.2090 where SL will be 1.2080 ?)

Thank you for your help!
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
About the Eurusd long, it will TP 40 pips, 1.2050 to 1.2090
But what about the full trailing stop if enabled?
You said it trails by the amount of the SL. Then 10 by 10 in my case?
When price , is 1.2050, before the news, SL is 1.2040.
But when price is 1.2060, what happens, does SL goes to 1.2050?
And only when price is 1.2070, SL goes to 1.2060, and so on? (until TP 1.2090 where SL will be 1.2080 ?)
No, the trailing stop is updated every pip, but the trailing stop distance is 10 pips, so when the price goes to 1.2051, the SL goes to 1.2041. When the price goes to 1.2057, the SL goes to 1.2047, and so on.
 
  • 👍
Reactions: zrt
Aug 23, 2023
4
1
3
23
please I'm having issues with the time...if i set the day to the current day...the default time is 00:00:00 so if news is lets say 7am i set it to 07:00:00...but it shows time after news...what could i be doing wrong?
 
Aug 23, 2023
4
1
3
23
admin please i set the sl and tp to 0 as i just need it to execute like 5 seconds and I'll manage the trades myself...on mt5 it works well and doesn't place any values but for mt4 it doesn't work it still places values... what could be the problem?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
admin please i set the sl and tp to 0 as i just need it to execute like 5 seconds and I'll manage the trades myself...on mt5 it works well and doesn't place any values but for mt4 it doesn't work it still places values... what could be the problem?
It's not meant to work with zero SL/TP. The EA's code should be changed for it to work with no SL and TP on positions.
 
Aug 23, 2023
4
1
3
23
how do i do that also if it's not meant to do that why does it work on mt5 and not on mt4..alternatively i just set the SL/TP to 900 pips so it's almost the same as no SL/TP
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
how do i do that also if it's not meant to do that why does it work on mt5 and not on mt4..alternatively i just set the SL/TP to 900 pips so it's almost the same as no SL/TP
That's called 'unexpected behavior'. Yes, you can set SL/TP to some very large values to effectively disable them.
 
  • 👍
Reactions: forexscientist

kassem

Trader
Dec 20, 2023
3
0
7
44
Good night everyone,

Am having this Error message even though the Lots is by default 0.01 ( and/or Bigger ) and MM (Money Management) is True or False :
( Minimum lot: 0.01, lot step: 0.01. )


Did this happened before with you , and what do you advise ?

Thanks a lot ..
 
Last edited:

Enivid

Administrator
Staff member
Nov 30, 2008
19,036
1,464
144
Odesa
www.earnforex.com
Good night everyone,

Am having this Error message even though the Lots is by default 0.01 ( and/or Bigger ) and MM (Money Management) is True or False :
( Minimum lot: 0.01, lot step: 0.01. )


Did this happened before with you , and what do you advise ?

Thanks a lot ..
That's not an error message. That's just an informational message to remind the trader of the current's symbol lot parameters. You can just ignore it.