Expert doesn't work because of the auto trading button

 
Hello, 
Please I have faced a strange situation that is when when I load my expert then I enable the auto trading button, the expert doesn't open any orders,
but when I enable the auto trading button first the load the expert, it works fine...

Is that situation is ok.. or there is some thing wrong.
would you please help.
 
Code is broken
 
WHRoeder:
Code is broken

Thanks for response but how it would be the problem?
Ok.. I will check out after the market opens.
 

It depends on how it is coded.

It may be that after n failed attempts to open an order, it is coded to stop working. 

 
GumRai:

It depends on how it is coded.

It may be that after n failed attempts to open an order, it is coded to stop working. 


No it is not.. thanks
 
I have tested on an expert all it contains one line of code which is open buy order, and I faced the same situation.. 
I wonder @GumRai & @WHRoeder, how didn't you face the same situation?!
 
khaledFahmy:

No it is not.. thanks
GumRai:

It depends on how it is coded.

It may be that after n failed attempts to open an order, it is coded to stop working. 

Hi GumRai,

Is there any idea to find whether the code was broken or not after competion of code? because while we compile and run EA no errors or warnings we found.

we came to know the code was broken when such things happen!

 
sheriffonline:

Hi GumRai,

Is there any idea to find whether the code was broken or not after competion of code? because while we compile and run EA no errors or warnings we found.

we came to know the code was broken when such things happen!

Usually there will be some clue in the Experts log.