Hi, everyone,
I wrote an EA, it can open, close and delete orders under Strategy tester. So I try to attach it to a chart and I cannot. After Journal shows "loaded successfully", then it says "The expert is an indicator and cannot be executed", then the EA is removed.
Could anyone tell me what the reasons are?
Many thanks!
==
PS:
problems sloved after I commented the line
#property indicator_chart_window
I wrote an EA, it can open, close and delete orders under Strategy tester. So I try to attach it to a chart and I cannot. After Journal shows "loaded successfully", then it says "The expert is an indicator and cannot be executed", then the EA is removed.
Could anyone tell me what the reasons are?
Many thanks!
==
PS:
problems sloved after I commented the line
#property indicator_chart_window