see correct code //Id like to Plot hourly channel on 5 minutes chart like this //AND difference is only in first minutes every Hour .
TimeFrameSet( in5Minute ); // switch to 5 minute frame ck5=Close ; zak=(HHV(ck5, 2) -LLV(ck5,2))/ 2; TimeFrameRestore(); TimeFrameSet(inHourly); ckh=Close ; zak=(HHV(ckh, 2) -LLV(ckh,2))/ 2; TimeFrameRestore(); Plot( Close, "Price", colorWhite, styleCandle ); Plot(TimeFrameExpand(ckh+zak,inHourly)," ckh+zak",colorRed,8+32) ; Plot(TimeFrameExpand(Ckh-zak,inHourly),"ckh-zak",colorBlue,8+32) ; --- In amibroker@yahoogroups.com, "Pit" <pitba...@...> wrote: > > Hi > > Id like to plot hourly canal on 5 minutes chart like this > and difference is only in first minutes every hour . > > > ck=TimeFrameGetPrice( "c", inHourly, -1 ); > zak=(HHV(ck,2) -LLV(ck,2))/2; > > Plot(ck+zak,"",colorBlack,styleLine); > Plot(Ck-zak,"",colorBlue,styleLine); >