PureBytes Links
Trading Reference Links
|
This seems to work.
Ed
/////// Drop into indicator builder///////
x=BarsSince(DateNum()==Ref(DateNum(),-1));
y=BarsSince(DateNum()==Ref(DateNum(),-2));
Hmax=Ref(HHV(H,x),-y);
Graph0=H;
Graph1=Hmax;
/////////////////////////////////////////
///Check in AA that ref(,-1) ignores weekend ///
x=BarsSince(DateNum()==Ref(DateNum(),-1));//
y=BarsSince(DateNum()==Ref(DateNum(),-2));//
Hmax=Ref(HHV(H,x),-y);
Graph0=H;
Graph1=Hmax;
Filter=DayOfWeek() == 1;
AddColumn( DateNum(), "DateNum", 1 );
AddColumn( Ref(DateNum(),-1), "DateNum", 1 );
/////////////////////////////////////////////
|