press the compile button in MetaEditor via an expert

 
Code to press the compile button in MetaEditor via an expert 
 

I have removed your other topic.

Please do not duplicate topics.

 
amarkal7:
Code to press the compile button in MetaEditor via an expert 

What to do ?

It's not possible. 

 

Best guess is the EA doesn't work properly and needs to be re-initialized periodically to refresh everything.

OP has noticed that happens when the EA gets recompiled.

 

Expert Advisor running on chart can find editor windows and then toolbar button then send a message of click you need to access windows api.

 

For this purpose Expert Advisor need to be running in memory. 

 
honest_knave:

Best guess is the EA doesn't work properly and needs to be re-initialized periodically to refresh everything.

OP has noticed that happens when the EA gets recompiled.

Yep this is the case....need to reinitialize it periodically...any way that can be automated?
 
amarkal7: Yep this is the case....need to reinitialize it periodically...any way that can be automated?
It's easy. You fix the broken EA!
 
whroeder1:
It's easy. You fix the broken EA!
It's not broken.....it works normally but sometimes hangs....
 
amarkal7:
Yep this is the case....need to reinitialize it periodically...any way that can be automated?

Yes, but it would take code to achieve that... and if you're writing coding anyway, you might as well fix the underlying problem.

To reaffirm whroeder1's post, a correctly-coded EA should not need to be reinitialized. There is a problem somewhere in your code.

 
honest_knave:

Yes, but it would take code to achieve that... and if you're writing coding anyway, you might as well fix the underlying problem.

To reaffirm whroeder1's post, a correctly-coded EA should not need to be reinitialized. There is a problem somewhere in your code.

There is a run time error "Array out of range"...Could that be the issue?

 
amarkal7:
It's not broken.....it works normally but sometimes hangs....
Reason: