The problem is on and off, only now I've reduced the working timeframe as a test (so that it would signal more often), and when the conditions coincide, it pours.
anatolev: The problem is, then it is not, just now as a test reduced the working timeframe (so that it would signal more often), and when the conditions coincide, poured.
You have a problem with expiry:
inputint Signal_Expiration =4.0; // Expiration of pending orders (in bars)
Got it, thanks! And as in this case would be correct, or this line can be excluded? Or maybe it can be set equal to zero, now I have experienced:) achieved that opens the marker at the opening of the second bar after the signal, put
inputdouble Signal_PriceLevel =0.0; // Price level to execute a deal
it was 4. I guess I should correctly say the limit was set 4 ticks better than the market when I had 4, now it works like the market when I set zero.
anatolev: I got it, thank you! If I wanted to place a marker on the opening of the second bar after the signal, I set it to zero, before it was 4. Do I understand correctly, when I had 4, the limit was set to 4 ticks better than the market, and now when I set zero, it works like the market does?
Sorry, but all standard libraries are "tuned" to work on FOREX.
I, and many others, do not use them to work on FOREX.
Since you obviously know more about automated trading with MT than I do, maybe you can answer a few questions at once.
1) Example: My robot opened a position and moved it to the next trading day. Since the market is closed at night, I close the computer for the night and turn it on in the morning before trading, the question is: will the robot see the position opened earlier after rebooting the computer and the terminal and will it continue working on the position, turning, trailing, etc.?
if so, how does it do this, through the MagicNumber or otherwise?
2) If a trade is opened by the Expert Advisor from one computer, and then another computer with the same Expert Advisor is started, will it continue the work started by the first one or just start trading "from scratch"?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I couldn't find it on the forum, maybe someone will tell me how to solve the problem with the "incomplete FOK order".
Good afternoon!
Do you think everyone here is clairvoyant?
How can I tell you anything? There is no MT4 or MT5 terminal,
No code that you use when sending an order and no FORTS or FOREX market!
Good afternoon!
Do you think everyone here is clairvoyant?
How can I tell you anything? There is no MT4 or MT5 terminal,
No code which you use when sending an order, no FORTS or FOREX market!
Forts, and the terminal respectively the 5th EA code is generated by wizard, simple averages
Where is the code?
How do you send the order?
P/S The code is inserted by pressing the SRC button
Where is the code?
How do you send the order?
P/S The code is inserted by pressing the SRC button
The problem is, then it is not, just now as a test reduced the working timeframe (so that it would signal more often), and when the conditions coincide, poured.
You have a problem with expiry:
There can not be expiry in BARs, only datetime
You have a problem with expiry:
There can be no expiry in BARs, only datetime
I got it, thank you! If I wanted to place a marker on the opening of the second bar after the signal, I set it to zero, before it was 4. Do I understand correctly, when I had 4, the limit was set to 4 ticks better than the market, and now when I set zero, it works like the market does?
Sorry, but all standard libraries are "tuned" to work on FOREX.
I, and many others, do not use them to work on FOREX.
Unfortunately, I cannot help you in using the standard libraries.
Since you obviously know more about automated trading with MT than I do, maybe you can answer a few questions at once.
1) Example: My robot opened a position and moved it to the next trading day. Since the market is closed at night, I close the computer for the night and turn it on in the morning before trading, the question is: will the robot see the position opened earlier after rebooting the computer and the terminal and will it continue working on the position, turning, trailing, etc.?
if so, how does it do this, through the MagicNumber or otherwise?
2) If a trade is opened by the Expert Advisor from one computer, and then another computer with the same Expert Advisor is started, will it continue the work started by the first one or just start trading "from scratch"?