PureBytes Links
Trading Reference Links
|
Brusier,
Try this:
LSMA25 = LinearReg( Close, 25 );
mycolor25 = IIf(C<Lsma25, colorRed, 5);
Plot(LSMA25,"LSMA25", mycolor25,styleThick);
Plot(10,"ribbon", mycolor25 ,styleOwnScale|styleArea|styleNoLabel, - 0.5,
1000 );
CondRed= C < Lsma25;
CondGreen=C > Lsma25;
Red_to_Green=Ref(CondRed,-1) AND CondGreen;
Green_to_Red=Ref(CondGreen,-1) AND CondRed;
Filter=(Red_to_Green >0) OR Green_to_Red > 0;
AddColumn(C,"close",1.2,colorDefault,IIf(red_to_green,colorBrightGreen,IIf(g
reen_to_red,colorRed,colorDefault)));
Anthony
------------------------ 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/
|