You are on page 1of 2

D:=DayOfMonth()<>ValueWhen(2,1,DayOfMonth());

HighPd:=If(D OR Cum(1)=2,H,Max(H,PREV));

LowPd:=If(D OR Cum(1)=2,L,Min(L,PREV));

LastH:=ValueWhen(1,D,ValueWhen(2,1,HighPd));

LastL:=ValueWhen(1,D,ValueWhen(2,1,LowPd));

LastC:=ValueWhen(1,D,ValueWhen(2,1,C));

L1:= (LastC-((LastH-LastL)*1.1)/12);

L2:= (LastC-((LastH-LastL)*1.1)/6);

L3:= (LastC-((LastH-LastL)*1.1)/4);

L4:= (LastC-((LastH-LastL)*1.1)/2);

H1:= (LastC+((LastH-LastL)*1.1)/12);

H2:= (LastC+((LastH-LastL)*1.1)/6);

H3:= (LastC+((LastH-LastL)*1.1)/4);

H4:= (LastC+((LastH-LastL)*1.1)/2);

h4;

h3;

h2;

h1;

l1;

l2;
l3;

l4;

You might also like