I have a screener that’s running well and I am looking to introduce a new line of code to give a percentage of how far the close is from the high of the day.
The screener already has five conditions. one that the stock must have: close > open.
My thinking is that the code will be the criteria to sort the filtered stocks.
My syntax is wrong and I can’t figure out where I’m going wrong. Basically if the close is the high, I want to return “Bull” to signify that, otherwise I’d like to see the percentage the close is away from the day’s high.
Any thoughts on where I’m going wrong? This is the first time I’ve tried an IF THEN ELSE statement.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue