Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, clint000, Grant, chsmac85, Martin_HH), 5,858 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Setting asset from the command line #450228
04/10/15 02:06
04/10/15 02:06
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
I can't seem to make the -a flag work when running Zorro from the command line. I thought this was fixed in version 1.28? This simple Unix script executes on whatever asset was last selected from the scrollbox, rather than looping through each asset as expected:

Code:
for i in AUD/CHF AUD/JPY AUD/NZD AUD/USD 
do
	cd "C:/Path/Zorro_1_28" 
	./Zorro -run ExportToCSV -a $i
	read outfile < <(echo $i | tr '/' '_')
	
	cd "C:/Path/Zorro_1_28/Data"
	mv export.csv C:/Users/Kris/Documents/MATLAB/SingleAssetHistoryDaily/"$outfile".csv
	
done



Even without the loop (that is, specifying a single asset instead of using the $i placeholder), Zorro still executes on the last-selected asset from the scrollbox.

Is this still a bug? Or am I doing something wrong?

Cheers

Re: Setting asset from the command line [Re: boatman] #450231
04/10/15 02:46
04/10/15 02:46
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
This command works fine for me. It selects the asset. The previous selection does not matter. The script operates on the asset matching the one that appears in the drop down. Everything lines up.
Zorro_1.28.3$ wine Zorro.exe -run hl -a AUD/USD
as does
Zorro_1.28.3$ wine Zorro.exe -a AUD/USD -run hl


Do you see Zorro 1.28 in the title bar?

Re: Setting asset from the command line [Re: GPEngine] #450345
04/13/15 03:00
04/13/15 03:00
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Thanks for the help GP. I do see Zorro 1.28 in the title bar. I still haven't gotten to the bottom of why the asset flag isn't working for me though. Maybe I will try using Wine instead of Cygwin, but I suspect there must be a simple problem on my end that I am just not seeing.

In the mean time, I added a few lines to my Unix script to update the asset via the Zorro strategy file using 'sed' commands to alter the strategy code for each iteration of the loop. This is doing the trick, but I'd really like to get to the bottom of this. I'll post my solution when I find it.

Thanks again for your help.


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