merhaba,
aylık için
NW:=ROC(DAYOFMONTH(),1,$)<0;
x1t:=ValueWhen(1,NW=-1,Cum(1));
WH:=ValueWhen(1,Nw,Ref(HighestSince(1,Nw,H),-1));
WL:=ValueWhen(1,Nw,Ref(LowestSince(1,Nw,L),-1));
WCL:=ValueWhen(1,Nw,Ref(C,-1));
H5:=if(cum(1)=>x1t,((WH/WL)*WCL),0);
H4:=if(cum(1)=>x1t,((WH-WL)*1.1/2+WCL),0);
H6:=if(cum(1)=>x1t,(1.168*(H5-H4)+H5),0);
H3:=if(cum(1)=>x1t,((WH-WL)*1.1/4+WCL),0);
H2:=if(cum(1)=>x1t,((WH-WL)*1.1/6+WCL),0);
H1:=if(cum(1)=>x1t,((WH-WL)*1.1/12+WCL),0);
L1:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/12),0);
L2:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/6),0);
L3:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/4),0);
L4:=if(cum(1)=>x1t,(WCL-(WH-WL)*1.1/2),0);
L5:=if(cum(1)=>x1t,(WCL-(H5-WCL)),0);
L6:=if(cum(1)=>x1t,(WCL-(H6-WCL)),0);H6;H5;H4;H3;H2;H1;L1;L2;L3;L4;L5;L6
haftalık için
NW:=ROC(DAYOFWEEK(),1,$)<0;
x1t:=ValueWhen(1,NW=-1,Cum(1));
WH:=ValueWhen(1,Nw,Ref(HighestSince(1,Nw,H),-1));
WL:=ValueWhen(1,Nw,Ref(LowestSince(1,Nw,L),-1));
WCL:=ValueWhen(1,Nw,Ref(C,-1));
H5:=if(cum(1)=>x1t,((WH/WL)*WCL),0);
H4:=if(cum(1)=>x1t,((WH-WL)*1.1/2+WCL),0);
H6:=if(cum(1)=>x1t,(1.168*(H5-H4)+H5),0);
H3:=if(cum(1)=>x1t,((WH-WL)*1.1/4+WCL),0);
H2:=if(cum(1)=>x1t,((WH-WL)*1.1/6+WCL),0);
H1:=if(cum(1)=>x1t,((WH-WL)*1.1/12+WCL),0);
L1:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/12),0);
L2:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/6),0);
L3:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/4),0);
L4:=if(cum(1)=>x1t,(WCL-(WH-WL)*1.1/2),0);
L5:=if(cum(1)=>x1t,(WCL-(H5-WCL)),0);
L6:=if(cum(1)=>x1t,(WCL-(H6-WCL)),0);H6;H5;H4;H3;H2;H1;L1;L2;L3;L4;L5;L6
günlük için
NW:=ROC(DAYOFWEEK()><ref(DAYOFWEEK(),-1),1,$)<0;
x1t:=ValueWhen(1,NW=-1,Cum(1));
WH:=ValueWhen(1,Nw,Ref(HighestSince(1,Nw,H),-1));
WL:=ValueWhen(1,Nw,Ref(LowestSince(1,Nw,L),-1));
WCL:=ValueWhen(1,Nw,Ref(C,-1));
H5:=if(cum(1)=>x1t,((WH/WL)*WCL),0);
H4:=if(cum(1)=>x1t,((WH-WL)*1.1/2+WCL),0);
H6:=if(cum(1)=>x1t,(1.168*(H5-H4)+H5),0);
H3:=if(cum(1)=>x1t,((WH-WL)*1.1/4+WCL),0);
H2:=if(cum(1)=>x1t,((WH-WL)*1.1/6+WCL),0);
H1:=if(cum(1)=>x1t,((WH-WL)*1.1/12+WCL),0);
L1:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/12),0);
L2:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/6),0);
L3:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/4),0);
L4:=if(cum(1)=>x1t,(WCL-(WH-WL)*1.1/2),0);
L5:=if(cum(1)=>x1t,(WCL-(H5-WCL)),0);
L6:=if(cum(1)=>x1t,(WCL-(H6-WCL)),0);H6;H5;H4;H3;H2;H1;L1;L2;L3;L4;L5;L6
formüllerinin deneyebilirsiniz,
bilgilerinize