[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 393

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
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?