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

Re: [amibroker] Area between



PureBytes Links

Trading Reference Links

Hello,
 
Styles can not be 'dynamic' but colors can.
 
If both curves are positive, it is easy to plot style area between them:
 
Curve1=Foreign("AA","C");
Curve2=
Foreign("KO", "C"
);

Color=
IIf(Curve1>Curve2, colorGreen, colorRed
);
Curve11=
Max
( Curve1, Curve2 );
Curve21=
Min
( Curve1, Curve2 );
Plot( Curve21, "", -11, styleArea ); // -11 is special color for 'background'

Plot( Curve11, "", Color, styleArea
);



Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Saturday, June 04, 2005 5:29 PM
Subject: [amibroker] Area between

Is it possible to produce a code that draws stylehistogram or stylearea only between two curves?  My thought is a bit fuzzy, but it seems if the Y axis could be converted into an array then it might be possible to utilize stylenodraw in sections where the area should not be filled in.  Sound crazy?  If not, any thoughts about how this might be done?


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links