I want to add a second time frame to my strategy. Say my primary time frame is 9 Range bars. I would like to backtest my entries on a shorter "time frame". For example 1 minute bars, or 2 Range bars.
How can I tell send parameters to my strategy program from the input window to add a Range period type with a 2 value, or a Minute period type and a 1 Minute value so it generates the correct Add() intruction?
In the case of the 1 Minute period type:
Add(PeriodType.Minute, 1);
Or in the case of the 2 Range period type:
Add(PeriodType.Range, 2);
I want the Minute, or Range to be a parameter such as: myPeriodType, and the value as myPeriodValue: Add(myPeriodType, myPeriodValue);
I haven`t been able to do it via variables or conditional statements because the Add() line goes in the Initialize() method and it's giving me a hard time.
Thank you.
Comment