Problem with rising average as a condition

Very good morning, I am new here and although I have been studying and practicing Amibroker for a year now, I have a problem with this code.
As main condition I coded an upward moving average and as PositionScore a ROC.
The result can not be further from what I intend to code.
Thank you very much.


Post the code itself (as text, inside code tags), not screenshot of code. Make helping you easier, not harder.

Please follow this advice: How to ask a good question