| 
 PureBytes Links 
Trading Reference Links 
 | 
I am running Osaka 1.05, AB 4.70 rc1.  When I output the table
contents I get a 42kb csv file with no numbers in it.  Just
this: 
Ticker,Score0,Close0,Score1,Close1,Score2,Close2,Score3,Close3,Score4,Close4,Score5,Close5,Score6,Close6,Score7,Close7,Score8,Close8,Score9,Close9,Score10,Close10,Score11,Close11,Score12,Close12,Score13,Close13, 
 
up to 2117.  
  
Btw my BarIndex is 2118, which makes sense, but no values in the
table.  I've modified this slightly from TJ's original with a few of
my own comments and changing the table id from "table" to
"id".  Any debug help would be
appreciated.     
Sid
  
Code:
  
 
osInitialize
();
  
List =
CategoryGetSymbols
(
categoryGroup,
11
);
// <-- change wl number
here
 
  
id=
osTabCreate
(); 
// returns table
id
  
 
// setup
columns
 
  
osTabAddColumn
(
"Ticker"
,
2,
id,
25
); 
  
for
( j =
0;
j < BarCount; j++ ) 
  
{ 
  
 
osTabAddColumn
(
"Score"
+j,
1,
id ); 
  
 
osTabAddColumn
(
"Close"
+j,
1,
id ); 
  
} 
  
 
// CALCULATING SCORES and saving them to the
table
 
  
for
(i=
0;
( ticker =
StrExtract
( List, i
) ) !=
""
;
i++) 
// From the list of symbols found
earlier.
 
  
{ 
  
SetForeign
(ticker);
  
 
 
osTabSetString
( ticker,
i,
0,
id ); 
  
score =
50-
RSI
();
// YOUR SCORE CALCULATION HERE
!!!!
 
  
 
for
( j =
0;
j < BarCount; j++) 
  
{ 
  
  
osTabSetNumber
(
abs
(
Nz(
score[ j ] ) ), i,
2 *
j +
1,
id ); 
//odd
cells
 
  
  
osTabSetNumber
(
Close[ j ], i,
2 *
j +
2,
id );
// even cells, for calculation of
average
 
  
} 
  
} 
  
 
// you can export for
debugging
 
  
osTabExport
(
"test.csv"
,
","
, id );
  
  
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
 
| Yahoo! Groups Sponsor | 
 
  ADVERTISEMENT
 ![click here]()  |     | 
 
![]()  |  
 
 
 
Yahoo! Groups Links 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
 
 |