Yes the bar length depends on historical bars. You really need daily prices for the sma, not 1440 bars.