Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
rMomentum? #486296
07/17/22 19:00
07/17/22 19:00
Joined: Jul 2022
Posts: 3
Lomita
K
KahunaTrading Offline OP
Guest
KahunaTrading  Offline OP
Guest
K

Joined: Jul 2022
Posts: 3
Lomita
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
;-)

Re: rMomentum? [Re: KahunaTrading] #486297
07/19/22 07:20
07/19/22 07:20
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
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.;

Re: rMomentum? [Re: KahunaTrading] #486298
07/19/22 22:43
07/19/22 22:43
Joined: Jul 2022
Posts: 3
Lomita
K
KahunaTrading Offline OP
Guest
KahunaTrading  Offline OP
Guest
K

Joined: Jul 2022
Posts: 3
Lomita
Thank you!

Re: rMomentum? [Re: KahunaTrading] #487997
12/19/23 14:19
12/19/23 14:19
Joined: Apr 2023
Posts: 3
E
Enivant Offline
Guest
Enivant  Offline
Guest
E

Joined: Apr 2023
Posts: 3
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


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1