MT4 EA TEMPLATE

tops

Trader
Oct 7, 2023
7
0
17
Nigeria
Hello Guys

So I downloaded the ea template from the website some time ago and I've also been trying to learn some coding so I still lack proper skills but my issue now is I integrated some indicator in the ea and it looks kinda fine I didn't get any compilation error but the thing now is the ea is not taking any trades in backtest, also forward testing it is the same thing it's not taking any trades.
This is my first attempt at coding ea so any help will be appreciated
attached below are the indicator and the ea
 

Attachments

  • MQLTA MT4 Robot Template1.mq4
    71.3 KB · Views: 12
  • ALMA2.ex4
    18.2 KB · Views: 10

takeprofit

Newbie
Sep 23, 2024
6
0
2
72
Hi. I also downloaded the MT4 EA template to try to get a better understanding of coding. I'm trying to use it to create a simple MA Crossover and RSI EA. I've added the indicators (referencing your (Enivid) EA-2MACrossover_v1-0 code for the MAs) and the code compiles and shows the indicators working in the visual mode of the MT4 Strategy Tester. But no trades are taken in back testing...
Any help would be appreciated...
 

Attachments

  • MQL4 MT4 RSI+MA Crossover From EARNFOREX Robot Template Fix.mq4
    36.5 KB · Views: 3

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
Hi. I also downloaded the MT4 EA template to try to get a better understanding of coding. I'm trying to use it to create a simple MA Crossover and RSI EA. I've added the indicators (referencing your (Enivid) EA-2MACrossover_v1-0 code for the MAs) and the code compiles and shows the indicators working in the visual mode of the MT4 Strategy Tester. But no trades are taken in back testing...
Any help would be appreciated...
The conditions in the attached file look for simultaneous crosses between MAs and of the RSI. It wouldn't give any signal if the RSI crossed oversold/overbought level one candle later or earlier than MAs. Perhaps, that's the reason it doesn't take any orders?
 

takeprofit

Newbie
Sep 23, 2024
6
0
2
72
The conditions in the attached file look for simultaneous crosses between MAs and of the RSI. It wouldn't give any signal if the RSI crossed oversold/overbought level one candle later or earlier than MAs. Perhaps, that's the reason it doesn't take any orders?
That'll be it. I guess the MAs should simply be one above or below the other. Ideally I would like a previous number of candles count look-back for when a crossover took place, but that's way beyond my level at this time. Many thanks for your very fast response...