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

[amibroker] Re: Looking for an indicator to display higher-highs/lower lows



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "droskill" <droskill@xxx> wrote:
>
> Hey all - I'm looking for an indicator that produces something similar
> to this chart from Tradestation:
> 
> http://www.elitetrader.com/vb/attachment.php?s=&postid=1582014
> 
> I'm talking about the code to show a higher high and lower lows.
> 
> Any help appreciated!


Have a look at this. 

Credit and thanks to Kaveman back in 2003


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

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

col = IIf( Close > Ref( Close, -1 ), colorGreen, colorRed );
Plot( Close, "Price", colorWhite, styleCandle );

Plot( topH, "res", colorRed, styleDots+styleNoLine );
Plot( botL, "sup", colorBrightGreen, styleDots+styleNoLine );

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



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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