I am trying to reference a MAX() Value on a second time frame, what I have is below but I am getting compile errors. I was wondering if anyone had ideas how to get this working?
My code is:
(In Initialize):
Add(PeriodType.Day, 1);
Then called on bar update:
gapSize = MAX(BarsArray[1],High,barsSinceLastHigh + lookBackPeriod)[0] - MIN(BarsArray[1],Low,barsSinceLastHigh + lookBackPeriod)[0];
The error that I am getting is:
"No overload method for 'MAX' takes 3 arguments."
It seems to not like me adding the BarsArray[1], but there is not MAXs so am a bit stuck...
Thanks!!
Shane

Comment