Gamestudio Links
Zorro Links
Newest Posts
Error 072 & Orphaned Rogue Trade - Bug?
by DdlV
Yesterday at 04:09
Why history files are different since version 1.83?
by kvm
08/16/18 17:39
Stop, Trail etc
by AndrewAMD
08/16/18 15:00
Performance reporting showing Annual and monthly % returns
by jcl
08/16/18 11:09
Trade only within regular trading hours
by Jeff1228
08/16/18 10:18
Issue with inconsistent test results
by kvm
08/15/18 17:24
Access string content through another string
by ChrstphFr
08/15/18 11:30
AUM Magazine
Latest Screens
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
14 registered (mk_1, 3DCat, Michael_Schwarz, Angerbeer, alibaba, Ivan3333, LDM, 5 invisible), 441 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Ulenspegel, toto, FloMi, behr065, OptimusPrime
18027 Registered Users
Topic Options
Rate This Topic
#473058 - 06/11/18 20:39 Trouble using Asset selection from the drop down menu
SBGuy Offline

Registered: 05/27/18
Posts: 40
This should be an easy one for you more experienced Zorro folks.

I'm having a really hard time trying to use the dropdown Asset selection in a more complex sample scripts, such as OptionSimple.c, which has a hardcoded asset selection, SPY in this case.

I know that the variable "Asset" contains the selection, but every time I try to use it, it just doesn't take it. I want to be able to change the asset selection, press Test, and run the script. Now, I have to change the hardcode in Edit, save to source code file, then Test.

Below is how most of the sample scripts start. What do I have to change to tell the script to use the dropdown menu Asset selection. I tried INITRUN and didn't work, maybe I'm not doing it right.

Many thanks!

void run()
StartDate = 20120101;
EndDate = 20151231;
BarPeriod = 1440;
BarZone = ET;
BarOffset = 15*60+20; // trade at 15:20 ET
LookBack = 1;
PlotMode = 0;


Price = priceClose();


#473059 - 06/11/18 20:44 Re: Trouble using Asset selection from the drop down menu [Re: SBGuy]
AndrewAMD Offline
Senior Member

Registered: 02/21/17
Posts: 339
Loc: Chicago
If you have this:


... then dropdowns are automatically ignored.

But if you leave these lines out, it depends on whether you have Zorro free or Zorro S.

If you have Zorro S, you can set up Accounts.csv to point to an asset list for every broker.

If you have Zorro free, you can set the drop down list by setting the AssetsFix.csv file.

More info here:
And the rest of the manual, it's all good. laugh

#473088 - 06/12/18 21:24 Re: Trouble using Asset selection from the drop down menu [Re: AndrewAMD]
SBGuy Offline

Registered: 05/27/18
Posts: 40
Ah yes, that did it trick.



Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

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