How about this -

In english:

Sell when -
1. the number of bars since purchase are greater or equal to the hold period
AND
2. the percentage change of the current close compared to the 1st close since 
purchase is < the minimum required increase


In psuedo amibroker:

Sell when:
Sell = BarsSince(Buy) >= HoldPeriod AND (C - Ref(C,- HoldPeriod))/ Ref(C,- 
HoldPeriod) < Min%Increase (e.g. +5%);

Cheers
S

--- In [email protected], "superboot74" <superboo...@...> wrote:
>
> Hi all,
> 
> Any ideas on how I might go about writing a time based exit? Trying to test 
> the following -
> 
> Exit when - stock hasn't risen by x% within y days
> 
> I have seen ApplyStop being used, but keen to use an alternative if possible.
> 
> Cheers
> S
>


Reply via email to