[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 483

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
Not always like this...
"" Incorrect bid or ask price, possibly non-normalised price. You need to refresh the data after a delay of 5 seconds or more using the RefreshRates function and try again. If the error persists, it is necessary to stop all trading attempts and change the program logic."" "FROM DOCUMENTATION".
If on demo or real - it will not work. You very often try to open two orders in a row. This will work in the Strategy Tester. Put a delay between open orders.
Thank you!!! Put in the normalisation... And damn-what the hell is going on at all!!!!!! My head's on fire. Seems easier than high school geometry.
You don't need normalisation for ASK and BID, you need Sleep(Shh1sec-5secs);
Got it! Here's the thing! Let me get this straight... Thank you very much for your participation, for your help. I don't understand it myself. Pay attention to the above code. There's a condition
If... and if... and if there are no buy orders. I mean, there are! They are not zero. As you can see on the screenshot, the code has just begun to work and there are no buy orders! Well, no! And the condition is fulfilled, though it shouldn't be!
This can be seen from the message of the printer in the Expert Advisors window. By the way, the order was perfectly set when the condition was fulfilled, i.e., it was set!
It turns out that I misspelled the condition?
Of course, the next condition in the code was triggered,
which is the one that should have been triggered under the circumstances!
What's wrong!!!?
What's wrong with the logical condition?!?
How the hell is it that they're both executed at once???
Watching, I don't understand... That's two conditions being met at once!!! Maybe I'm an idiot... But I don't get it. This is ridiculous. I guess I don't know how to write an if operator!
Man, the whole code.
Explanation, just to make it easier... The standard order picking, as I see it. Separate open orders are read in BUY++, SELL++ variables.
Then these variables are involved in logical conditions. The rest does not seem to be of any importance, although who knows.
Actually, it is clear what I've seen in the prints.
I downloaded an EA for work in "one click", compiled - no errors, but except "face" in the corner does not show anything. Help !!!!!!!!!!!!!
Watching, I don't understand... That's two conditions being met at once!!! Maybe I'm an idiot... But I don't get it. This is ridiculous. I guess I don't know how to write an if operator!
Man, the whole code.
Explanation, just to make it easier... The standard order picking, as I see it. Selling separately open orders in BUY++, SELL++ variables.
Then these variables are involved in logical conditions. The rest does not seem to be of any importance, although who knows.
Actually, it is clear what I've seen in the prints.
can you give me an "indicator"?
although don't
What's the big shot, why is he getting so worked up?
Watching, I don't understand... That's two conditions being met at once!!! Maybe I'm an idiot... But I don't get it. That's ridiculous. I guess I don't know how to write an if operator!
Man, the whole code.
Explanation, just to make it easier... The standard order picking, as I see it. Separate open orders are read in BUY++, SELL++ variables.
Then these variables are involved in logical conditions. The rest does not seem to be of any importance, although who knows.
Actually, it is clear what I've seen in the prints.
Lots of logical and technical errors. The logic of opening orders is not traceable (I had to use my imagination). You need to learn by yourself, picking your own sloppy code (until it "straightens out") OR study other people's codes. I did your code for you. - Will it help you?
P.S. As I said before, you don't need to normalize prices for a tester. But one of the possible reasons for the "Wrong price" error when executing a trade order may be the Slippage, which you have 3 * Point (when converted to int) = 0.