Hi Spirit,
Thanks for the corrections, I tried them out line by line (plotted APrice, BPrice, BSpread etc) without the series bits and the script runs!
About that last part, do you know where I could find more information on when to use series or not? I checked the manual for examples, and sometimes I found scripts that had series in them (see here:
http://manual.zorro-project.com/tutorial_var.htm)
and also on forum posts that had code (for example here:
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=443791#Post443791) and (here:
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=476248#Post476248).
**To note, I've also been using the manual, specifically this to > (
http://manual.zorro-project.com/funclist.htm) but still trying to understand when to/when not to use.
Also, thanks to whoever moved the thread, I wasn't sure where to put it but hopefully this helps any new people with this stuff!