Anyone help for this coding

can anyone help for this coding i want to identify market profile day types through 10 day ATR like if daily ATR of nifty 100 then divide daily ATR by 3,2, if first hours range in to 33-50 point then normal variation day. if first hour range more than 50 point then larger IB. if first hours range less then 33 then smaller IB
i want to display day types on chart and exploration.