If you're a TDAmeritrade user, recommend you download StrategyDesk. It has a back test tool but I don't know it's as powerful as other professional back test tool.
You can write your own using TD API (HTTPS) to get real time quote (up to minute) but you need to apply for an API access account.