PureBytes Links
Trading Reference Links
|
Hi,
You need to use ExRem.
Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "Leif P" <peterson.leif@xxx> 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
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:
amibroker-digest@xxxxxxxxxxxxxxx
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/
|