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

[amibroker] Re: Backtest Market Order



PureBytes Links

Trading Reference Links




Anthony, you dont need a loop. Use MACD to make 
calculatios easier... or call it the Anthony indicator ,,, or 
whatever.
 
MACD is difference of 2 moving avarages, so if you 
do MACD = MA1 - MA2'... you can track your parameters as you wish
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Anthony Faragasso 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Friday, March 05, 2004 6:36 
AM
  Subject: [amibroker] Need a loop ?
  
  Maybe someone can help with this....do I need a 
  loop 
   
  Lets say we buy when we have a cross of 2 moving 
  averages...
   
  Movingavg1=ema(c,10);
  Movingavg2=ema(c,20);
   
  buy=cross(movingavg1,movingavg2);
   
  Now, we only want to stay in the trade if the 
  difference between the 2 moving averages is greater than the previous days 
  difference....and that difference should be greater by min. .05.....if the 
  difference is less than this, the rise is slowing...possible change of trend 
  or consolidation ...
   
   
  Thanks
  Anthony
   
   
   
   
  ---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.583 
  / Virus Database: 369 - Release Date: 2/10/2004Send 
  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 
  


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








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.