Thanks wood this is exactly what i needed to get clearified
--- In [email protected], "woodshedder_blogspot"
<woodshedder_blogs...@...> wrote:
>
> rijnaars, first decide how to quantify rising. I'll get you started but you
> may not agree with my quantification of rising.
>
> MA5=MA(C,5);
> MA20=MA(C,20);
>
> Cond1=ref(MA20,-1)<MA20; //MA20 is lower yesterday than today (rising)
> Cond2=cross(MA5,MA20); //requires MA5 to cross above MA20
>
> Buy=Cond1 AND Cond2;
>
> You could use a longer lookback, requiring that the MA20 is higher today than
> it was 3 days ago, but the simplest definition of rising is that it is higher
> today than yesterday.
> Regards,
> Wood
>
>
> --- In [email protected], "rijnaars" <rijnaa@> wrote:
> >
> > if i want a buy signal for instance when the MA 5 is crossing MA 20 zone
> > but only want this buy signal when the MA is crossing a rising MA 20
> > in upwards direction.
> >
> > So not only must MA5 croos upwards but also must the MA 20 be rising
> >
> > how do i make this buy condition??
> >
>