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

[amibroker] Study break not working



PureBytes Links

Trading Reference Links


I've found the problem, now I need the solution. 

The problem: if I search for break of support resistance, using code 
such as: 

     Above_SR = C > Study("SR");
     Below_SR = C < Study("SR");

     Buy = Above_SR;
     Short = Below_SR;

... this actually compares current price with the leftmost end of the 
study - so if it's a sloping trendline, it doesn't give accurate 
results. See an example at http://krop.cjb.cc/ANZstudy.png - all 
candles with close above the study should have a green arrow, but they 
don't unless they're above the start point of the line. 

The same problem occurs regardless of studyid (RE, SU, UP, DN...).  

The weird thing is that occasionally it does work properly - but 
mostly it doesn't. 

Looks like a bug in the program. Is there anything I can do? 

Thanks, 
Chris





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