Attached is raw EA, which should, to some of us, serve as an example of coding and using (simple) buttons on MT4 chart.
EA goes under Experts folder.
<ChiFunctions.mqh> goes under Include folder. Then compile and test.
Buttons toggle between preset states/values, and change color and text (and tooltip! - hover over). Trading logic is not incorporated, nor is order management. Just buttons.
S love nia
To add comments, please log in or register