Do Comment or Print and see at which step of the formula there is a discrepancy
no.
I wonder how, if the indicator is transferred with all the rules of punctuation and grammar to the Expert Advisor? HOW CAN IT COUNT DIFFERENTLY? Do you have any other suggestions?
So far I have decided to feed the values to the Expert Advisor from the indicators via global variables )))) Later I will try to find out where the error is coming from
Can you tell me, I have an EA which is the toughest martingale (classic). It works great on EUR/USD with a TP of 1000 pips. But sometimes it just stops opening trades, why? If I restart it, everything starts perfectly from the beginning. But why does it stop opening them? If there is no answer to this question, please, tell me if there is any function that automatically restarts the EA? Say,
if (OrderCloseTime() > 100000)
{
PerezapuskSovetnika();
}
Can you tell me, I have an EA which is the toughest martingale (classic). It works great on EUR/USD with a TP of 1000 pips. But sometimes it just stops opening trades, why? If I restart it, everything starts perfectly from the beginning. But why does it stop opening them? If there is no answer to this question, please, tell me if there is any function that automatically restarts the EA? Say,
=)
It is possible that just at some point there is not enough deposit for a new trade. In the code, immediately after opening a position, output an error in Print(), then look at the error description (134 is possible).
:) No, in my case it doesn't work properly, because the indicator is proprietary and it needs the market all the time. That's why I have tried to build calculations in my Expert Advisor, but it has failed so far (from time to time it has some unnecessary values somewhere :))) global ones seem to handle it well for now
paladin80: It is possible that there is simply not enough deposit for a new trade at some point. In the code, immediately after opening a position, output an error in Print(), then look at the error description (134 is possible).
The interesting thing is that the deposit is sufficient - I have a large reserve there.
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.
it means that you are counting differently.
Do Comment or Print and see at which step of the formula there is a discrepancy
no.HOW CAN IT COUNT DIFFERENTLY?
Check it and see for yourself.
Can you tell me, I have an EA which is the toughest martingale (classic). It works great on EUR/USD with a TP of 1000 pips. But sometimes it just stops opening trades, why? If I restart it, everything starts perfectly from the beginning. But why does it stop opening them? If there is no answer to this question, please, tell me if there is any function that automatically restarts the EA? Say,
=)
Except sometimes it just stops opening trades, why?
So far, I have decided to feed values to the Expert Advisor from indicators via global variables
Can you tell me, I have an EA which is the toughest martingale (classic). It works great on EUR/USD with a TP of 1000 pips. But sometimes it just stops opening trades, why? If I restart it, everything starts perfectly from the beginning. But why does it stop opening them? If there is no answer to this question, please, tell me if there is any function that automatically restarts the EA? Say,
=)
Would you use iCustom to upload it?
:) No, in my case it doesn't work properly as the indicator is proprietary and needs the market all the time.
I don't get it. why make wrong indicators.
It is possible that there is simply not enough deposit for a new trade at some point. In the code, immediately after opening a position, output an error in Print(), then look at the error description (134 is possible).
The interesting thing is that the deposit is sufficient - I have a large reserve there.