paladin800: How about trying a CTrade class to send orders as in this article.
Thank you. I'm trying to work without classes and libraries, it's easier for me to learn. The only thing that remains is to get rid of loop and see what happens.
There could be many options. Limit the number of iterations, abandon loop checking altogether, analyse the response code, etc. By the way, an infinite loop will also occur if the server rejects the trade request for some reason. I.e. the check logic must be changed completely.
I myself use no more than two checks of return codes and if the order cannot be placed, I wait for the arrival of a new tick.
I will do so to begin with; I will delete the loop completely until I find a simple solution for the loop.
I want to make the advisor that after closing a position, it immediately opens the same position with the opposite position
For example, there were open only 2 positions 1 Sell and 1 Buy. closed one of them, for example Buy on TP or SL , I want the advisor would have reopened Buy position and a new Sell with it
Turns 2 positions Sell 1 position Buy
Can someone come up with any formula which will open a closed transaction, with the opposite
or else what is the way. I already tried everything I know(((( not work :, (
Tiken: Well, I'll wait... Maybe someone will write one.
Learn the language and you'll be able to write similar programs 10 times a day (literally), and maybe even more. )) If not, you'll get them into a job. They'll get it done so fast that you won't even know it's 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.
How about trying a CTrade class to send orders as in this article.
There could be many options. Limit the number of iterations, abandon loop checking altogether, analyse the response code, etc. By the way, an infinite loop will also occur if the server rejects the trade request for some reason. I.e. the check logic must be changed completely.
I myself use no more than two checks of return codes and if the order cannot be placed, I wait for the arrival of a new tick.
I want to make the advisor that after closing a position, it immediately opens the same position with the opposite position
For example, there were open only 2 positions 1 Sell and 1 Buy. closed one of them, for example Buy on TP or SL , I want the advisor would have reopened Buy position and a new Sell with it
Turns 2 positions Sell 1 position Buy
Can someone come up with any formula which will open a closed transaction, with the opposite
or else what is the way. I already tried everything I know(((( not work :, (
Hello!
As far as I understand, it's impossible to play three linked pairs.
Because there are always only two
Eur/Usd
Usd/JBP
and Eur/JBP as a pair does not exist and this is done on purpose.
Is this the case?
Can anyone help with a condition for an EA?
Well, I'll wait... Maybe someone will write one.
Eur/JBP - why is there no such pair?
The Japanese-British pound?