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

Re: [amibroker] A question



PureBytes Links

Trading Reference Links




Hi Dimitris,
 
With AB 4.43.2, Yahoo EOD data, and the Nasdaq 
100 stocks plus ^NDX in my Group 254, I also get my initial equity returned 
for the Equity version of your 'Select() indicator.
 
However, I do NOT get a bar graph for either the 
MACD or the Equity version with ^NDX as my selected symbol. (I do get 5.21987 on 
the Y-axis for the MACD version with ^NDX as the selected symbol)
 
And, when I select any other symbol in that group, 
I get:
 
<clip>
    Line 17, Column 
14:    return Rank ; 
 
}
 
No=254;
 
H0=Select(No);-------------^
 
Error 7.Subscript out of 
range  
<clip>
 
-john
 
 ----- Original Message ----- 
<BLOCKQUOTE 
>
  <DIV 
  >From: 
  DIMITRIS 
  TSOKAKIS 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, October 06, 2003 1:58 
  PM
  Subject: [amibroker] A question
  Using//Select the last MACD()function select( 
  listnum ){list = GetCategorySymbols( categoryGroup, listnum );Rank 
  = 0; for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ 
  ){SetForeign(SYM);E1=LastValue(MACD());Rank[BarCount-1-i] = 
  E1;}return Rank ; 
  }No=254;H0=Select(No);Plot(H0,"",2,2);I have a bar 
  graph of the last MACD() values.I did not understand why 
  the//Select the last equity()function select( listnum 
  ){list = GetCategorySymbols( categoryGroup, listnum );Rank = 0; 
  for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ 
  ){SetForeign(SYM);SetTradeDelays(1,1,1,1);BuyPrice=Open;SellPrice=Open;Buy=Cross(StochD(),30);Sell=Cross(70,StochD());E1=LastValue(Equity(1,0));Rank[BarCount-1-i] 
  = E1;}return Rank ; 
  }No=254;H0=Select(No);Plot(H0,"",2,2);did not gave me 
  the last equity() values. The output was 10,000 for all stocks [my initial 
  equity in settings].Any help appreciated.[my database is placed in 
  group254]Dimitris Tsokakis Send 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.