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

RE: [amibroker] Re: *** Average of UP



PureBytes Links

Trading Reference Links




John and 
Fred,
<FONT color=#000080 
size=2> 
Thanks, your 
ideas work just great !
 
<FONT face="Vladimir Script" color=#000080 
size=5>Rick

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: johanskatt 
  [mailto:johanskatt@xxxxxxxx]Sent: Monday, July 21, 2003 1:33 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
  *** Average of UPRick,Instead of using an MA 
  function use SUM with a conditional 
  expression:Avg=Sum(UP*(ind>80),period)/Sum(ind>80,period);I 
  think this works, not sure though./Johan--- In 
  amibroker@xxxxxxxxxxxxxxx, "Rick Parsons" <RickParsons@xxxx> 
  wrote:> I have an indicator.  If the High of the indicator is 
  > 80 for the day, I want to:> > Calculate:  UP = 
  High - Open;> > Then I want to calculate a moving average of 
  UP.  But I only want a moving average of UP data when my indicator is 
  > 80.  If indicator for the day is not >80, UP should not be 
  added to the moving average.> > How do I do this?> 
  > Thanks,> > > RickSend 
  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.