Range of first candle of each and every day

@mradtke hi sir this is my code let me know where iam wrong

//code to compare current day all candles ranges with prev day candle avgrange
FBR=ValueWhen(Day()!=Ref(Day(),-1),H-L);
wc = TimeFrameCompress( FBR, inDaily ); 
//allcandles=Ref(Day()!=Ref(Day(),-1),H-L);
wc = TimeFrameCompress( FBR, inDaily);
weeklyma = MA( wc, 5 );
weeklyma = TimeFrameExpand( weeklyma, inDaily);
PlotShapes(IIf(FBR>=weeklyma ,shapeHollowStar,shapeNone),colorGreen,0,L);

Moderator comment: you need to use CODE tags