Indicator to EA conversion, but not working

 

Hi guys,

recently I've add a few lines of code to an Indicator to make it trade automatically. EA is complied without any error or warning.

 It also looks normal in the Expert Adviser Panel in MT4 (not gray). But it never attaches to the any chart.

Where in the code should I look for the problem? 

 Thanks a lot. 

 
aschkant:

Hi guys,

recently I've add a few lines of code to an Indicator to make it trade automatically. EA is complied without any error or warning.

 It also looks normal in the Expert Adviser Panel in MT4 (not gray). But it never attaches to the any chart.

Where in the code should I look for the problem? 

 Thanks a lot. 

First step would be to check the Experts and Journal tab in MT for errors....
 
Stuart Browne:
First step would be to check the Experts and Journal tab in MT for errors....

maybe  your code still  identified as indicator, not an EA

Reason: