Change StartDate/EndDate Between Cycles

Posted By: gamadeus

Change StartDate/EndDate Between Cycles - 01/31/19 18:12

Is it possible to run consecutive cycles over different time periods?
Something like StartDate = x + TotalCycle?

This works for many parameters but not the StartDate, persumably because that is loaded prior to the run function.

Or is that only possible via command line and thus Zorro S?
Posted By: AndrewAMD

Re: Change StartDate/EndDate Between Cycles - 01/31/19 21:14

Make a batch script. You can see how it is done here:

https://www.financial-hacker.com/whites-reality-check/
https://www.financial-hacker.com/boosting-systems-by-trade-filtering/

Note that you will need to download the 2015 script samples from the blog to get the batch script.
Posted By: gamadeus

Re: Change StartDate/EndDate Between Cycles - 01/31/19 21:32

Yeah I know that but passing variables from a batch file only works with Zorro S doesnt it?
Posted By: AndrewAMD

Re: Change StartDate/EndDate Between Cycles - 01/31/19 23:28

Correct, but look at what the batch script is doing instead of passing variables. Hint, hint! wink
Posted By: gamadeus

Re: Change StartDate/EndDate Between Cycles - 02/01/19 21:47

you mean calling individual scripts?
thats what im doing now anyway, manually
Posted By: AndrewAMD

Re: Change StartDate/EndDate Between Cycles - 02/01/19 21:54

If you look at the scripts being called, you will find that the bulk of the code is in a common sub-script, and the mini-scripts include the sub-script. It's a pretty slick workaround.
Posted By: gamadeus

Re: Change StartDate/EndDate Between Cycles - 02/01/19 22:07

oh, i didn't bother looking at the scripts. pretty slick, yes.
thanks for the hint!
© 2024 lite-C Forums