Dear Experts! Looking for a script that opens orders when the normal SMA crosses the horizontal line on the chart. If the SMA crosses the line from below - buy, opposite - sell. The trades are on the close of the candle. Can you tell me the link where to find it, if it has been posted.
I don't understand anything First, my cycle is not working. Secondly, it writes a bunch of errors, including wrong stops,(!!! They just do not exist, they are zero!!!!) And still it opens 5-1o orders!!!
And what is wrong with the price parameter?
The initial idea is to open two orders at a distance of 20 pips from the price - one above, one below (otstup=20), takeprofit should be another 20 pips higher or lower.
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.
{X=X++;}}or X = X+1; or X++; ))
And yet, look again at the loop condition of the first one
Dear Experts! Looking for a script that opens orders when the normal SMA crosses the horizontal line on the chart. If the SMA crosses the line from below - buy, opposite - sell. The trades are on the close of the candle. Can you tell me the link where to find it, if it has been posted.
Regards and etc.
I don't understand anything First, my cycle is not working. Secondly, it writes a bunch of errors, including wrong stops,(!!! They just do not exist, they are zero!!!!) And still it opens 5-1o orders!!!
And what is wrong with the price parameter?
The initial idea is to open two orders at a distance of 20 pips from the price - one above, one below (otstup=20), takeprofit should be another 20 pips higher or lower.
Yes,X is the number of orders on this currency pair and open by this particular EA.
Yes,X is the number of orders on this currency pair and opened by this particular EA.
that's the way you want it, in fact no one knows what's going to be there because of at least 2 mistakes
- in the very first loop, which I've already mentioned.
- at the very first moment you select an order which does not exist with the OrderSelect function
2) normalize prices in OrderSend
- at the very first moment you select an order that does not exist with the OrderSelect function
Then how do you write this logical order in the right way?