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

Re: Sell x days after entry



PureBytes Links

Trading Reference Links

Mensur,

...Or you can use INACTIVITY STOP with a large number :
Example: 999 % within 10 days. If you don't encounter un 999 % change of
price in 10 days, the trade will be closed.

Pierre Tremblay


Roy Larsen a écrit :

> Mensur
>
> > does anyone know how to programm selling x days after entry?
> >
> > Thanks
> >
> > Mensur
>
> This should do it.
>
>   {Timed Sell}
> Pd:=Input("Timed exit delay periods",1,99,25);
> N:=Fml("PS Fractal Entry")>0; {your entry formula}
> Tr:=If(PREV<=0,If(N>0,1,0),
> If(BarsSince(PREV<=0)=Pd,-1,PREV));
> Tr=-1;
>
> Roy