Started visual testing. I click on the graphic, create inscriptions, click on them... No effect.
Can youpost the code withOnChartEvent in full.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 the indicator and useCHARTEVENT_OBJECT_CLICK.
khorosh: 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.
Do you overlay this indicator on the visual test chart?
khorosh: I swear to God). When a button on the tester chart is pressed, its colour changes. Could this be an indication thatOnChartEvent is working?
What does this have to do with the button? The button responds to pressing it, no problem here. You put some Print in the OnChartEvent and see if it doesn't work in the tester. Of course if you don't have OnChartEvent called manually from some class, I've seen such variants in articles on the site.
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?