SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Follies who wrote (2583)12/1/1997 2:57:00 PM
From: Carolyn S.  Respond to of 11149
 
Just from looking at some other people's scans I would guess you need an "=" sign in your first line, and maybe a "do" like:

for I=-1000 to 0 do

And if you really mean from 1000 (not -1000) to 0, then you also would need a "step -1" like:

for I=1000 to 0 step -1 do

Just a guess - my Quotes Plus has not arrived yet.

Carolyn S.



To: Follies who wrote (2583)12/1/1997 2:57:00 PM
From: Sean W. Smith  Respond to of 11149
 
Which Release Dale ????

If I am correct you have the latest in which case its:

for i=1 to 10 step 1 do
println;
next i;

Sean



To: Follies who wrote (2583)12/1/1997 3:03:00 PM
From: TechTrader42  Read Replies (1) | Respond to of 11149
 
From the "for loop example" in the scans in the new version:

output="test.lst";

integer j;

float f;

f:=0;

for j=0 to -9 step -1
do
f := f + Close(j);
next j;

println symbol , "," , f , "," , f/10;



To: Follies who wrote (2583)12/1/1997 4:33:00 PM
From: Follies  Respond to of 11149
 
Previous problem fixed, The "DO" is not in the FOR example in the help file.

Next problem, There is a problem with the output buffer not being flushed properly:

input="stocks.lst";
output="output.csv";
Integer I;
Float F1;
Float F2;
DaysToLoad(1200);
For I = -1000 to -20 step 1 do
F1 := (close(i) - EMovAvg(I,10,cl)) / EMovAvg(I,10,cl);
F2 := (close(i+20) - EMovAvg(I+20,10,cl)) / EMovAvg(I+20,10,cl);
println I,",",date(I),",",F1,",",F2;
next I;

Assume the stocks.csv file contains one stock, say MSFT.
The output file will be truncated early and not all the records will be there.
If you change the "-1000" to "-800" you get all the data.