Gamestudio Links
Zorro Links
Newest Posts
IB - Stop order for options
by Petra. 01/19/21 10:52
Writing strategy DLL in C#
by AndrewAMD. 01/18/21 13:56
Training strategy - errors
by Petra. 01/18/21 12:14
question about View* Entity
by ratz. 01/16/21 23:18
Has anyone used LSTM?
by TraderTom. 01/16/21 22:41
Zorro vs Oanda: Lot sizes do not match
by Petra. 01/16/21 13:17
NOFILTER for Level Blocks?
by Dooley. 01/15/21 20:30
Printf list series is possible ?
by faustf. 01/15/21 17:26
AUM Magazine
Latest Screens
Scheherazade's Journey
Paradox Vector
The Space Between
Pogostuck: Rage With Your Friends
Who's Online Now
4 registered members (Petra, 3run, FLD, 1 invisible), 481 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
minimeken, TraderTom, babyrazia, copernico, jari
18574 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
printf() not printing when RULES is set #479506
04/03/20 09:21
04/03/20 09:21
Joined: Dec 2014
Posts: 179
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 179
Germany
I would like to see the output of printf() when RULES is set for debugging purposes. Bug or feature? I couldn't find anything in the manual about this behavior. Can I enable the output myself?

Code
function run() 
{
	set(RULES);
	printf("\nHello.");
}


If I click Train, I see nothing. If I click Test, I see:

Hello.
Hello.
Hello.
Hello.
...

Re: printf() not printing when RULES is set [Re: Smon] #479513
04/03/20 10:38
04/03/20 10:38
Joined: Feb 2017
Posts: 1,160
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,160
Chicago
That’s because printf is silent during Train mode. You can use print(TO_ANY,”...”) instead.

Re: printf() not printing when RULES is set [Re: Smon] #479517
04/03/20 13:07
04/03/20 13:07
Joined: Dec 2014
Posts: 179
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 179
Germany
Thank you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1