rMomentum always returns 0 when checking for peak/valley

Posted By: Tamas

rMomentum always returns 0 when checking for peak/valley - 11/22/17 22:40

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!
Posted By: jcl

Re: rMomentum always returns 0 when checking for peak/valley - 11/23/17 07:50

I confirm this bug. Please try the beta version from the Zorro download page. RMomentum is supposedly fixed in that version.
Posted By: Tamas

Re: rMomentum always returns 0 when checking for peak/valley - 11/23/17 09:00

thanks jcl!
Posted By: Tamas

Re: rMomentum always returns 0 when checking for peak/valley - 11/24/17 14:50

Hi Jcl,

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

Re: rMomentum always returns 0 when checking for peak/valley - 11/24/17 16:38

You can unlock any beta version to Zorro S.
© 2024 lite-C Forums