Well the answer was easier then I had anticipated although the code needs work!:
In my code I create an array called {pos} that captures buy, sell, short ( 1, 0, -1) I created a matrix and used changes in position to record relevant prices. Then fiddling with the plot tools, matlab will...