Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
rMomentum always returns 0 when checking for peak/valley #469577
11/22/17 22:40
11/22/17 22:40
Joined: Nov 2017
Posts: 17
T
Tamas Offline OP
Newbie
Tamas  Offline OP
Newbie
T

Joined: Nov 2017
Posts: 17
Can someone show me how to use rMomentum when checking for a peak/valley?
my code:

if(valley(SmoothPrice) ) {
plot("Price Bottom",price()+ATR(3),MAIN+TRIANGLE,GREEN);
printf("n Valley momentum: %d",rMomentum);
reverseShort(1);
}

This always prints 0. frown

Thanks!

Re: rMomentum always returns 0 when checking for peak/valley [Re: Tamas] #469579
11/23/17 07:50
11/23/17 07:50
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I confirm this bug. Please try the beta version from the Zorro download page. RMomentum is supposedly fixed in that version.

Re: rMomentum always returns 0 when checking for peak/valley [Re: jcl] #469583
11/23/17 09:00
11/23/17 09:00
Joined: Nov 2017
Posts: 17
T
Tamas Offline OP
Newbie
Tamas  Offline OP
Newbie
T

Joined: Nov 2017
Posts: 17
thanks jcl!

Re: rMomentum always returns 0 when checking for peak/valley [Re: Tamas] #469608
11/24/17 14:50
11/24/17 14:50
Joined: Nov 2017
Posts: 17
T
Tamas Offline OP
Newbie
Tamas  Offline OP
Newbie
T

Joined: Nov 2017
Posts: 17
Hi Jcl,

I have a Zorro S, would it be possible to get this rMomentum fix into ZorroS?
thx!

Re: rMomentum always returns 0 when checking for peak/valley [Re: Tamas] #469610
11/24/17 16:38
11/24/17 16:38
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
You can unlock any beta version to Zorro S.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1