MACD main line minus signal line value

 

Hi, I'm trying to get the EA to trade only when the MACD main line minus signal line value exceed certain value. Would the following code be correct? Thanks!

macd_main-macd_signal>0.0010

 

Assuming you have assigned the appropriate values to your variables and the code is inside an IF, it should be fine

V

Reason: