Surely the right values need to investigated. But it's just a loose thoughts thread.
----------------- prices & MA
Some trading systems depend on a price being above/below a moving average.
Most of the time the MA is calculated using Close.
The close of the bar constantly changes during the bar. That can sometimes be a problem. Especially on shorter timeframes. Try using Open. It's set at the start of the bar and obviously don't change during the bar. It will shift the MA a bit but it's result is just as good/bad as a Close based MA.
Also try High for a uptrend and Low for a downtrend. Again little diffrence with close, and the same problems, but the little diffrence probebly reflects the trend in a better way.