Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 927 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1