Errors, bugs, questions - page 1257

 
valeryk:
It worked. I checked my EA and it opens orders via buttons. That's why it does not print, I wonder...

The interesting thing is that I've done it myself before, but not through a button, but through an object, and it all worked.

and it printed and it drew.

 
Wahoo:
Where is the information that OnChartEvent() should work in the tester? Did I miss something? It still doesn't work for me. Neither in 4, nor in 5.

You can't miss something that didn't go by.)

Most likely it's the button.

Checked button property in OnTick and everything is fine.

 
valeryk:
It works. I checked my EA, it opens orders from the buttons. That's why it doesn't print, I wonder...
Can you post the code? I don't have a single panel that works on live charts in the tester.
 
Wahoo:
Can you post the code? I don't have any panels that work on live charts in the tester.
No, unfortunately. The Expert Advisor is custom made.
 
sanyooooook:

You can't miss something that didn't go by.)

Most likely it's the button.

I checked the button property in OnTick and it's fine.

Buttons are created. Everything is OK. I'm saying that OnChartEvent() is not generated in tester.... when they are pressed
 
sanyooooook:

You can't miss something that didn't go by.)

Most likely it's the button.

I checked the button property in OnTick and it's fine.

What if I call OnTick from the event and print from there?
 
valeryk:
No, unfortunately. The Expert Advisor is bespoke.
That's what I'm saying, it doesn't work in the OnChartEvent() tester :)))
 
Wahoo:
That's what I'm saying: OnChartEvent() doesn't work in the tester :)))
Yes, there are probably many other things that don't work in the tester :)
 

something has changed in the tester:

if the indicator has OnChartEvent and runs it on the visualization chart, then everything works

if this indicator is called via iCustom, it's not that nothing works, but the OBJ_RECTANGLE_LABEL and OBJ_LABEL objects are not created at all.

 
valeryk:
And if the event to call OnTick, and then print from there?

I used a globally declared variable, changed its value at the event and printed it in OnTick.

Doesn't work.

SZY: Doesn't work even just on a click on the chart. Tried the comment too.

We will do through checking button presses.

Reason: