|
|
Re: New Zorro version 1.74
[Re: ytc]
#470862
02/09/18 15:30
02/09/18 15:30
|
Joined: Sep 2017
Posts: 235
Hredot
Member
|
Member
Joined: Sep 2017
Posts: 235
|
Recently, when back-testing strategies with multiple assets I have experienced the following issue with the newest Zorro version from the download page:
When I start a new strategy file and plot some graphs for the various assets everything seems to work fine. Then after I close zorro and later return for a new session, the script does not perform my plot commands any more (it only shows the first default candle plot of the most recently selected asset). Obviously, the code is still the same between shutting down and restarting. Therefore, since it was plotting just fine before shut down, I am certain that this is not an issue with my code.
I have experienced this issue twice already, starting new strategy files and then finding that they won't plot anymore after I shut down and come back.
Last edited by Hredot; 02/09/18 15:33.
|
|
|
Re: New Zorro version 1.74
[Re: jcl]
#470904
02/12/18 14:17
02/12/18 14:17
|
Joined: Sep 2017
Posts: 235
Hredot
Member
|
Member
Joined: Sep 2017
Posts: 235
|
jcl: Actually, thanks to Sphins suggestion to this question , adding the following to the top of the run routine fixed the issue here as well:
set(LOGFILE+PRELOAD+PLOTNOW);
setf(PlotMode,PL_ALL);
See the topic I linked to for a code snippet that causes trouble without the above command. Any chance Zorro could make the "PL_ALL" mode the default behavior? I just figure - when a user goes through the trouble of typing in a plot command, it is sensible to expect Zorro to actually execute it, right? Having to add an extra non-trivial configuration command to the Zorro script to tell Zorro that you ABSOLUTELY CERTAINLY want to see the plots you just asked for is a bit silly. Would you agree? In any case, in my humble opinion Zorro would be much more noob friendly if extra commands were required to *hide* certain plots, instead of to *display* them.
Last edited by Hredot; 02/12/18 14:21.
|
|
|
|