Forum

code generation error

Hi, I cannot find what is the problem with the attached code (gEA_test2.mq5). MQL5 compiler reports 'code generation error'. If I rearrange the code layout (see gEA_test3.mq5) it compiles fine. Is it the problem with my code or an error in the compiler

OnChartEvent - what id == 8 means?

Hi, When I change the name of the chart object there are actually 3 events generated: CHARTEVENT_OBJECT_DELETE = 6 CHARTEVENT_OBJECT_CREATE = 7 The third one - not listed in the reference guide = 8 So, what is the meaning of the event of id = 8? Thanx