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

Re: Sell x days after entry



PureBytes Links

Trading Reference Links

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