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

[amibroker] Re: End Plot



PureBytes Links

Trading Reference Links

Terry

That extra "a" must have been added when i posted , it isnt in my
code. I figured out the problem ,i just needed to add 1 line 
VS = Flip(C > bb, C < aa);
 
and it works correctly now.

thanks for the help.

andy



--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
>
> It seems your first line should be a = HHV and not aa = HHV, otherwise I
> don't see what you are not getting. The plot of Vstop/Vsbot are being
> suppressed according to your code. I fixed the first line and added a
> price plot for reference:
> 
> a = HHV(C,9);
> b = LLV(C,9);
> aa = a - (ATR(9) * 2.5);
> bb = b + (ATR(9) * 2.5);
> 
> Vstop = IIf(C > aa,aa,Null);
> Vsbot = IIf(C < bb,bb,Null);
> 
> Plot (C, Name(), colorBlack);
> Plot (Vstop,"VS",colorRed);
> Plot (Vsbot,"VS",colorGreen);
> 
> --
> Terry
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of trader11705
> Sent: Saturday, January 21, 2006 13:27
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: End Plot
> 
> Hello Terry,
> 
> using null got me a little closer,i am getting line breaks  but it
> still isnt plotting correctly. i am pretty new at this so its trial
> and error.
> 
> aa = HHV(C,9);
> b = LLV(C,9);
> aa=a-(ATR(9)*2.5);
> bb=b+(ATR(9)*2.5);
> 
> Vstop=IIf(C>aa,aa,Null);
> Vsbot=IIf(C<bb,bb,Null);
> 
> Plot (Vstop,"VS",colorRed);
> Plot (Vsbot,"VS",colorGreen);
> 
> Thank you 
> 
> Andy
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
> >
> > Try a conditional and set it to Null where you want no plot. Something
> > along these lines.
> > 
> > Plot(IIf(VStop > C,Null,VStop),IIf(VStop > C, colorGreen...
> > 
> > --
> > Terry
> > 
> > -----Original Message-----
> > From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> > Behalf Of trader11705
> > Sent: Saturday, January 21, 2006 07:55
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] End Plot
> > 
> > Hello,
> > 
> > Is there a way to stop a plot line and start it in a different place
> > on the chart. i am plotting a Volatility Stop and i want it to flip
> > above and below the price when the bar closes above and below the VS
> > line.
> > 
> > thanks
> > andy
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 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
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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