1. Is it best to use the barsinprogress ==0 for multi-time frame instead of barsinprogress !=0?
1a.If using ==0 format and you want to check the 1 minute chart as well as other time frames, should you be including in your time frame code:
// Add a 1 minute Bars object to the strategy
Add(PeriodType.Minute, 1);
or is the 1 min. time frame automatically assumed under the ==0 format?
2. Where do you place an enterlong() code on a multi-time frame strategy? I want an entry to occur only when the strategy conditions exist on all timeframes simultaneously.
Should the enterlong() code occur only once at the end of the code after all if statements have been written, or should it occur after each and every timeframe's if statement?
Comment