Write To File: Swing
-
From a link on Tutorial By User (FxDreema) I have extrapolated this fantastic listing for the calculation and use of the swing (ZigZag). I managed to plot the values (high - low) of the previous swing on the graph. In addition, the differential (Delta) of the two previous values was always shown on the graph.
Now I would like to back-test the EA, write a file, in .cvs format, which reports the differential (Delta) for each generated swing, in order to make some statistical processing on the .csv file, so generated.
This is the link, with the work to finish ...
https://fxdreema.com/shared/NPjU0bSibThanks to those who will help me, correcting my mistakes.
-
I think the "write to file" needs a specific file path, like "D:\Metatrader..."
I am too lazy to have ever figured it out, instead I have used my own dirty stop-gap solution:
Just write the variables to your mt4 journal tab, with fxdreema block "Log message". Then generate the .log file and use some other programs (notepad++, excel) to further arrange the data -
Thanks for the reply
For these things I'm pretty inexperienced.
Could you use the link I posted to write an example of what you say?
I would be very grateful; it is several days that I work on this listing and I still have not been able to get what I want.Thanks a lot
-
Like, just add these blocks to your current project:
The data will be in the journal now
Use notepad++ to open the .log file
Paste it to excel, the format will be messy at this point, we can use formula =RIGHT(C1;(LEN(C1)-51)) to pick only the interesting part to column L.
Hit Ctrl+enter to apply the formula to entire column.
I know, this is not optimal approach by any means, but it works in a pinch
-
Wow! You are the Man!
Many, many thanks.
I will try what you have indicated / programmed and I will let you know about the outcome. -