Hi, I've been trying to make this work all day as I thought it wouldn't be too hard but I just can't do it. So I was really hoping to get some help on this. Basically what I want is a strategy with the following constraints:
- Buy on Moving Average uptrend (current MA value higher than previous MA value) and close any active sell trade
- Sell on Moving Average downtrend (current MA value lower than previous MA value) and close any active buy trade
So there should always be a max of 1 open position. On some platforms you can make the Moving Average change color and I'm trying to make a strategy out of that. I think it works the way I described (current MA value higher/lower than previous MA value), but correct me if I'm wrong.
That's all there is to it. It'd be really appreciated, thanks a lot!