Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, Quad, PeWi), 488 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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