I have to issues that I have been unable to resolve myself:

1. It would be valuable to have access to the length of the history of each asset downloaded. When running assetHistory the number of bars is printed in the zorro panel, but can this value be retrieved or stored for use in the program? If so, how?

2. The Z8/Z9 strategy has a useful function incorporated. When pressing the train button key asset values are printed in the zorro window and a correlation chart is plotted. I would love to use the possibility of triggering such output functions when pressing the train button, but I have been unsuccesful to accomplish this by simply verifying with

if (is(TRAINMODE)) printf("...

or

if (is(TRAINMODE) && is(EXITRUN)) printf("...

So what needs to be done? Do I need to donwload the asset history again and calculate whatever I wish to print?

Thanks for any help.