Hi everyone,
I am trying to run a scan to find stocks that have gained less than 6% from the Open of the day to the Close of the day. I have included below the script I have tried using, but it is not returning the correct results. May you please help me with this? Thank you very much for your help.
I am trying to run a scan to find stocks that have gained less than 6% from the Open of the day to the Close of the day. I have included below the script I have tried using, but it is not returning the correct results. May you please help me with this? Thank you very much for your help.
Code:
def daygain = ((close-open)/open)<.06;
plot signal = daygain;