RRG Change to Leading Quadrant with NE Heading

I’ve tried doing this script in several different ways however the change to leading quadrant part works but it ignores the with north east heading part of the script (it includes all quadrant changes regardless of heading)

//Change to Leading Quadrant with North East Heading

//Change to Leading Quadrant 
c1=JDKRS().Quadrant ChangeTo 0;

//Set RGG Heading 
v1=JDKRS().Heading; c2 =v1>22.5 and v1<67.5;

c1 and c2

 

There was a typo in the first post. This is the script.

//Change to Leading Quadrant with North East Heading

//Change to Leading Quadrant 
c1=JDKRS().Quadrant ChangeTo 0;

//Set RGG Heading 
v1=JDKRS().Heading; 
c2 =v1>22.5 and v1<67.5;

c1 and c2

Hi Tim,

Your script works fine here - are you comparing the same benchmark and timeframe? Using daily data on the SPX these 9 met your criteria on Friday - all heading NE:

RRG

Hi Darren,

Scan settings are Last Week/1 day/Latest Match.

The ones outside the heading parameters are below.

Tim

Quadrant Change Scan

OK thanks. The watchlist is only showing the latest data, so those outside of North East must have passed the criteria earlier in the week but their direction has since changed. Set the scan to Last Bar instead and they will all be North East.