Casoni
I have developed the following code, I want the exploration to return only those values which are lesser than 0.5%.
TimeFrameSet(inDaily);
PP = Ref( ((H + L + C)/3),-1) ;
Range = Ref((H-L),-1) ;
R1 = PP + PP-Ref(L,-1) ;
S1 = PP - (Ref(H,-1)-PP);
DC= Ref(C,-1);
TimeFrameRestore();
TimeFrameSet(inWeekly);
PW = Ref( ((H + L + C)/3),-1) ;
Range = Ref((H-L),-1) ;
RW1 = PW + PW-Ref(L,-1) ;
SW1 = PW - (Ref(H,-1)-PW);
PC= Ref (C,-1);
TimeFrameRestore();
r1=TimeFrameExpand(PP,inDaily,expandFirst);
w1=TimeFrameExpand(PP,inWeekly,expandFirst);
diffpoints = r1-w1;// This will show you diff in points
X = round(r1 - w1);
Chg =Prec((X/w1)*100,1); // This will show you diff in %
Filter=diffpoints AND chg ;// explore
AddColumn(diffpoints,"diff",1.2);
AddColumn(chg,"chg",1);
Thanks
Amit