"going down for the last five days" is a bit vague and could be
interpreted a number of ways. For example, you could require every day
to close lower than the previous day, or just to have the last day
lower than 5 days before, or to have the last day lower than any of
the previous 5 days, etc. Alternatively, you could specify the slope
of a moving average to be negative (eg. a 5 day MA). There are
numerous ways to indicate "going down", so you need to be more specific.

As far as coding it goes, once you have the condition, then you would
add it like this:

cond1 = <A2 going down condition>;
buy = Cross(A1, A2) AND NOT cond1;

That way a buy signal will only be generated if the going down
condition is not true.

Regards,
GP


--- In [email protected], "rijnaars" <[EMAIL PROTECTED]> wrote:
>
> I would like to add a condition to a by signal.
> 
> For instance buy = Cross(A1,A2)
> 
> now i do not want this signal to be affective if A2 has been going down 
> the last 5 days for instance.
> How do i add this condition?
>


Reply via email to