def AS(sym=None): global SYMBOLS UpdateStocks() if len(SYMBOLS) < 1 and sym is None: print("Not enough stocks loaded.") return # If a single stock symbol has been passed, only test that symbol. if isinstance(sym, str): print("Will test: " + sym) tester = PatProcess.Test(LoadData.historicalData(sym)) tester.parse() # Otherwise, test them all. else: for s in SYMBOLS[1:20]: print("Will test:" + s[0])