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;
set(PLOTNOW);
set(PRELOAD|LOGFILE);

assetList("AssetsIB");
asset("SPY");

Price = priceClose();
contractUpdate("SPYa",0,CALL|PUT);
...
...
...

=========================