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

[amibroker] 'R' Channel



PureBytes Links

Trading Reference Links



as Dimitri, I create wl3 with 2 
tickers, the ^DJI and the ^DJI with the last 5 bars removed ( called test and 
attached)
use the code below ( provided by you) 

and see ( if I plot the ticker with 
longest history) 
 
<IMG alt="" hspace=0 src="jpg00020.jpg" 
align=baseline border=0>
 
 
 
 
 <FONT color=#008000 
size=1>
//Count tickers in watchlist function 
WatchlistNumber=3<FONT 
size=1>;
function CountTickersInWatchList( 
Listnum ) 
{ 
// retrive comma-separated list of symbols in watch list <FONT 
size=1>
list = GetCategorySymbols<FONT 
size=1>( categoryWatchlist, listnum ); 
Counter=0; <FONT 
color=#008000 size=1>// INITIALIZE COUNTER <FONT 
size=1>
for( i = <FONT color=#ff00ff 
size=1>0; ( sym = <FONT color=#0000ff 
size=1>StrExtract( list, i ) ) != <FONT 
color=#ff00ff size=1>""; i++ ) 

{ 
// TO COUNT BAR BY BAR YOU HAVE TO USE ARRAYS NOT SCALAR AND USE FOREIGN TO 
FIND OUT HOLES
Counter=Counter + ( NOT <FONT color=#0000ff 
size=1>IsNull( <FONT color=#0000ff 
size=1>Foreign( sym, <FONT color=#ff00ff 
size=1>"C", False ) ) ); 
} 
return Counter; 
} 
Plot(<FONT color=#0000ff 
size=1>Foreign(<FONT color=#ff00ff 
size=1>"~count",<FONT color=#ff00ff 
size=1>"v"),<FONT color=#ff00ff 
size=1>"<FONT face="Courier New" color=#ff00ff 
size=1>Composite"<FONT color=#000000 
size=1>,colorRed,1<FONT 
size=1>); 
Plot(CountTickersInWatchList( 
WatchlistNumber) ,"<FONT 
face="Courier New" color=#ff00ff size=1>Foreign fixup false<FONT 
color=#ff00ff size=1>",<FONT 
face="Courier New" size=1>colorGreen<FONT color=#000000 
size=1>,1<FONT 
color=#000000>); 
GraphXSpace=2<FONT 
size=1>;
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Dimitris 
  Tsokakis 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, February 28, 2004 3:33 
  PM
  Subject: [amibroker] Re: Re: empty scan 
  of a watchlist (?)
  
  Tomasz,
  Do not doubt I read very carefully your
  <FONT 
  size=2>http://groups.yahoo.com/group/amibroker/message/59548<FONT 
  size=2>?
  You wrote
  "According to my understanding the question was how to get 
  the same resultas you would get from AddToComposite, i.e. the number of 
  components on BAR BY BAR basis (exactly like ATC will do 
  that)"
  As it is obvious from the att. gif, the results are not the 
  same.
  The ATC solution falls from 3 to 2 for the last 5 bars, as 
  it should be
  [I repeat, I deleted the last 5 AAPL 
quotations]
  Your code gives an unexpected ziggy result. The population 
  of WL20 is 2 or 3 bar by bar !!
  Do you see it OK ? 
  Dimitris TsokakisSend BUG 
  REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  __________ 
  NOD32 1.637 (20040228) Information __________This message was checked 
  by NOD32 antivirus system.<A 
  href="">http://www.nod32.com
Attachment:

Attachment: Description: "Description: Zip compressed data"

Attachment: Description: "Test.zip"