I hv added 2 buttons so I can use them to turn on/off the sound alerts when the close price goes up/down the LSMA. However, they don't change from "OFF" to "ON" when I press the button. Would someone pls help?
Announcement
Collapse
No announcement yet.
buttons to turn on/off alerts
Collapse
X
-
Richard,
I made your button drawing section a function located outside main. Where your drawing steps had been, I simply called the function. Then, in the functions that change the text, I call that function which will then re-draw the buttons.
Please try it out and let me know if it works good for you. Thanks for posting the code, it makes troubleshooting so much easier.
Comment
Comment