Try to test a strategy based on 5 minute bar while my current dataset is 1 minute. Since testing is massive, I try to compress 1 minute bar to be 5 minute csv files by a program before backtesting, but no idea to do that. Is there any example code which helps? Thanks.
Size:
Color:
See SetScaleCompressed(*) in the QuickRef and "Multi-Time Frame Analysis" in the WealthScript Programming Guide.
Size:
Color:
Thanks. It does help. :)
Size:
Color:
To support the forum, here is the code to compress bars. Actually it is much easier than my expectation.
It is used to convert 1 minute bar to 5 minute bar.
CODE:
Please log in to see this code.
Size:
Color: