Download MetaTrader 5

Why doesn't OnChartEvent continue working?

To add comments, please log in or register
Read the interviews of the Automated Trading Championship participants
1mathboy1
118
1mathboy1 2015.05.18 23:17 
I wrote an indicator that draws symbols on the chart once I draw a trendline. I wrote in the OnChartEvent function to run the code every time I drag the trendline. It works finitely many times, and then all of a sudden the symbols on the chart are frozen, no matter how many times I change the trendline. The only way to fix it is to remove the indicator and reattach it to the chart. Does anyone have these problems?
honest_knave
Moderator
2198
honest_knave 2015.05.19 06:14  
Have you checked the log when it stops working? Perhaps a zero-divide error?
To add comments, please log in or register