Use the LookBack function to set the initial price history period, see https://zorro-project.com/manual/en/lookback.htm

The best way to verify your code is by posting it with specific questions or issues.