New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Need help with a SCAN .... what is the difference between these two "Rank by ...." clauses ....

These clauses are part of a larger scan ....

"Rank by [[Close - EMA(50)] / EMA(50)] * 100" .... Advanced scan syntax says this a a correct clause .... but .... and it does work ....

"Rank by [[Weekly Close - Weekly EMA(50)] / Weekly EMA(50)] * 100" ....Advanced scan syntax say this is not a correct clause ....

Can anyone tell me why the Weekly version will not work? ....

Thanks ....

Best Answer

  • markdmarkd mod
    edited November 2016 Answer ✓
    Rank by [[weekly close-weekly EMA(50)] /weekly EMA(50)] * 100


    This seems to work. I don't think caps has anything to do with it. But the "rank by" statement seems to be very sensitive to spaces. This version just takes out the spaces between "weekly" and the brackets and the operators (-, /) and that seems to do the trick. I couldn't test it because I'm using my results page for something else right now - but it should work.

Answers

  • Thanks markd .... never considered the spacing would be a problem ....
Sign In or Register to comment.