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

[amibroker] Simplified support resistance levels



PureBytes Links

Trading Reference Links

I have been looking at various ways to chart the support resistance elevels,
ultimately to incorporate into various trading systems. Having attempted
loops and other methods of differing complexity I pulled back to the
simplest of forms, price.
Now this is probably already shown somewhere, but will share it anyway.
Any comments appreciated

//SUPPORT & RESISTANCE LEVELS
//Graham Kavanagh 9 Oct 2003

//Find turning points
top = H==HHV(H,3) AND H>=Ref(H,1) AND H>=Ref(H,2);
bot = L==LLV(L,3) AND L<=Ref(L,1) AND L<=Ref(L,2);

topH = ValueWhen(top,H);
botL = ValueWhen(bot,L);

//Indicator section
GraphXSpace=5;
Plot( C, "C", colorLightGrey, styleBar+styleNoLabel );
Plot( topH, "res", colorRed, styleDots+styleNoLine );
Plot( botL, "sup", colorGreen, styleDots+styleNoLine );

Title = Name() + ", " + Date() + ", Support & Resistance Levels Support = "
+ topH + ", Resistance = " + botL ;


Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


------------------------ 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/