Hallo,

I still don't understand how "detecting only 'strong peaks' or 'strong valleys', compare rMomentum with a percent threshold." works.

In the manual is only this example:

function run()
{
vars Trends = series(LowPass(series(price()),1000),3);
if(valley(Trends))
enterLong();
if(peak(Trends))
enterShort();
}

So how I can change the threshold (in this example) or how an where I can change the rMomentum (which Zorro-script)?

I would be very pleased with an answer.
THX