PureBytes Links
Trading Reference Links
|
Is this what you were trying to do? I think it may work. (not checked)
C1 = H == ref(HHV(H,40), -2);
B2 = valuewhen(C1,barindex());
C2 = ref(H,-1) == highestsince(barindex()==B2);
Buy = C2;
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: tomacristian61 [mailto:ctoma@xxxxxxxxxxxxx]
Sent: Wednesday, 24 September 2003 12:48 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] HHV/Peak?
Hi everybody,
I am trying to figure out how to write the formula for something
like this:
- The market makes a two months high anywhere from 10 to 4 days ago
- then it goes lower for a few days
- then it makes a new 2-months high yesterday
I tried all kind of things using HHV and Peak functions, but nothing
came out of it?
Does anyone have an idea on how I could make this work?
(If I was not clear enough, I am trying to write the formula for
Landry's double top knockout)
Thanks,
Cristian
------------------------ 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
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
------------------------ 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
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|