I get an error when I use Add() to include a different timeframe. I've checked a few sources but just can't see anything wrong with the syntax. Please could anyone help ?
protectedoverridevoid Initialize()
{
CalculateOnBarClose = false;
Overlay = true;
PriceTypeSupported = false;
ClearOutputWindow();
int MTFmulti = 3*Bars.Period.Value;
if (Bars.Period.Id == PeriodType.Day) Add(PeriodType.Day, MTFmulti);
if (Bars.Period.Id == PeriodType.Minute) Add(PeriodType.Minute,MTFmulti);
...
The error given is "No overload for method 'Add' takes '2' arguments"
Code "CS1501"
Comment