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

RE: [amibroker] Question for QP users



PureBytes Links

Trading Reference Links

I think they use a complex formula called Hind Sight Indicator

Actually quite easy if you know how

Try this for a starter, it is an early version and the simplest of what I am
working on

myH = ( H>=Ref(H,-1) OR L>=Ref(L,-1) ) AND H>Ref(H,1) ;
myL = ( L<=Ref(L,-1) OR H<=Ref(H,-1) ) AND L<Ref(L,1) ;

TopLast = 1;
Top = 0;
Bot = 0;
for( i=1; i<Barcount-1; i++ )
{
 if( myH[i] && TopLast==0 )
 {
  Top[i] = 1;
  Bot[i] = 0;
  TopLast = 1;
 }
 else
 {
  if( myL[i] && TopLast==1 )
  {
   Top[i] = 0;
   Bot[i] = 1;
   TopLast = 0;
  }
 }
}

//Values of high & low pivot points
Hipiv = ValueWhen( top, H );
Lopiv = ValueWhen( bot, L );

Cheers,
Graham
http://groups.msn.com/asxsharetrading
http://groups.msn.com/fmsaustralia 

-----Original Message-----
From: Dominick [mailto:Dom2000@xxxxxxxxxxx] 
Sent: Thursday, 15 January 2004 9:03 PM
To: Amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Pivots


Hey programming guru's.  Look at these snapshots.

Sure would be a nice New Years's present and great act of kindness if 
you would show us how to do it.

TIA,

Dominick

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 Sponsor ---------------------~--> Buy
Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer
at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/ 



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