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

[amibroker] Re: N-Bar stop questions



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "_sdavis" <_sdavis@xxx> wrote:
>
> I will like to have n-bar stops with different durations for long and
> short positions. The system also generates multiple entry signals
> without intervening exit signals. I want the n-bar stop to be n-bars
> after the last entry signal. In other words, if subsequent entry
> signals occur within the n-bar window, the subsequent entry signals
> should extend the life of the trade. Any clever way to do this
> efficiently?

BarsSince( Buy ) >= longNBarStop

should do what you want.


Tuzo



------------------------------------

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

<*> 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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto: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/