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

Re: [amibroker] How to drawing a line on main chart?



PureBytes Links

Trading Reference Links

How about:

Sell = my_sell_signal AND (BarsSince(Buy) >= min_hold_bars);

That won't work if you're using rotational trading, because there aren't any
Sell signals.

Dave Merrill
  Is there an AFL function for backtesting that restricts trades to a
  minimum holding period? New mutual fund rules have 30, 60 and
  sometimes 90 day hold restrictions. Would like to account for this
  in backtesting.

  Thanks!
  -Eric.


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/