You have to shift static series manually.
Static series should be defined globally, not within the run function.

https://zorro-trader.com/manual/en/shift.htm


https://zorro-trader.com/manual/en/series.htm

Static series (defined with a negative length) are not automatically shifted, but can be shifted by script with the shift function. Script-shifted static series can be used for excluding certain time periods from indicators, such as out-of-market hours or periods with high or low volatility. They can also be used for shifting a series by arriving price ticks in the tick function. Not shifted static series can store additional asset-dependent variables. Usage examples can be found in the SpecialBars script or in the SAR code in indicators.c.

Last edited by danatrader; 10/04/20 13:39.