Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 2,029 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Swith off printing to message window in Trade mode #484431
10/25/21 10:55
10/25/21 10:55
Joined: Jul 2017
Posts: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
I would like to ask for a flag/way to switch off output to the message window in Trade mode.

watch("#...) and print (TO_LOG, "..") do output to both the window and the log.

Re: Swith off printing to message window in Trade mode [Re: Zheka] #484453
10/26/21 14:39
10/26/21 14:39
Joined: Apr 2008
Posts: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
Austria
A piece of advice, when you ask for such features, tell for what reason or in which situation you need them. They will then probably have a better chance. I can for instance not really see the advantage of no messages in the message window.

Re: Swith off printing to message window in Trade mode [Re: Zheka] #484455
10/26/21 17:29
10/26/21 17:29
Joined: Jul 2017
Posts: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
Agreed.

Any output, and especially to the message window, is a costly operation (I measured). This costs slippage in my systems.

Zorro is trading on a VPS which is (and to be) accessed rarely, so any "intended" output in the window has little immediate value.
For detailed review over the weekend the log is used.

IMHO, it is outputting to the window as well as web-related logging (see my other request) that should be treated as "features", rather than absence of them.

If there is a need to output smth to the window, there is a print (TO_WINDOW,...) for that.

Makes sense?

Re: Swith off printing to message window in Trade mode [Re: Zheka] #484461
10/27/21 07:00
10/27/21 07:00
Joined: Apr 2008
Posts: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
Austria
LOGFILE flag?

Re: Swith off printing to message window in Trade mode [Re: Zheka] #484462
10/27/21 10:41
10/27/21 10:41
Joined: Jul 2017
Posts: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
I re-read the manual and don't see how LOGFILE flag can help: I do want to log but without the unnecessary overhead of outputting to the window and WebFolder.

Can you pls expand on your suggestion?

Re: Swith off printing to message window in Trade mode [Re: Zheka] #484473
10/28/21 09:15
10/28/21 09:15
Joined: Apr 2008
Posts: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
Austria
I see, not setting LOGFILE will then not help. Guess if your strategy really has slippage issues, you must put your PC closer to the broker.

Out of curiosity, what costly operation have you measured with the message window?

Re: Swith off printing to message window in Trade mode [Re: Zheka] #484474
10/28/21 14:42
10/28/21 14:42
Joined: Jul 2017
Posts: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
Any io subsystem operation is a costly one. Time a script with/without LOGFILE set and with/without outputting to the message window. Both take quite some time and output to the message window is quite more so.

Regardless of how significant slippage issues are, it is quite reasonable to want to remove/reduce any "inefficiency" that exists on the path from a quote to a signal to an order.

All I am asking is just a simple way to switch off some unnecessary default logging.

+I want to be able to switch on/off the following:
Log\[Scriptname][Asset]_pnl.csv - a spreadsheet with the daily equity or balance curve, depending on the BALANCE flag.
Log\[Scriptname][Asset]_plot.csv - a spreadsheet with all curves generated with plot commands.
Data\[Scriptname][Asset]_pnl.dbl - a file containing a double array with the daily balance or equity values in ascending date order. Used for calculating the Cold Blood Index in live trading.

Log\[Scriptname][Asset].png - an image file with a histogram or chart, depending on plot commands. Prices in the chart are ask prices.
[Webfolder]\[Scriptname][Asset].htm - a web page displaying the trade status at the end of the simulation, as described under Trading.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1