Combining 2 indicators for signal in an EA

 

Hello world to everyone... new to the world of MT.  have downloaded MT5 and playing with MQL5.  I havent done a lot of programming in the past 10 years, so looking to reignite that fire.   I am also new to Forex.  I am trying to see if i can get an EA that can trigger when 2 indicators coincide.

Eg, 

On 4H.. Long if RSI >60 AND STOCH > 60 .. close when both hit 50.    


PS: This is an example for learning purposes only.. DONT try it at home :) 

Thanks in advance

 

https://docs.mql4.com/indicators/icustom

https://www.mql5.com/en/docs/indicators/icustom

Combined Use of Programs - Simple Programs in MQL4 - MQL4 Tutorial
Combined Use of Programs - Simple Programs in MQL4 - MQL4 Tutorial
  • book.mql4.com
It was said earlier that according to MQL4 rules trade functions cannot be used in custom indicators, that is why for automated trading Expert Advisors or scripts should be used. However, the resource-saving technology used for calculations in indicators (see Creation of Custom Indicators) is widely used when creating trading programs. In most...
This website uses cookies. Learn more about our Cookies Policy.