[HELP] Calculate relationship between RSI and Momentum

 
[USING GOOGLE TRANSLATOR}
[contains attachment demonstrating what was said in the message below]
Hello friends,
I am having doubts in a part of the code of my robot.

In my strategy I use the RSI and superimpose the momentum. In RSI I only use the levels and the momentum line (as per attachment), if the momentum line is below 30 RSI signals me to buy, for example.

My question is: In the EA programming, how do I get the relation between the RSI and the momentum, EX: in the EURUSD momentum value 99.4246 is below the RSI level 30, in which case it should signal me .... but I need to find a way to calculate this relationship.


Note: In the image below the RSI line is red and the momentum is blue. I delete the red line, but I added the line only for understanding.



Reason: