rMomentum?

Posted By: KahunaTrading

rMomentum? - 07/17/22 19:00

Trying to understand where this comes from... (C-Lite Newbie)
rMomentum?

From: peak, valley, crossOver, rising, falling, etc.

Modifies
rMomentum - Data movement in percent per time frame; indicates the 'sharpness' of the peak or valley.
Remarks:
For detecting only 'strong peaks' or 'strong valleys', compare rMomentum with a percent threshold.

Is there a discussion regarding rMomentum: where it comes from? how it's calculated? used? etc.

I only find a couple references in the manual, but it was included in the script I am using, and I don't understand what it is doing or where it came from.

Thank you!
Peace
;-)
Posted By: jcl

Re: rMomentum? - 07/19/22 07:20

rMomentum is the data slope at the time of the event. Example for peak():

rMomentum = min(Data[1]-Data[2],Data[1]-Data[0])/Data[0]*100.;
Posted By: KahunaTrading

Re: rMomentum? - 07/19/22 22:43

Thank you!
Posted By: Enivant

Re: rMomentum? - 12/19/23 14:19

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
© 2024 lite-C Forums