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

Re: [amibroker] Simplified support resistance levels



PureBytes Links

Trading Reference Links



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 attemptedloops and other methods of differing complexity I pulled back to thesimplest 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 pointstop = 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 sectionGraphXSpace=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,Grahamhttp://groups.msn.com/ASXShareTradinghttp://groups.msn.com/FMSAustraliaSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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.