Forum

Need help with iRSI

Hello Guys, I am trying to build a RSI EA using iRSI in MQL5. My strategy is simple. It should take a buy trade if RSI is crossing above level 30 and close buy trade when RSI crossing below level 70. But currenttly iRSI is taking trades on level 30 no matter if it is crossing level 30 from above or

How to add one green/red bar confirmation into an EA?

Hello Guys, I have created a simple RSI based EA. I would like to add one bar confirmation in it. For example, lets say that if EA would take a "BUY" trade when RSI is 60.....then instead of taking a trade right away.......EA should wait for one more candle and if it is also green then only EA

Is it possible to run EA on every pip instead of every tick?

Hi guys, We usually use ontick() function to make EA run on every tick . Or we use ontimer() to make EA run on x amount of time. Can we use something to make EA run on movement of 1 pip (or lets say x amount of pips)? Regards, Saurabh

How to run EA on every second instead of ontick?

Hi guys, I would like to run EA on every seconds or x amount of seconds instead on every tick basis. (onTick()) Is it possible? regards, Saurabh

How to set non tradable time in EA ?

Hi guys, I want my EA to avoid taking any trade from 21:00 to 01:00 (when spreads are high). Regards, Saurabh Barhate (P. S. - I am using MT5)

How do I force EA to process order on close?

Currently I am using following code to take trade on open position of new bar. //--- go trading only for first ticks of new bar if ( CopyRates ( _Symbol , _Period , 0 , 2 ,rt)!= 2 ) { Print ( "CopyRates of " , _Symbol , " failed, no history" ); return ; } if (rt[ 1

Supertrend EA for MT5?

I googled a lot but couldn't find simple supertrend EA for MT5. if anybody here has it then Please share if possible

How to make EA to take trade on "Open Price" instread of every tick? (MT5)

Hello Guys, In MT5 strategy tester, we get option to backtest on "Open price" model. But in reality, EA's take trade in every tick value instread of bar's open price. How can I make my EA take trade on "Open price" Instead on "every tick"? I have attached my ea here