I am having some difficulties trying to create Bands on a 5 min based on the 15 min data...

 

Has anyone seen this type of indicator posted? I have changed the the MovingBuffer[i]=iMA(NULL,15,BandsPeriod,BandsShift,MODE_SMA,PRICE_CLOSE,i); to be based off the 15 min chart and the MA is fine, but I can't seem to get the indicator to work for the seperate time frame overall.

I can get the bands fine during an EA by using NormalizeDouble(iMA(NULL, 15, 22, 0, MODE_SMA, PRICE_CLOSE, 0), Digits); But when ever I start in with the indicator, it seems to fall apart.

Thanks in advance.

Reason: