
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
Nevertheless, I use this function to control EA with buttons and everything works, both in tester and in real life.
You are confusing green with salty
you are using
OBJPROP_STATE
State of the button (Pressed/Removed)
bool
In the OnTick() event.
You are confusing green with salty
you are using
OBJPROP_STATE
State of the button (Pressed/Removed)
bool
And how do you test?
Created an expert,recorded it inOnChartEvent:
Started visual testing. I click on the graphic, create inscriptions, click on them... no effect.
Created an expert,recorded it inOnChartEvent:
Started visual testing. I click on the graphic, create inscriptions, click on them... No effect.
And you canpost the fullcode withOnChartEvent. I'll see what's the difference with mine. By the way, I have buttons in indicator, not in Expert Advisor. Try to create a button in an indicator and useCHARTEVENT_OBJECT_CLICK.
Can youpost the fullcode with theOnChartEvent. ...
So it doesn't seem to be working. But make a button in the indicator and useCHARTEVENT_OBJECT_CLICK. It will work.
Do you overlay this indicator on the visual test chart?
I swear to God). When a button on the tester chart is pressed, its colour changes. Could this be an indication thatOnChartEvent is working?