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

Re: Up/Down Ratio



PureBytes Links

Trading Reference Links

Gene,

Not sure what you're asking.  Maybe "formula" was the wrong word.  I should
have referred to it as "Quotes Plus scan" or "algorithm".  In any case, I'm
referring to the series of statements in my original post, and copied in
your reply, beginning with the line

output= ...

      and ending with the line

println symbol ...

The entire sequence of statements for the scan is quoted again below.

         Barry



> Barry, what is your QuotesPlus formula?
>
> Thanks,
> Gene
>




> output="updnratio.lst";
>
> float volup, voldn, updnratio;
> integer i, Startindex;
>
> Startindex := -49;
> volup := 0;
> voldn := 0;
>
> for i = Startindex+1 to 0
> do
>     if close(i) > close(i-1) then
>        volup := volup + vol(i);
>     else
>        if close(i) < close(i-1) then
>           voldn := voldn + vol(i);
>        endif;
>     endif;
> next i;
>
> if voldn > 0 then
>    updnratio := volup/voldn;
> else
>    updnratio := -99999;
> endif;
>
> println symbol , ", " , Description, ", ", updnratio;
>
>
>