![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The price of the pair is 90% dependent on a breakdown of past levels.
Forex detected something wrong and banned you just in case? Or is it just a non-trading time?
This situation repeated itself today:
2017.02.22 02:00:08.326 '3389676': order sell 0.01 EURUSD opening at 1.0536 sl: 0.0000 tp: 0.0000 failed [Market is closed]
But when manually, on the desktop, called and closed the EA, it successfully opened the position:
2017.02.22 02:07:38.121 '3389676': order #115497034 sell 0.01 EURUSD at 1.0536 was modified -> sl: 1.1036 tp: 1.0036
This situation repeated itself today:
2017.02.22 02:00:08.326 '3389676': order sell 0.01 EURUSD opening at 1.0536 sl: 0.0000 tp: 0.0000 failed [Market is closed]
But when manually, on the desktop, called and closed the EA, it successfully opened the position:
2017.02.22 02:07:38.121 '3389676': order #115497034 sell 0.01 EURUSD at 1.0536 was modified -> sl: 1.1036 tp: 1.0036
By the way, about your kamikaze - you can make just one robot, which will start a new trade with a new magician when detected depositing to the account.
The same situation happened again today:
2017.02.22 02:00:08.326 '3389676': order sell 0.01 EURUSD opening at 1.0536 sl: 0.0000 tp: 0.0000 failed [Market is closed]
But when manually, on the desktop, called and closed the EA, it successfully opened the position:
2017.02.22 02:07:38.121 '3389676': order #115497034 sell 0.01 EURUSD at 1.0536 was modified -> sl: 1.1036 tp: 1.0036
when you open a position you have to check - is the market working at all? At 02:00, 02:07 (local time terminal), the server can be in deep shit (midnight), the trade may be stopped for 10-15 minutes while DC is charging swaps, commissions and transfer orders. Actually, the regulations usually warn about this and in the "harsh real world", you have to read all the documents.
Yusuf, it may well be the situation that at the opening of a new day your DC re-opens positions, charges swaps, or whatever it does. During this time trading is prohibited. You just need to try to open a little later. Your Expert Advisor has a setting for the number of attempts if you fail. The default setting is 5. Maybe you should try to increase it? Although, beating the server with stupid requests when it returns that the market is closed is not a good idea. But somehow have to determine that trading is already allowed...
By the way, about your kamikaze - you can make just one robot, which will start a new trade with a new magician when detected depositing to the account.
1. There are examples of placing an order in time:
2017.02.20 02:00:04.139 '3389676': instant order sell 0.01 EURUSD at 1.0619 sl: 0.0000 tp: 0.0000
2017.02.20 02:00:07.009 '3389676': order was opened : #115360836 sell 0.01 EURUSD at 1.0619 sl: 0.0000 tp: 0.0000
2017.02.20 02:00:07.009 '3389676': modify order #115360836 sell 0.01 EURUSD at 1.0619 sl: 0.0000 tp: 0.0000 -> sl: 1.1119 tp: 1.0119
2017.02.20 02:00:07.727 '3389676': order #115360836 sell 0.01 EURUSD at 1.0619 was modified -> sl: 1.1119 tp: 1.0119
Order was set successfully.
But, the next day the process breaks down at the second step:
2017.02.21 02:00:05.795 '3389676': instant order sell 0.01 EURUSD at 1.0612 sl: 0.0000 tp: 0.0000
2017.02.21 02:00:06.825 '3389676': order sell 0.01 EURUSD opening at 1.0612 sl: 0.0000 tp: 0.0000 failed [Market is closed]
2 I will try to increase the number of requests, in case it does not help, we will launch it at 01.00 or 00. 30 of DC time;
3. about change of Magician: Firstly, I have to change the Expert Advisor's code and it doesn't mean that there won't be confusion in accounting of work of each robot. When an account dies, a freshly started account takes its place at UPU. I think it's easier in every way.
1. There are examples of placing an order in time:
2017.02.20 02:00:04.139 '3389676': instant order sell 0.01 EURUSD at 1.0619 sl: 0.0000 tp: 0.0000
2017.02.20 02:00:07.009 '3389676': order was opened : #115360836 sell 0.01 EURUSD at 1.0619 sl: 0.0000 tp: 0.0000
2017.02.20 02:00:07.009 '3389676': modify order #115360836 sell 0.01 EURUSD at 1.0619 sl: 0.0000 tp: 0.0000 -> sl: 1.1119 tp: 1.0119
2017.02.20 02:00:07.727 '3389676': order #115360836 sell 0.01 EURUSD at 1.0619 was modified -> sl: 1.1119 tp: 1.0119
Order was set successfully.
But, the next day the process breaks down at the second step:
2017.02.21 02:00:05.795 '3389676': instant order sell 0.01 EURUSD at 1.0612 sl: 0.0000 tp: 0.0000
2017.02.21 02:00:06.825 '3389676': order sell 0.01 EURUSD opening at 1.0612 sl: 0.0000 tp: 0.0000 failed [Market is closed]
2 I will try to increase the number of requests, in case it does not help, we will launch it at 01.00 or 00. 30 of DC time;
3. about change of Magician: Firstly, I have to change the Expert Advisor's code and it doesn't mean that there won't be confusion in accounting of work of each robot. When an account dies, a freshly started account takes its place at UPU. I think it's easier in every way.
there is a midnight when a "double" swap is charged and so the process may take a longer time. In principle, there could be inconsistencies/discrepancies between DC and liquidity providers (those nighttime studs and gaps), again, the server needs to sort out the stacks for all instruments to a working state.
The work has stalled due to incorrect operation of my broker's server:
I cannot resolve the situation when one and the same EA on one account (cent PAMM) correctly places orders at the beginning of TF D1 (conditional EA 1) and the other one (EA 2) on a regular cent account "comic" is rebuffed by (Market is closed) and does not open a position until it is called and closed again without any reconfiguration. A little earlier we discussed this situation here and many advised to find out:
1. contact the brokerage company technical support and check if it is connected with swaps and commissions at the beginning of TF D1.
The Service answered: Yes, it may be related to swaps and commissions and the Expert Advisor answers "Market is closed" and closes the opening request cycle. We have been advised to fix this bug in the Expert Advisor. Then the question remains why EA #1 does not manage to work correctly?
I suspect that this is due to different servers of the DC (?).
2. I have looked carefully at the settings panel of both EAs - everything is identical, except for one strange circumstance:
In the panel of faulty EA #2 in the "Security" section there are 3 options:
- allowimport of functions from DLL - it is checked;
- Allow import from external EAs - ticked;
- allow change of signals settings - no check in the box.
There are only 2 options in the "Security" section in the panel of the functioning EA #1, and the third option is missing:
- allow import of functions from DLL - there is a tick mark;
- allow import from external EAs - check this box;
Then, I ran EA #1 in EA #2 in the server and the unbelievable thing happened - EA #1 turned into EA #2 and the third line appeared and also apparently became defective!
It is possible that something has changed in the EA's code - I have not opened the code.
I copied EA #1 and put it into the terminal for EA #2 - and EA #1 immediately turned into a faulty EA #2 (!).
Now the question is: Can this circumstance influence the EA functionality?
3. I suspect that the two servers of DC are fundamentally different from each other in terms of Advisors' work and I will draw the attention of technical support of DC to this fact.
Dear programmers, I am waiting for your help in solving this situation.
In the meantime, 4 comics running on the VPS and 1 comic on the home computer is actually controlled manually due to this problem, so, the mass launch of the project can be temporarily forgotten.
Yusuf hi!
Looks like the DCs got a whiff... that they could lose millions .... so they're getting in the way.
The work has stalled due to incorrect operation of my broker's server:
I cannot resolve the situation when one and the same EA on one account (cent PAMM) correctly places orders at the beginning of TF D1 (conditional EA 1) and the other one (EA 2) on a regular cent account "comic" is rebuffed by (Market is closed) and does not open a position until it is called and closed again without any reconfiguration. A little earlier we discussed this situation here and many advised to find out:
1. contact the brokerage company technical support and check if it is connected with swaps and commissions at the beginning of TF D1.
The Service answered: Yes, it may be related to swaps and commissions and the Expert Advisor answers "Market is closed" and closes the opening request cycle. We have been advised to fix this bug in the Expert Advisor. Then the question remains why EA #1 does not manage to work correctly?
I suspect that this is due to different servers of the DC (?).
2. I have looked carefully at the settings panel of both EAs - everything is identical, except for one strange circumstance:
In the panel of faulty EA #2 in the "Security" section there are 3 options:
- allowimport of functions from DLL - it is checked;
- Allow import from external EAs - ticked;
- allow change of signals settings - no check in the box.
There are only 2 options in the "Security" section in the panel of the functioning EA #1, and the third option is missing:
- allow import of functions from DLL - there is a tick mark;
- allow import from external EAs - check this box;
Then, I ran EA #1 in EA #2 in the server and the unbelievable thing happened - EA #1 turned into EA #2 and the third line appeared and also apparently became defective!
It is possible that something has changed in the EA's code - I have not opened the code.
I copied EA #1 and put it into the terminal for EA #2 - and EA #1 immediately turned into a faulty EA #2 (!).
Now the question is: Can this circumstance influence the EA functionality?
3. I suspect that the two servers of DC are fundamentally different from each other in terms of Advisors' work and I will draw the attention of technical support of DC to this fact.
Dear programmers, I am waiting for your help in solving this situation.
In the meantime, 4 comics running on the VPS and 1 comic on the home computer is actually controlled manually because of this problem, therefore, the mass launch of the project can be temporarily forgotten.
Yusuv, what about switching to another broker?