partiall implementation of algorithim trading runner