So this is what I want to do. I want to use this as a way to see if there is any consistency in a stock price. A simple system would be to buy long on the close on Monday if c > c[1] and then sell at the close on Tuesday, but be able to buy again on Tuesday at the close if again c> c[1]. I would use this to help make a decision to buy with the signal from another system. I can set it to buy on Monday if c > c[1] and sell on Tuesday, then set it to buy on Tuesday if c > c[1] and sell on weds and continue with Wednesday and Thursday and Friday then add them all up but is just to much work. If a stock price increases say 70% of the time tomorrow after going up today it would give me confidence that a buy signal from another system would work out.