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 frown](/ubb7/images/graemlins/default_dark/frown.gif)
Thanks!