![Documentation on MQL5: Event Handling / OnDeinit Documentation on MQL5: Event Handling / OnDeinit](https://c.mql5.com/36/36/documentation-on-mql5-event-handling.png)
Documentation on MQL5: Event Handling / OnDeinit
- www.mql5.com
//| Expert initialization function | //| Expert deinitialization function |
SungSungE: But file data get lost ....
Do you really expect an answer with the information you've provided? There are no mind readers here and our crystal balls are cracked. We can't
see your broken code.
William Roeder:
Do you really expect an answer with the information you've provided? There are no mind readers here and our crystal balls are cracked. We can't see your broken code.
Do you really expect an answer with the information you've provided? There are no mind readers here and our crystal balls are cracked. We can't see your broken code.
Thanks your response. I try do do more description , maybe put result csv file in cloud can say more. (upload already as case 1 case 2 csv files)
The files can execution on my platform. If can't run on your. Could you provide more detail error message?
SungSungE:
Thanks your response. I try do do more description , maybe put result csv file in cloud can say more. (upload already as case 1 case 2 csv files)
The files can execution on my platform. If can't run on your. Could you provide more detail error message?
Ya,It's okay. ^,^
I solve it.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is success as it do as a scrip to dump all data.
But I can't call script in EA.(case 1)
so I try to call a function in EA, I try to write csv file to log data as OnDeinit() event.(case 2)
To log all deal in csv file to check more detail, In debug there is data, but it didn't store in file.
test file link (PS test case without could)
If I don't do something before OnDeint(), I will get failed deals history..
Even if I try this On timer maybe get failed can,t flush all data out.
I got so confuse, who to flush all data, if there is some interrupt will break normal process, so I will lost data?
=====File data lost ====
case 1 setting a: no action onTime
result :empty result for deal history.
case 2 setting b: action onTime (do same call as onDeinit )
result:some deals get but not all