While I haven't tested it, I don't think there's anything wrong with
that statement. It should just plot the value of your formula at only
the most recent bar - which means you wouldn't see anything except a
single dot, or nothing at all if it was null at that bar.

There could be numerous reasons why it's not giving your "desired
result", but I would guess it's possibly because your desired result
is not really as you've described it.

GP


--- In [email protected], "Vinay Gakkhar." <[EMAIL PROTECTED]> wrote:
>
> Dear GP,
> 
> Thanks for your help. But, it is not working.
> 
> I now wrote the following:
> 
> Formula1 = IIf(Cum(1)==BarCount, Formula1, Null);
> Plot ( Formula1 , " Formula1" , colorRed , styleThick );
> 
> It does not give me the desire result.
> 
> Did I write something wrong?
> 
> Best regards,
> 
> gakkhar
> 
> ------- Forwarded message -------
> From: gp_sydney <[EMAIL PROTECTED]>
> To: [email protected]
> Cc:
> Subject: [amibroker] Re: PLOTTING OUTPUT
> Date: Sun, 17 Jun 2007 08:14:52 +0530
> 
> Gakkhar,
> 
> Try adding the following statement before the plot statement:
> 
> Formula1 = IIf(Cum(1)==BarCount, Formula1, Null);
> 
> Then you shouldn't need to include the final "Null, Null, 1"
> parameters in the Plot statement.
> 
> Regards,
> GP
> 
> 
> --- In [email protected], "Vinay Gakkhar." <vgakkhar@> wrote:
> >
> > I am plotting output of my formula in the following way:
> >
> > Plot ( Formula1 , " Formula1" , colorRed , styleThick , Null, Null ,
> 1 ) ;
> >
> > But this gives me a full graph for the entire period for which I
> have data.
> >
> > I want to get only the last one bar of the output to be plotted.
> >
> > How to do it?
> >
> > Best regards,
> >
> > gakkhar
> >
>


Reply via email to