PureBytes Links
Trading Reference Links
|
I use a scan for trendline breaks. I keep the trendlines in the
standard "price" pane, and give them a "Study ID" of "RE" or "SU".
Sometimes the scan works. other times it doesn't, even though
everything appears to be the same. Sometimes if I backtest, one
trendline (same pane, same stock) will give alerts and the other
won't. I've checked carefully that it's the right pane ("Price" from
the built-in indicators, and the Study ID is correct, but I can't find
what's wrong.
I hope someone can help! here's my code:
// start AFL code
BreakSU = Cross( Study( "SU" ), Close );
BreakRE = Cross( Close, Study( "RE" ) );
AlertIf(BreakSU , "sound ", "Break Support");
AlertIf(BreakRE, "sound ", "Break Resistance");
AddColumn(IIf(BreakRE OR BreakSU,BreakRE - BreakSU,Null) , "Br",1,
colorDefault,IIf(BreakRE ,colorPaleGreen,IIf(BreakSU,colorLightOrange,
colorDefault)) );
//I added a couple of simpler column commands to see if they made a
difference - but the results were the same:
// AddColumn(IIf(BreakRE,BreakRE,Null) , "BrRE",1,colorDefault,
IIf(BreakRE ,colorPaleGreen,colorDefault) );
// AddColumn(IIf(BreakSU,BreakSU,Null) , "BrSU",1,colorDefault,
IIf(BreakSU ,colorLightOrange,colorDefault) );
Buy = BreakRE;
Short = BreakSU;
Filter = BreakSU OR BreakRE; //*/
// end AFL code
Cheers
Chris
- using Amibroker 4.63.1 beta. (Was using v 4.60.2 - upgraded to 4.60.
4 then to latest beta version, but the problem is still the same)
------------------------ 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/
|