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

Re: [amibroker] Off Topic,Not Spam



PureBytes Links

Trading Reference Links

hello, 
 im hoping someone can help me write code for a scan i would like to 
do . I'm trying to capture,in a scan, a trading rage market ,that 
later breaks out to the upside.  how would you write the code to 
scan for the trading range part ? An example would be , in the last 
14 days the stock has moved basically sideways in say at or near a 3 
pt. range. Then broke out to a new high , which i have written out 
below , the breakout part of the code..
 
 thank you in advance, phil 

//tradingrange would be 7 bars back ,with in a 3 pt trading range

tradingrange = ????
breakout = High > Ref(HHV(High,7),-1);
Buy =  breakout and tradingrange ;




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