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

RE: [amibroker] Simplified support resistance levels



PureBytes Links

Trading Reference Links

Thanks Gary 
That makes it interesting as I have not yet tried the function function :) 
Do you just put the numbers you want into the intital function setting 

Eg  
function PivotHigh(2, 4)



Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: Gary A. Serkhoshian [mailto:serkhoshian777@xxxxxxxxx] 
Sent: Friday, 10 October 2003 11:43 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Simplified support resistance levels


Hi Graham,
I just added the ability to have variable right and left strength and
converted into a function.  Hope this saves you some work, and thanks for
all the posts and code you've contributed.
Regards,
Gary

//==========  PivotHigh(LeftStr, RightStr)  ============================
/*
SUPPORT & RESISTANCE LEVELS
Graham Kavanagh 9 Oct 2003
Returns High value of pivot
*/
function PivotHigh(LeftStr, RightStr)
{
//Find turning points
top = H == HHV(H,LeftStr+1) AND H == Ref(HHV(H,RightStr+1), RightStr);
topH = ValueWhen(top,H);
return topH;
}


Graham <gkavanagh@xxxxxxxxxxxxx> wrote: 
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



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. 



Do you Yahoo!?
The New Yahoo! Shopping - with improved product search 
Yahoo! Groups Sponsor



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. 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/ArdFIC/hP.FAA/ySSFAA/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/