hallo vbs - versuch es mal damit - ohne Gewähr und Kalaschnikof. Es gibt da aber sicher eine noch eine bessere Lösung.
calc sigma: [6,0.1,10,0.1,6,0.1,3];
calc offset: [0.85,0,1,0.1,1,0.01,3];
calc w0: EXP(-Power(0-FLOOR(offset*
, 2)/(2*Power(9/sigma, 2)));
calc w1: EXP(-Power(1-FLOOR(offset*
,2)/(2*Power(9/sigma, 2)));
calc w2: EXP(-Power(2-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc w3: EXP(-Power(3-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc w4: EXP(-Power(4-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc w5: EXP(-Power(5-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc w6: EXP(-Power(6-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc w7: EXP(-Power(7-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc w8: EXP(-Power(8-FLOOR(offset*
,2)/(2*Power(9/sigma,2)));
calc s0: w0*Ref(Close,-
;
calc s1: w1*Ref(Close,-7);
calc s2: w2*Ref(Close,-6);
calc s3: w3*Ref(Close,-5);
calc s4: w4*Ref(Close,-4);
calc s5: w5*Ref(Close,-3);
calc s6: w6*Ref(Close,-2);
calc s7: w7*Ref(Close,-1);
calc alma: If((w0+w1+w2+w3+w4+w5+w6+w7+w
> 0,(s0+s1+s2+s3+s4+s5+s6+s7+w8*Close)/(w0+w1+w2+w3+w4+w5+w6+w7+w
,Close);
alma