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

RE: [amibroker] Re: Syntax Question



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Bob...
<FONT face=Arial color=#0000ff 
size=2> 
I'm 
not sure if you are kidding or not.
<FONT face=Arial color=#0000ff 
size=2> 
It 
wouldn't matter if you had 100 buy statements in a row, only the last one will 
have any effect.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Unless, of course, you "and" or "or" the last one with the previous 
one.
<BLOCKQUOTE 
>
  <FONT face="Times New Roman" 
  size=2>-----Original Message-----From: Bob Jagow 
  [mailto:bjagow@xxxxxxxxxxx]Sent: Monday, May 05, 2003 5:55 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
  Re: Syntax QuestionLooks like only the last 
  assignment counts, Dimitris.Try----Buy = 
  IIf(Cum(1)%20,0,1);Buy = IIf(Cum(1)%42,0,1);----On the other hand, 
  there's always the chance that ----Buy = 
  IIf(Cum(1)%20,0,1);Do_it_now_Dammit;Buy = 
  IIf(Cum(1)%42,0,1);----could trigger buys every 20 days as well as 
  every 42 days.Regards,Bob-----Original 
  Message-----From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@xxxxxxxxx]Sent: 
  Monday, May 05, 2003 10:18 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] Re: Syntax Question> -----Original 
  Message-----> From: Sam Levy [mailto:slevy1220@xxxx]> Sent: 
  Monday, May 05, 2003 8:48 AM> To: amibroker@xxxxxxxxxxxxxxx> 
  Subject: [amibroker] Syntax Question> > > Is the 
  following correct?:> > If I want a buy signal if both of two 
  conditions are true, I would> code:> > buy=cond1 and 
  cond2;> > If I want a buy signal if either is true, I would 
  code:> > buy=cond1 or cond2;> > What is the 
  difference between those and:> > buy=cond1;> 
  buy=cond2;The main difference is that buy=cond1 or cond2;is 
  one-line code  andbuy=cond1;buy=cond2;is two-line 
  code.AFL is executed line by line.So, in the second case you 
  askbuy=cond1;// buy when cond1 is truebuy=cond2;// buy when cond2 
  is trueAFL will go to the next statement with the last info : 
  buy=cond2;Sometimes, this property is useful 
  :D=5;M=MA(H,D);PLOT(M,"",1,1);D=10;M=MA(H,D);PLOT(M,"",2,1);D=15;M=MA(H,D);PLOT(M,"",3,1);will 
  plot 3 different MAs, although only one is defined, namely M.On the other 
  side 
  theD=5;M=MA(H,D);D=10;M=MA(H,D);D=15;M=MA(H,D);PLOT(M,"",1,1);PLOT(M,"",2,1);PLOT(M,"",3,1);will 
  plot 3 MAs identical to MA(H,15)Dimitris 
  Tsokakis> I would be grateful if someone would 
  set me straight on this.> > 
  >       Yahoo! Groups Sponsor> 
  > > > > > Send BUG REPORTS to 
  bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> 
  -----------------------------------------> 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 Yahoo! Terms of 
  Service.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












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.