Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, kzhao, 7th_zorro), 739 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Writing data to log file #487129
01/25/23 11:28
01/25/23 11:28
Joined: Apr 2019
Posts: 53
Canada
A
aelagha Offline OP
Junior Member
aelagha  Offline OP
Junior Member
A

Joined: Apr 2019
Posts: 53
Canada
Hi there,

When I use printf("#..." or print(TO_LOG, ...) to write additional information to the "strategyname"_test.log file on the same lien as line #, date, time, close, I get an additional empty newline, see below. Is there a way to prevent adding the empty new line? I tried using different escape chars to get rid of it but no luck. thanks.

------------
[54078: Tue 23-01-24 19:21] (4018.75) O:4018.75 H:4019.00 L:4018.50 C:4018.75

[54079: Tue 23-01-24 19:22] (4018.75) O:4018.75 H:4018.75 L:4018.25 C:4018.75
-----------

Re: Writing data to log file [Re: aelagha] #487130
01/25/23 11:41
01/25/23 11:41
Joined: Apr 2019
Posts: 53
Canada
A
aelagha Offline OP
Junior Member
aelagha  Offline OP
Junior Member
A

Joined: Apr 2019
Posts: 53
Canada
NEvermind. Using TO_FILE instead of TO_LOG works and does not print the emplty new line.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1