Hey Herman

Thanks for your reply.

I see where it pays to be more specific. I have added random
conditions to your code to reflect what im trying to achieve with the
Max() Min() AND barssince() functions.  


P1=O>C;

P2=H>Ref(C,-1);

P3=L>Ref(C,-2);

P4=C>Ref(C,-4);

//final plots
sig1=  BarsSince(p4)=Max(BarsSince(p1),Max(BarsSince(P2),
Max(BarsSince(P3),BarsSince(P4))));

sig2=  BarsSince(p3)=Min(BarsSince(p1),Min(BarsSince(P2),
Min(BarsSince(P3),BarsSince(P4))));

can you see my syntax problem now?





Reply via email to