Hi all, i am trying to scan with above requirement but i guess my script is wrong.
i am trying to find the last 21 days highest high compare to the last 50 days highest high.
if the last 21 days highest point is higher than the last 50 days highest point, program will return true and look for stock of such condition. Below is my script. may someone help.
def highest21days = highest(high[1], 21);
def highest50days = highest(high[1], 50);
def higherhigh = if highest21days > highest50days then 1 else 0;
plot scan = higherhigh;
i am trying to find the last 21 days highest high compare to the last 50 days highest high.
if the last 21 days highest point is higher than the last 50 days highest point, program will return true and look for stock of such condition. Below is my script. may someone help.
def highest21days = highest(high[1], 21);
def highest50days = highest(high[1], 50);
def higherhigh = if highest21days > highest50days then 1 else 0;
plot scan = higherhigh;