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

Re: addtocomposite & backtest



PureBytes Links

Trading Reference Links

OK,

is this loop correct, I have a doubt

Eq= Foreign("~CompEq", "X") > MA(Foreign("~CompEq", "X"),20);

Buy= DayOfWeek()==2 AND Eq;
Sell=Ref(ExRemSpan(Buy,3),-3);

AddToComposite( Equity(0,0),"~CompEq", "X", atcFlagResetValues |
atcFlagCompositeGroup | atcFlagEnableInBacktest );



> For example:
> AddToComposite( Equity(),"~CompEq", "X", atcFlagResetValues | 
atcFlagCompositeGroup | atcFlagEnableInBacktest );
> 
> Herman will be posting soon his excellent AddToComposite guide.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Stephane Carrasset" <nenapacwanfr@xxxx>
> To: <amibroker@xxxx>
> Sent: Monday, October 14, 2002 2:00 PM
> Subject: [amibroker] addtocomposite & backtest
> 
> 
> > Dear Tomasz,
> > 
> > May I have an example with addtocomposite and the backtest flag
> > 
> > Thanks
> > 
> > Stephane
> > 
> > 
> > 
> > Post AmiQuote-related messages ONLY to: amiquote@xxxx 
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > 
> > Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> > 
> > 
> >