rrg daily turn

Hello
I’m trying to identify daily turns on RRG with a 0 to 90 heading (from a previous non 0 to 90 heading). Not getting any results when using this formula:
V1 = JDKRS().Heading ;
V2 = V1 >=0 and V1 <= 90;
V2 ChangeTo 1

I’m using “last bar” for date range and 1 day timeframe. Any advice on if this is the right code and any changes I can make? Thanks

Hi Manish,

That code looks good - could it be that your there were no results in the symbols you were scanning on? When using the S&P500 these 39 stocks passed on Friday after moving to 0-90°:

Capture