Using For each Closed Trade with Write to file?
-
Anyone successfully used For each Closed Trade with Write to file?
Examples would be most appreciated. Haven't been able to find any.
Do they actually work?
-
this should working:

Condition should be something which is not triggered each tick, rather once per some time period or based on other events (you can place that into on Trade section and when trade is closed write that into file)
-
Thanks for your help.
Sadly, doesn't work on MT5. No errors. Quietly does nothing after log says the EA is running.

Doesn't work in a script either.https://fxdreema.com/shared/uLr74JeJ
Thanks.
-
give file name without path:

your file is located in Files folder (in MQL5 data folder)

-
Thanks. I tried that, but will try again.
I've been searching the whole system for the file without luck. No new files on the system after running it. No error messages.

Thanks.