assume a declared variable has a zero value, you have to give it a
value before placing it in an equation.
Buddy
--- In [email protected], "Orrin Stevens Jr" <[EMAIL PROTECTED]> wrote:
>
> I do not understand how to handle a "float" variable. I coded the
following
> -- but it does not like the statement shown in bigger text. I am simply
> trying to loop through 30 days of opens and closes to accumulate a value
> that I will use later. Any ideas?
>
> output="Dans Prospects.lst";
> integer i;
> float j;
> For i = 0 to -29 step -1
> do
> j:= j + (open(i) - Close(i));
> next i;
> if Close(0) >= 15 and // At least a 15 dollar stock
> AvgVol(0,-29) >= 250000 and // The average volume is at least 250,000
> shares
> abs(close(0)-Open(0)) > (1*(j/30))
> then println Symbol: -10,",",Description:-44, ",",(open(0) -
close(0)):8:3,
> ",",(MovAvg(0,29,op) -
> MovAvg(0,29,cl)):8:3,",",Open(0):8:3,",",Close(0):8:3, ",",j/30:8:3;
>
> endif;
>
>
>
> [Non-text portions of this message have been removed]
>
SPONSORED LINKS
| Investment management software | Real estate investment software | Investment property software |
| Real estate investment analysis software | Investment software | Investment analysis software |
YAHOO! GROUPS LINKS
- Visit your group "quotes-plus" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
