Download MetaTrader 5

press the compile button in MetaEditor via an expert

To add comments, please log in or register
amarkal7
151
amarkal7  
Code to press the compile button in MetaEditor via an expert 
Keith Watford
Moderator
10544
Keith Watford  

I have removed your other topic.

Please do not duplicate topics.

Alain Verleyen
Moderator
33777
Alain Verleyen  
amarkal7:
Code to press the compile button in MetaEditor via an expert 

What to do ?

It's not possible. 

honest_knave
Moderator
2293
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.

Farrukh Aleem
1208
Farrukh Aleem  

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. 

amarkal7
151
amarkal7  
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?
whroeder1
16509
whroeder1  
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!
amarkal7
151
amarkal7  
whroeder1:
It's easy. You fix the broken EA!
It's not broken.....it works normally but sometimes hangs....
honest_knave
Moderator
2293
honest_knave  
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.

amarkal7
151
amarkal7  
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?

Alain Verleyen
Moderator
33777
Alain Verleyen  
amarkal7:
It's not broken.....it works normally but sometimes hangs....
12
To add comments, please log in or register