[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 402
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
Vadim, I would do it the way you've described! That's why I asked you a question. I thought, maybe I haven't taken something into account. I'm still observing my own logic and the logic of other programmers. Because in addition to the basic logic, I see that I need to take into account a number of factors.
RefreshRates() updates history in expert thread. MarketInfo() takes data from server. There is no need to refresh it. It is an unnecessary brake.
If it must be updated, a simple call of RefreshRates() will not give anything. We must somehow control and handle the event of the whole history arrival.
hello how to use metaeditor?
Well hello! Use it however you like! This is not your place to ask questions like that... This is a programmer's forum...
RefreshRates() updates history in Expert Advisor's thread. MarketInfo() takes data from the server. It does not need to be updated. It is unnecessary braking.
If it must be updated, a simple call of RefreshRates() cannot do anything. We must control and handle all history event somehow.
Yes. I understand that RefreshRates() refreshes market data (their history to the current time) and then market environment variable uses the last received value. As far as I understand, this is the only logical variant. Therefore, this function is written easier and faster, and more logical and practical, and more reliable, isn't it?
Yes. I understand that RefreshRates() updates market data (its history to the current time), and then the market environment variable uses the last received value. As far as I understand, this is the only logical variant. Therefore, this function would be written easier and faster and more logical, more practical and reliable, right?
I would go like this:
A separate function should be written to update the history.
2 hours trying to write a test piece, to further test different conditions.
Doesn't work!
Please give me the error.
the point is that orders open after 2pp in their own direction.
opens sell and ends...
Good afternoon! Forgive the triviality. The lines are from a robot, I've had the robot for years and basically a cycle of this kind invariably wanders from one to the other.
Why is my order total minus one? Is it true that the loop is going for a decrease in the variable and?
Kim's function has the time parameter ="Date and time in seconds since 1970"
I tried 2 variants.
and both give a profit not for the current day, but a full profit over the whole history....
Good afternoon! Forgive the triviality. The lines are from a robot, I've had the robot for years and basically a cycle of this kind invariably wanders from one to the other.
Why is my order total minus one? Is it true that the loop is going for a decrease in the variable and?
I would:
To receive data viaMarketInfo() even for this window tool would be too expensive in terms of resources, don't you think?
You should write a separate function to update the history.
I don't quite understand the logic of writing a separate function. The RefreshRates() function itself updates data of predefined variables. And Bid and Ask are predefined variables. If function RefreshRates() updates predefined variables, why write some additional function?