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

Re: Days Up/Days Down Ratio (Year to date Indicator)...



PureBytes Links

Trading Reference Links


Off the top of my head (untested), for TS4, for year 2000:


Var:

UpDays(0),
DnDays(0);


If Date = 000101 then begin

  UpDays = 0;
  DnDays = 0;

End;

If C > C[1] then UpDays = UpDays + 1;
If C < C[1] then DnDays = DnDays + 1;

If DnDays > 0 then
Plot1(UpDays/DnDays, "Up/Dn");



This could be modified to reset every year, etc.




 ---- you wrote: 
> Looking for an indicator to spit out  Days Up/Days Down Ratio (YTD)..
> for the S&P 500, Yen and equities. I have seen a similar indicator which
> measures Up /Down Volume. Any one programmed the above already ?
> 
> Regards
> Shawn
> 
> 
> --
> ------------------------------------------------------------------
> Ricercar Fund /SA "Quarendo Invenietis"
> http://www.RicercarFund.com
> ------------------------------------------------------------------
> "It is not how right or wrong you are that matters, but how much money
> you make when right and how much you do not lose when wrong." ... George
> Soros
> ------------------------------------------------------------------
> 
>