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
Well, what's not to understand? TheCHARTEVENT_OBJECT_CLICK event works on a visual testing chart and ok, I don't need more to control an Expert Advisor in a visual testing mode. Why do I need to call Print from the event?)
On the contrary. There's something you don't understand. Oh, come on.
I agree, I am very far from being a professional. But buttons of expert control on visual chart test usingCHARTEVENT_OBJECT_CLICK event works. I did not use other events and cannot say anything about them.
Yeah, it's buzzing, so it works.
By the way, this test works in visual testing mode. This indicator must be placed in the tester's template, start testing an empty Expert Advisor template and click on the chart with the mouse.
By the way, this test works in visual testing mode. This indicator must be placed in the tester's template, start testing an empty Expert Advisor template and click on the chart.
Where is theCHARTEVENT_OBJECT_CLICK identifier in your code?
I seeCHARTEVENT_CLICK, so the event with this identifier is designed to track the click on the chart, not on the graphical object.
By the way, this test works in visual testing mode. This indicator must be placed in the tester's template, start testing an empty Expert Advisor template and click on the chart with the mouse.
Testing (even in visual mode), i.e. working in the tester (even in visual mode) and visual testing chart are different things.
You do not call this indicator from an Expert Advisor, you put it on a visual testing chart. It does not work in the tester, but on the visual testing chart.
Where in your code is theCHARTEVENT_OBJECT_CLICK identifier?
If you use this indentifier, you should also code the button in the test. We are talking about whether OnChartEvent works or not during visual testing, so it doesn't matter which event.
If you set this identifier, you must also encode the button in the test. We are talking about whether OnChartEvent works or not during visual testing, so it doesn't matter which event.
You have already "grinded" so much here that you seem to be confused what is important to you and what is not.
In your speech, almost in every post, you were talking aboutCHARTEVENT_OBJECT_CLICK, but in the code you presented a different identifier. And suddenly it became not important at all. ))
Not in visual testing, but in the tester. In the tester, both during normal and visual testing everything is the same, and ChartEvent does not work there. But during visual testing, there is a chart and ChartEvent works in the indicators.