This is just an untested idea but, one could use IIF statement UP = IIf(C > O, (C-O), 0); //store UP value in UP variable array (if Upday then UPvalue = Close-Open, if not an UPday then = 0 U = EMA(UP, period); //smooth UP array
Can you post a link to this article so, I can uderstand the idea a bit better? Regards Richard --- In [email protected], shahariar <shahari...@...> wrote: > > But how U and D would be coded? it seems bitcomplex as for different stocks and different time periods the gains/lose's days would be different... > > thanks, > > shahariar >
