I wonder how I could get the data which is used to do some graphs like
plotMAEGraph. I was thinking if there is a simple possibility to get it as csv for example.

I could visualize to track the status of each trade in a variable and write it into a file at the close, but is there a more elegant way?