PureBytes Links
Trading Reference Links
|
And what was the first trading day this year? The 4th?
Let's do it this way:
Input:
FirstDat(1000104);
Var:
UpDays(0),
DnDays(0);
If Date = FirstDat 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");
---- 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
> ------------------------------------------------------------------
>
>
|