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

[amibroker] Boolean question



PureBytes Links

Trading Reference Links




CS,
 
Here is - presumably - what you 
mean:
<FONT face="Courier New" color=#009300 
size=1>
// Assuming that the current stock has 15 to 25 bars in order to view the 
result for T1 = 20:
T1 = 20<FONT 
face="Courier New" size=1>;<FONT face="Courier New" color=#009300 
size=1>
// This is the complete term evaluating to true if correct:<FONT 
face="Courier New" size=1>
Z1 = ( (<FONT face="Courier New" color=#800080 
size=1>BarIndex() > T1) == 
true<FONT 
face="Courier New" size=1> );<FONT face="Courier New" 
color=#ff6820 size=1>
filter = <FONT 
face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
size=1>;
AddColumn(Z1, <FONT 
face="Courier New" color=#0000ff size=1>"Z1"<FONT face="Courier New" 
size=1>);
Best regards,
 
Udo
 
<BLOCKQUOTE 
>
  -----Ursprüngliche Nachricht----- 
  <DIV 
  >Von: 
  CS 
  An: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Gesendet: Montag, den 26. Mai 2003 13:40 
  Uhr
  Betreff: [amibroker] Boolean 
  question
  
  In AFL:
   
  T1=20;
  <FONT face=Tahoma 
  size=2>Z1=BarIndex()>T1;
  Does Z1 contain a boolean 
  response?
   
  Anyone know how to convert 
  Z1 to boolean?
   
  Thanks,
  -CSSend 
  BUG REPORTS to <A 
  href="">bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  <A 
  href="">suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: <A 
  href="">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












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.