Thanks - this worked like a charm!

--- In [email protected], "Mike" <sfclimb...@...> wrote:
>
> Hi,
> 
> You need to use ExRem.
> 
> Buy = ExRem(Buy, Sell);
> Sell = ExRem(Sell, Buy);
> 
> Mike
> 
> --- In [email protected], "Leif P" <peterson.leif@> wrote:
> >
> > How can I use BarsSince(Buy) and BarSince(Sell) to prevent numerous Sell 
> > signals after (a) the first Buy when the Sell array is all zeroes, and (b) 
> > later Buy's when Sell is not all zeroes?  
> > 
> > Basically, I only want to plot one Sell marker per Buy marker.
> > 
> > There are two possibilities:
> > 
> > 1. If Buy has been triggered but Sell has not yet been triggered.
> > In this case, the entire Sell array is zero, and there is an exception 
> > thrown when using 
> > 
> > Sell = SellTrigger AND BarsSince(Sell)=0;
> > 
> > 2. A Buy and its associated Sell have been triggered.
> > In this case, BarSince(Sell)<BarsSince(Buy) will work.
> > 
> > Overall, how can I only specify a single Sell for each Buy.  By the way, 
> > LastValue(BarsSince(Sell)) is not helping any.
> > 
> > Thanks, LP
> >
>


Reply via email to