--- In [email protected], "droskill" <[EMAIL PROTECTED]> 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 ;


Reply via email to