Re: [amibroker] How to show only last arrow.

2008-02-25 Thread wavemechanic
Looking at the code after it posted I see that lastvalue is not needed.  
valuewhen(..., ..., 1) takes care of that.

Bill
  - Original Message - 
  From: wavemechanic 
  To: amibroker@yahoogroups.com 
  Sent: Monday, February 25, 2008 8:29 PM
  Subject: Re: [amibroker] How to show only last arrow.


  crossup = cross(c, peakoneline); 
  x = lastvalue(valuewhen(crossup, barindex(), 1));
  plotshapes(iif(barindex() == x, shapeuparrow, null), colorgreen);

  Bill

  - Original Message - 
  From: "Mohammed" <[EMAIL PROTECTED]>
  To: 
  Sent: Monday, February 25, 2008 12:08 PM
  Subject: [amibroker] How to show only last arrow.


  > Hi,
  > 
  > I'm using this formula to plot arrow.
  > 
  > CrossUp = Cross(C,PeakOneLine);
  > PlotShapes( CrossUp * shapeUpArrow, colorGreen );
  > 
  > How can I show only last arrow?
  > 
  > Regards
  > 
  > 
  > 
  > 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
  > 
  > 
  > 
  > 
  > 
  > -- 
  > No virus found in this incoming message.
  > Checked by AVG Free Edition. 
  > Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 
12:19 PM
  > 
  >  


--


  No virus found in this incoming message.
  Checked by AVG Free Edition. 
  Version: 7.5.516 / Virus Database: 269.21.1/1298 - Release Date: 2/25/2008 
8:45 PM


Re: [amibroker] How to show only last arrow.

2008-02-25 Thread wavemechanic
crossup = cross(c, peakoneline);
x = lastvalue(valuewhen(crossup, barindex(), 1));
plotshapes(iif(barindex() == x, shapeuparrow, null), colorgreen);

Bill

- Original Message - 
From: "Mohammed" <[EMAIL PROTECTED]>
To: 
Sent: Monday, February 25, 2008 12:08 PM
Subject: [amibroker] How to show only last arrow.


> Hi,
> 
> I'm using this formula to plot arrow.
> 
> CrossUp = Cross(C,PeakOneLine);
> PlotShapes( CrossUp * shapeUpArrow, colorGreen );
> 
> How can I show only last arrow?
> 
> Regards
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 
> 12:19 PM
> 
>

[amibroker] How to show only last arrow.

2008-02-25 Thread Mohammed
Hi,

I'm using this formula to plot arrow.

CrossUp = Cross(C,PeakOneLine);
PlotShapes( CrossUp * shapeUpArrow, colorGreen );

How can I show only last arrow?

Regards