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

[amibroker] range pattern



PureBytes Links

Trading Reference Links

/*

IDNRn: an inside day with the narrowest range of the past nn days  

Edward Pottasch, nov 2004

*/

// number of days
nn = 3;
// range
rng = H - L;
// consecutive narrowing range
cons = barssince( rng >= ref(rng,-1) );
// find the pattern IDNRn
tt = cons == nn AND Inside();

Plot(C,"",colorGreen,64);
PlotShapes(shapeCircle * tt,colorWhite, layer = 0, yposition = (H+L)/2, offset = 0 ); 

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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