PureBytes Links
Trading Reference Links
|
How could I forget that 2000 = 100?
Here's a slight revision:
Var:
UpDays(0),
DnDays(0);
If Date = 1000101 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
> ------------------------------------------------------------------
>
>
|