Need count of price in intraday

Need count of price in intraday in exploration

I want to count how many times yesterday close came in intraday 1min timeframe

yesterday_close = TimeFrameGetPrice( "C", inDaily, -1 );
start_of_day = DateNum() != Ref( DateNum(),-1);
how_many_equals = SumSince( start_of_day, C == yesterday_close );
2 Likes

Thanks for the code this is working in 6.20 version

can i get for 5.7 version if possible

@ravin see the documentation for the SumSince() function to get equivalent (slower) code.