[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 351
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
You're quick, though. Deleted the post as I found it myself. Thanks a lot!
Good to hear from you, I thought I was replying to an old post I can't find :)
And in the "Events" tab of the "Tools - Settings" menu, things are quite bad, though. Try using it :(
I agree, it's bad ... Alert is not turned off by spacebar, only manually ... changing the alert parameter in "service-settings-events" does nothing ...
Guys, please give me a hint. I've already asked this question, but I haven't managed to get the code right.
Once again I'll tell you the gist of the idea. By Awesom indicator, from the bottom (below 0) to the top (above 0), the volume of the wave (indicator Volumes) is calculated.
The text label with the sum of the volume of the wave, should be printed on the indicator chart and calculated over the entire history.
I got this:
What is the error?
The EA throws a stack of orders on the chart.
My function finds the number of open market orders, pending bids and settles. I have added another built-in function that finds values of maximal and minimal prices of pending orders in order to check one more thing quicker.
I can see through the print that at some moment in time, it finds values that are not what I want.
The idea is that if pending orders are already closed, they need to be skipped but this function does not skip them for some reason. Here is the function:
I have a clear condition:
It means that if closing time of an order is not zero, it is closed and we should skip it.
On the output, I see that it doesn't skip them. Here is the chart:
Why does it get the wrong price for the pause? Because the code is correct, as I see it.
The condition I have is clearly spelled out:
What's it for forwards?
What is it for pending orders?
So for orders that are active the closing price is logically zero (as it is not closed), but for orders that have already closed the closing price is not zero (the closing price will be the one at the time it was deleted). Logically, this is the closing time?
I understand that pending orders are not closed but deleted, but how else should we implement it?
Can you write down what you need from the function - find outermost pending orders ?
To find prices of outermost pending orders. It's the active ones, not the deleted ones. I.e., I want to skip deleted pending orders in our search... I hope I've made myself clear?