This is a NN, not a MA breakout type rule.
I am just reversing the bar order - no other changes. And Stock A is in a strong rally through the period, and therefore Stock AR is in a strong decline. I would expect the same performance because the only thing different is that the sign of the changes I feed to the neural net have flipped.
I have created a simple neural net with 1 input (20 day price change) on a stock A that go UP over time.
So you basically have a one input, one output NN.1 day forward change