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

[amibroker] Re : Seward/Trading Basis/Power Scan



PureBytes Links

Trading Reference Links

What I'd bet you really want to do is not trade a stock until it's had at
least a certain amount of history. For instance, if you're running a
backtest, maybe you wouldn't trade a ticker for it's first 3 years, but
after that you would.

For that, try something like this, after your entry signals have been
calculated:

min_bars_history = 3 * 252; // for 3 years history minimum
BI = BarIndex();
Buy = Buy AND (BI >= min_bars_history);
Short = Short AND (BI >= min_bars_history);

Dave Merrill
  How do I set the exploration filter to exclude stocks with less than 5
years
  of history?

  I'm sure the answer is trivial, but I'm not having much luck.

  Thanks so much,

  Kerry


[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/