
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
No, it does not. It goes through all objects in that loop.
I repeat #15: "And where in your new code do you filter to get only HLines? It is almost always your code."then how about it right? and why does it only return the number of lines via ObjectsTotal(ChartID(),-1,OBJ_HLINE)? You've got me stumped.
That returns the number of HLines, but you select all objects.
Dadurch wird die Anzahl der HLines zurückgegeben, aber Sie wählen alle Objekte aus.
how do you think the solution is?
thank you it works
Don't do that. Someone searching might find this thread and still be clueless. What was the problem? What solved what? Show your fix.
How To Ask Questions The Smart Way. (2004)
When You Ask.
Follow up with a brief note on the solution.
The problem was that he went BUY but not SELL. This was because he was overwhelmed with the prizes.. I told him go through all the lines and get the prizes (from yellow, brown etc.). Because the for loop iterates through each object one at a time, over and over again, it cannot provide 6 prices at the same time without pausing. So I created 2 for loops, one for BUY and one for SELL orders. Now he has the prices and reacts accordingly in the areas! I also globally initialized the double variables that were previously in the for loop and put in a filter that filters out "non-HLines".
do you know how i can get the price of a specific item that is closest to the current bid/acs rate?