Download MetaTrader 5

UninitializeReason(): How get reason call deinit() for close chart vs. close platform MT4?

To add comments, please log in or register
Pavel Soukup
560
Pavel Soukup  

Hi,

does exist way how get reason call deinit() function for this two events:

1. - for close chart fce. UninitializeReason() return REASON_CHARTCLOSE (4)

but the same value return for

2. - for close platform MT4

I need / I cann´t distinguish this events from each other :-( ?

Alain Verleyen
Moderator
31594
Alain Verleyen  
endy5:

Hi,

does exist way how get reason call deinit() function for this two events:

1. - for close chart fce. UninitializeReason() return REASON_CHARTCLOSE (4)

but the same value return for

2. - for close platform MT4

I need / I cann´t distinguish this events from each other :-( ?

Did you read the documentation ?
Pavel Soukup
560
Pavel Soukup  

Yes, I tell about old build <574, there are only 0-6, new build have still

REASON_CLOSE

9

Terminal has been closed

Thank you.

whroeder1
15060
whroeder1  

endy5:

I need / I cann´t distinguish this events from each other :-( ?

Yes, I tell about old build <574, there are only 0-6, new build have still

  1. How do you expect to distinguish when there isn't any value?
  2. How do you expect to compile any change when only 600+ is supported?
To add comments, please log in or register