Is there a way to change the default number of candles on a chart?

Yes, you need to change the Hotkey script for F1/F2 to default to a certain number of bars: F1: MinuteChart 1 1d; NumBar 30; F2: MinuteChart 5 1d; NumBar 24