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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok