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

RE: [amibroker] Re: Looking for HHV/LLV low code



PureBytes Links

Trading Reference Links

I work minute time frames and am playing with adaptive HHV/LLV indicators.
The idea is to "Reset" or "Adapt" the traditional HHV/LLV indicators to
prevent them from losing touch with the bars for too long a period. This can
be done by adding some code to stephane's looping example.

herman
  -----Original Message-----
  From: jism1992 [mailto:gdihia@xxxxxxxxxxx]
  Sent: Saturday, November 20, 2004 8:56 AM
  To: amibroker@xxxxxxxxxxxxxxx
  Subject: [amibroker] Re: Looking for HHV/LLV low code



  Herman,

  Can you please tell me how you use this AFL code. What time frame?
  intraday? Thanks.


  --- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
  <psytek@xxxx> wrote:
  > Thank you very much stephane and Dimitris! It is sure nice to wake
  up and
  > find the answer to my post; not one solution but two :-)
  >
  > herman
  >
  >
  >   -----Original Message-----
  >   From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@x...]
  >   Sent: Saturday, November 20, 2004 2:27 AM
  >   To: amibroker@xxxxxxxxxxxxxxx
  >   Subject: [amibroker] Re: Looking for HHV/LLV low code
  >
  >
  >
  >   Herman,
  >   According to the definition
  >
  >   hhv( ARRAY, periods )
  >   RETURNS ARRAY
  >   FUNCTION  Calculates the highest value in the ARRAY over the
  >   preceding periods (periods includes the current day).
  >
  >   we have to compare the current value to all the m previous values and
  >   save, in each comparison, the max[min] value.
  >
  >   m=10;
  >   x=HHV(C,m);xx=LLV(C,m);
  >   Plot(C,"C",5,1);
  >   h1=C;L1=C;
  >   for(i=1;i<m;i++)
  >   {
  >   h1=Max(h1,Ref(C,-i));
  >   L1=Min(L1,Ref(C,-i));
  >   }
  >   Plot(x,"HHV",1,1);Plot(h1,"HHV1",4,8);
  >   Plot(xx,"LLV",1,1);Plot(L1,"LLV1",7,8);
  >
  >   Dimitris
  >   --- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
  >   <psytek@xxxx> wrote:
  >   > Hello,
  >   >
  >   > would anybody have a low level afl looping implementation for the
  >   HHV()
  >   > and/or LLV() functions?
  >   >
  >   > Many thanks for any code you may have!!
  >   >
  >   > herman
  >   >
  >   >
  >   >
  >   > [Non-text portions of this message have been removed]
  >
  >
  >
  >
  >
  >   Check AmiBroker web page at:
  >   http://www.amibroker.com/
  >
  >   Check group FAQ at:
  > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
  >
  >
  >         Yahoo! Groups Sponsor
  >               ADVERTISEMENT
  >
  >
  >
  >
  >
  >
  --------------------------------------------------------------------------
--
  > --
  >   Yahoo! Groups Links
  >
  >     a.. To visit your group on the web, go to:
  >     http://groups.yahoo.com/group/amibroker/
  >
  >     b.. To unsubscribe from this group, send an email to:
  >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
  >
  >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service.
  >
  >
  >
  > [Non-text portions of this message have been removed]





  Check AmiBroker web page at:
  http://www.amibroker.com/

  Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


        Yahoo! Groups Sponsor
              ADVERTISEMENT





----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

    b.. To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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:
    http://docs.yahoo.com/info/terms/