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
Look at the architecture of the RadioGroup controller...
It's a hell of a place...
And as far as I know it also uses OnChartEvent
Track the state of the buttons, viaObjectGetInteger. Record the time when the button is pressed, and then push back the older press.
Buttons in tester work fine, clicked with mouse...
OnChartEvent() is planned, but when is not yet known ...
How do you know when a button is pressed?
Via ObjectGetInteger
Track the state of the buttons, via ObjectGetInteger. When a button is pressed, record the time and then push back the oldest pressed button.
Create variables for each button to store the time?
Thanks all problem solved, I found a simpler way, I am sitting and wondering ...
Where you know which button is pressed, push the previous button, or go through all the buttons and push them all (except the pressed one, of course).
It is not possible, it is not that simple, the button whose code is above will always push those buttons whose code is below ...
That is, if we pressed the button whose code is higher and then press the button whose code is lower, the state of the first button will always press the last ...
Actually... When usingOnChartEvent(), button's pressing is not determined byObjectGetInteger().