placing the orders above the previous day high is easy. I wrote an orderloader for IB that you could use. Exiting when a moving average is hit requires subscribing to the data stream, calculating average, placing correct order, handling that fill. Maybe the quantopian library can do it easily in...