if expo9>=expo9[1] then cumpos=(cumpos+{pdx14}1); else cumpos=0;VOLNEG=V; VOLPOS=0; CUMPOS=0; endif;
if expo9<expo9[1] then cumneg=(cumneg+{ndx14}1); else cumneg=0;CUMNEG=0; VOLPOS=V; VOLNEG=0; endif; /////////////////////////////////////////////////////////////////////////
Bruno quando calcoli sumpos e sumneg sulla charta 15 minuti su quanti periodi fai la cumulata? Grazie
ResponderEliminarvolp=PVI(C,9);
ResponderEliminarvoln=NVI(C);
op3=OP(volp,voln,add);
expo5=ExpSmooth(op3,5);
expo9=ExpSmooth(expo5,7);
if expo9>=expo9[1]
then cumpos=(cumpos+{pdx14}1);
else cumpos=0;VOLNEG=V; VOLPOS=0; CUMPOS=0;
endif;
if expo9<expo9[1]
then cumneg=(cumneg+{ndx14}1);
else cumneg=0;CUMNEG=0; VOLPOS=V; VOLNEG=0;
endif;
/////////////////////////////////////////////////////////////////////////
sompos=SUM(VOLPOS,50); somneg=SUM(VOLNEG,50);