#NEWLINE# def create_algo( self , code , filename = None , sim_params = None ) : #NEWLINE# #INDENT# if ( sim_params is None ) : #NEWLINE# #INDENT# sim_params = filename . sim_params #NEWLINE# #UNINDENT# return TradingAlgorithm ( script = code , sim_params = sim_params , env = self . env , algo_filename = filename )