need amibroker afl afl to plot high/low of 1st weekly bar of the month.

#1
I want afl to plot high/low of 1st weekly bar of the month.

sample code written for 1st hourly bar is as below

TimeFrameSet(inHourly);
//Hs= SelectedValue(TimeFrameGetPrice( "H", inDaily, 0 ));
//Ls= SelectedValue(TimeFrameGetPrice( "L", inDaily, 0 ));

up=ValueWhen(TimeNum()==101459,H,1);
dn=ValueWhen(TimeNum()==101459,L,1);
TimeFrameRestore();
up1=TimeFrameExpand(up,inHourly);
dn1=TimeFrameExpand(dn,inHourly);
Plot(dn1,"dn line",colorBlue,styleDots);
Plot(up1,"up line",colorBlue,styleDots);


I want same code for weekly bar high/low
 

Similar threads