[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 114

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
If we just record the fact of a trigger, then we can record the number of orders on the previous tick and compare it with the next tick - if the number of orders has changed, it means .....
So you blatantly have no tick in the terminal. I.e. either it is not connected, or you are working on offline chart, or check IsExpertEnabled() in the init and if it is not allowed, then enable EAs.
The chart is 100% offline, Expert Advisor fills some data and outputs it to me via Print.
Looks like you are right, there is a cross icon in the chart window, I missed that point for some reason!
Please advise if trading is not allowed, how can I programmatically allow it.
Thanks in advance!
if trading is not allowed,
I did, but it doesn't always work correctly...
And of course, there are logical errors.It may not work correctly if you, perhaps, do not understand the difference between global and local variables, and as an option, you can declare with a modifier static
Hello.
Can you please tell me how to get a list (collection) of all graphical objects on a chart?
There are several horizontal lines on the chart... How can I learn their number and parameters?
Hello.
Can you please tell me how to get a list (collection) of all graphical objects located on a chart?
Is it possible to refer to graphical objects by indices?
You can. Read here. ObjectsTotal() will give the total number of objects, ObjectName() - object name by its index. Then work by object name.
Thank you very much!!!
... IsExpertEnabled() will give you false. In this case, only turn on the button by hand
Krasawela))
Thank you very much, everything works!))
Respect to all!))