PureBytes Links
Trading Reference Links
|
Guess you are saying that I can not control via afl code and have to do some kind of external thinge. Hi Fred, hope you are doing well. Two word reply. Short and sweet.
--- In amibroker@xxxxxxxxxxxxxxx, Fred Tonetti <ftonetti@xxx> wrote:
>
> External control
>
>
>
> _____
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
> Of bistrader
> Sent: Friday, March 12, 2010 3:17 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] INDIVIDUAL BACKTEST CODE QUESTION
>
>
>
>
>
> I run individual basktests on a watchlist, but do not want to get stats for
> tickers with history that do NOT go back to AA selected start date.
>
> I placed following in afl, thinking that it would force no trades or null
> for short history tickers in my watchlist. It does cause close to go to null
> in exploration, but backtest is unchanged.
>
> StartDate = BeginValue(BarIndex());
> //EndDate = EndValue(BarIndex());
> Range_Start = Status("rangefromdate");
> Symbol_Start = ValueWhen( BarIndex() == StartDate, datenum(), 1);
> diff = Range_Start - Symbol_Start;
> Close = IIf(diff < 0, Null, Close);
>
> Can you think coding afl method to get individual backtest results on a
> watchlist so that tickers with short history (i.e., no going all the way to
> AA range start date) are either null or infinity or otherwise identified?
>
> Thanks
>
> Bert
>
------------------------------------
**** 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/
|