Hi all, I am a newbie. Just wondering what would the the best way to do this:
I want to compare the highs of the last 60 days to yesterdays high and if all of them are lower then I want to return the scan ?
Thanks,
David
Hi all, I am a newbie. Just wondering what would the the best way to do this:
I want to compare the highs of the last 60 days to yesterdays high and if all of them are lower then I want to return the scan ?
Thanks,
David
So from your description you just want to find out if yesterday high is highest high during last 60 days. Then it is just single function call
yesterday_was_highesthigh = HHVBars( High, 60 ) == 1;
Alternatively you can detect "current" bar highest high and use Ref() to refer to previous bar
yesterday_was_highesthigh = Ref( HHVBars( High, 60 ) == 0, -1 );