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

Re: [amibroker] Selectedvalue(Null)=0?



PureBytes Links

Trading Reference Links




Appears so.
 
The whole thing came about because I needed to use 
SelectedValue(FN1) within an IF statement, since IF won't take 
arrays.
As in IF (isfinite(SelectedValue(FN1)))  
Plot(FN1,"FN1",2,1);
 
I was using the IF statement to find which FN1 to FN12 
variables were composed of valid data, and then plotting that data. Needed a 
conditional without an ELSE requirement.
 
If say, FN5 had no data (null) the IF would skip plotting that 
and go to FN6. When all FN1 to FN12 ended up being plotted, I saw that 
SelectedValue(FN5) returned 0 even if FN5 was null.
 
Anyway, no matter. I worked around it.
As in:
i=BarCount<FONT 
size=2>-1<FONT 
size=2>;
if(<FONT 
size=2>IsFinite(FN1[i])) <FONT 
size=2>Plot(FN1,StrRight<FONT 
size=2>(MD1,6),<FONT 
size=2>0,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN2[i])) <FONT 
size=2>Plot(FN2,StrRight<FONT 
size=2>(MD2,6),<FONT 
size=2>1,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN3[i])) <FONT 
size=2>Plot(FN3,StrRight<FONT 
size=2>(MD3,6),<FONT 
size=2>2,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN4[i])) <FONT 
size=2>Plot(FN4,StrRight<FONT 
size=2>(MD4,6),<FONT 
size=2>3,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN5[i])) <FONT 
size=2>Plot(FN5,StrRight<FONT 
size=2>(MD5,6),<FONT 
size=2>4,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN6[i])) <FONT 
size=2>Plot(FN6,StrRight<FONT 
size=2>(MD6,6),<FONT 
size=2>5,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN7[i])) <FONT 
size=2>Plot(FN7,StrRight<FONT 
size=2>(MD7,6),<FONT 
size=2>6,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN8[i])) <FONT 
size=2>Plot(FN8,StrRight<FONT 
size=2>(MD8,6),<FONT 
size=2>7,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN9[i])) <FONT 
size=2>Plot(FN9,StrRight<FONT 
size=2>(MD9,6),<FONT 
size=2>8,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN10[i])) <FONT 
size=2>Plot(FN10,StrRight<FONT 
size=2>(MD10,6),<FONT 
size=2>9,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN11[i])) <FONT 
size=2>Plot(FN11,StrRight<FONT 
size=2>(MD11,6),<FONT 
size=2>10,1<FONT 
size=2>);
if(<FONT 
size=2>IsFinite(FN12[i])) <FONT 
size=2>Plot(FN12,StrRight<FONT 
size=2>(MD12,6),<FONT 
size=2>11,1<FONT 
size=2>);
 
Thanks for your response Graham.
Corey Saxe
 
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=gkavanagh@xxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, November 22, 2003 2:44 
  PM
  Subject: RE: [amibroker] 
  Selectedvalue(Null)=0?
  I think Selectedvalue needs to be a variable that can be 
  read and reportedCheers,Graham<A 
  href="">http://groups.msn.com/ASXShareTrading<A 
  href="">http://groups.msn.com/FMSAustralia 
  -----Original Message-----From: CS [mailto:res1wgwl@xxxxxxxxxxx] 
  Sent: Saturday, 22 November 2003 9:11 PMTo: <A 
  href="">amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] Selectedvalue(Null)=0?Why is SelectedValue(Null) not 
  null?Thanks,Corey Saxe------------------------ Yahoo! 
  Groups Sponsor ---------------------~--> BuyInk Cartridges or Refill 
  Kits for your HP, Epson, Canon or Lexmark Printerat MyInks.com. Free s/h 
  on orders $50 or more to the US & Canada.<A 
  href="">http://www.c1tracking.com/l.asp?cid=5511<A 
  href="">http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM---------------------------------------------------------------------~->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 <A 
  href="">http://docs.yahoo.com/info/terms/ 
  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.