Hi;

I think you can use : sell = 0;

Thanks.



--- In [email protected], "pmxgs" <[EMAIL PROTECTED]> wrote:
>
> Ok.
> thanks
> 
> --- In [email protected], "M. N. Busigin" <mbusigin-yahoo@>
> wrote:
> >
> > pmxgs wrote:
> > > I want to test a strategy in which I've defined my buy rules, 
but my 
> > > sell rules are only stops that are hit(profit target or stop
> loss), ie. 
> > > I will exit my long position if my profit target or stop loss
> level is 
> > > hit.
> > > When i want to backtest AB says that i have to define my selling
> rules.
> > > Since i've defined both profit and stop loss in backtesting
> settings, I 
> > > thought that i didn't need to wright a sell rule.
> > > How can I solve this?
> > > 
> > 
> > You can just set your sell rule to false.  It will evaluate your 
stops
> > separately.
> > 
> >     Buy = Cross( C, MA(C, 5) );
> >     Sell = False;
> >     ApplyStop( ..... );
> > 
> > 
> > 
> > Regards,
> > Matt
> >
>


Reply via email to