I have created a Custom ATR.
If I load it in a daily chart gives a certain value.
I need to use this daily value in a multi time frame strategy. However, when I call the indicator from a 60 min time frame:
protectedoverridevoid Initialize()
{
Add(PeriodType.Day, 1);
}
protectedoverridevoid OnBarUpdate()
{
double Atr = MyATR(BarsArray[1],ATRAveragingPeriod)[0];
PrintWithTimeStamp("Atr: "+Atr.ToString());
}
It prints a similar but a diferent value to the value calculated directly by the indi loaded in the daily chart.
Why is this happening?
Thanks in advanced.
Comment