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

RE: [amibroker] *** Average of UP



PureBytes Links

Trading Reference Links




this is what I have used 
for similar thing

Rise = IIf<FONT 
size=2>(L<FONT 
size=2>>Ref<FONT 
size=2>(L<FONT 
size=2>,-1<FONT 
size=2>),1<FONT 
size=2>,0);
Fall = IIf<FONT 
size=2>(H<FONT 
size=2><Ref<FONT 
size=2>(H<FONT 
size=2>,-1<FONT 
size=2>),1<FONT 
size=2>,0);
CountRise = Sum<FONT 
size=2>(Rise,Period1);
CountFall = Sum<FONT 
size=2>(Fall,Period1);
<I 
><SPAN 
>Cheers<SPAN 
class=GramE>,<?xml:namespace prefix = st1 ns = 
"urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName 
><B 
><I 
><SPAN 
>Graham

<A 
href=""><FONT 
color=#008080>http://groups.msn.com/ASXShareTrading<?xml:namespace 
prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/>
<A 
href=""><FONT 
color=#008080>http://groups.msn.com/FMSAustralia

  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Rick Parsons 
  [mailto:RickParsons@xxxxxxxxxxxxxxx] Sent: Tuesday, 22 July 2003 
  1:08 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  *** Average of UP
  I have an 
  indicator.  If the High of the indicator is > 80 for the day, I want 
  to:
  <SPAN 
  class=940010317-21072003> 
  <SPAN 
  class=940010317-21072003>Calculate:  UP = High - 
Open;
  <SPAN 
  class=940010317-21072003> 
  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.
  <SPAN 
  class=940010317-21072003> 
  How do I do 
  this?
  <SPAN 
  class=940010317-21072003> 
  <SPAN 
  class=940010317-21072003>Thanks,
  <SPAN 
  class=940010317-21072003> 
  <SPAN 
  class=940010317-21072003> 
  <FONT face="Vladimir Script" color=#000080 
  size=5>Rick
   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.