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

[amibroker] Re: How to draw a graph on certain bars only



PureBytes Links

Trading Reference Links

Great, now can anyone fiqure out how to plot a line during the last 2 
bars only?



--- In amibroker@xxxxxxxxxxxxxxx, "archstone2003" <archstone2003@xxx> 
wrote:
>
> Hi,
> 
> I asked the quesiton to Yahoo group because I didn't receivce the 
> reply from Amibroker support. Usually they reply really fast after 
I 
> asked them, but this time it was taking longer and I though they 
may 
> not have an answer. 
> 
> But afte I made the post I got the answer from them, and I would 
like 
> to share it with you as well. 
> 
> This is the core part of their reply: 
> 
> ======================================
> Simply use Null value for days when you don't want to plot:
> 
> array = IIF( MACD() < 0, MACD(), Null );
> 
> Plot( array, "Only MACD above zero", colorRed );
> 
> ======================================
> 
> Have a nice day!
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Jerry Gress" 
> <pleasenospamplease@> wrote:
> >
> > Hello,
> > 
> > Try using stylecloud, example below for some R/S zones:
> > 
> > 
> > _SECTION_BEGIN("Color");
> > PlotOHLC(R3,R3,R3a,R3a,"",r1color,styleCloud|styleNoRescale);//r3
> > 
> > 
> > 
> > Jerry Gress
> > Stockton, Ca.
> > 
> > -----Original Message-----
> > From: amibroker@xxxxxxxxxxxxxxx 
[mailto:amibroker@xxxxxxxxxxxxxxx] 
> On Behalf
> > Of archstone2003
> > Sent: Friday, August 17, 2007 1:23 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] How to draw a graph on certain bars only
> > 
> > Hi,
> > 
> > I want to draw something on the price pane, and I want to draw it 
> only 
> > when certain condition is met, i.e., I want to draw it for 
certain 
> days 
> > but don't want to show it otherwise.
> > 
> > Is there a way to do this?
> > 
> > One way would be to use the background color to draw it when I 
> don't 
> > want to show it, but how can I retrieve the background color in 
AFL?
> > 
> > Is there any better ways?
> > 
> > Thanks.
> > 
> > Wei
> > 
> > 
> > 
> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >  
> > Yahoo! Groups Links
> >
>




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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