Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 604 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1