It still gives the same result.

I think I wrongly described my problem. The code I included works nice in a manner of code readability but in my log file it looks like on the attached picture. I want to log each trade in separate rows and also print a header for my file in one row like a csv document (see picture). The problem is, that the code I included in the first post puts each word in new row and puts a "\r" characters after the comma.

Attached Files Annotation 2021-06-09 115945.pngAnnotation 2021-06-09 120821.png
Last edited by tomna1993; 06/09/21 10:08.