There are 10 buttons on the chart,
Task : When any of the buttons is pressed, the previous button pressed should be released. How to solve this task without using OnChartEvent ?
What's wrong with OnChartEvent()?
It is difficult to give advice without knowing the architecture (structure) of the program.
For example, you can store the name (pointer to object) of the last pressed button in a global variable and change the "status" of the previous button when you press another one.It is difficult to advise without knowing the architecture (structure) of the programme.
For example, you can store the name (pointer to the object) of the last pressed button in a global variable and change the "status" of the previous button when you press another one.Doesn't work in the tester...
In a timer, you could try to keep track.
Can you suggest a solution?
I haven't experimented with graphical objects in the tester for a long time, because previously many objects could not be created there at all.
Maybe the developers have plans to make OnChartEvent() work in the tester? Not interested in the Service Desk?
Does the timer in the tester work?
How do you press a button in the tester without producing an OnChart event? By software?
Buttons in tester work fine, clicked with mouse...
OnChartEvent() is planned, but when is not yet known ...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
There are 10 buttons on the chart,
Task : When any of the buttons is pressed, the previous button pressed should be released. How to solve this task without using OnChartEvent?