[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ela code



PureBytes Links

Trading Reference Links

Var:    UpTiks(0),
            DnTiks(0),
            TikDiff(0);

{Initialize when?}

UpTiks = UpTiks[1] + UpTicks;
DnTiks = DnTiks[1] + DownTicks;
TikDiff = UpTiks - DnTiks;

{Plot?}


phil wrote:

> Hi List,
>
> I'm looking for an indicator that on price upticks adds tick vol to a
> previous total for price upticks only. And on price downticks adds tick vol
> to a previous total for price downticks only; then allows you to net the
> two.
>
> This would produce a total of three different outputs: one for uptick vol on
> price upticks only; one for downtick vol on price downticks only, and one
> for the net difference of the two.
>
> I'd also like to be able to change the number of bars in the analysis.
>
> Can anyone direct me to such an indicator please.
>
> TIA
>
> Phil