This is for 15 minute - drop this AFL onto your 1 minute chart. 
Change "in15Minute" to "in5Minute" for 5min BBands.

Also check the Help documentation for "Multiple TimeFrames"

Hope this helps,
Alex

=============================================================

TimeFrameSet(in15Minute);

BTop = BBandTop(C,20,2);
BTop = Ref(BTop,1);                     // For some reason you need 
to do this: do a manual test
BBot = BBandBot(C,20,2); 
BBot = Ref(BBot,1);                     // For some reason you need 
to do this: do a manual test
BMid = MA(C,20);
Bmid = Ref(Bmid,1);                     // For some reason you need 
to do this: do a manual test

TimeFrameRestore(); 

Plot(TimeFrameExpand(BTop,in15Minute),"BTop",colorRed);
Plot(TimeFrameExpand(BBot,in15Minute),"BBot",colorRed);
Plot(TimeFrameExpand(BMid,in15Minute),"BMid",colorRed);


Reply via email to