Forum

EA of SPX500 was trying to modify AUDUSD Order

Hi, I am using Metatrader 4 Build 1170. I encountered something very interesting and I am not sure if anyone encountered this before. I am running a few EAs concurrently on the same computer and basically the EAs are the same set of codes. However, I have used a very different OrderMagicNumber for

MQL4 cannot optimise in 1-min, 5-min and 15-min timeframe

Hi, Anyone encounter this problem before? The system cannot optimise the EA in a lower timeframe. It can optimise at 1-hour time frame for the very same EA. However, if I did not do any optimisation in a lower time frame, the backtest is able to come back with some results. When I optimise at lower

Price to stay above 100-bar moving average for 20 bars for EA

Hi, How do I code this? I want to have a system that will sell when price crossed below its 100-bar moving average and the price must stay above its 100-bar moving average for more than or equal to 20 bars Thanks in advance

Based currency different from the currency of the traded instrument

Hi all, I am not sure if I am posting this in the correct page. I faced a problem when come to code the risk management module . My deposit currency is in SGD and the instrument that I traded is in HKD. I like to allocate 2% risk for every trade that I take using MT4. For example, Hang Seng index is

Moving Average and Standard Deviation

I am trying to write an indicator that plot the volume, its moving average and its standard deviation . When I compile it, there is no error. However, when I try to plot it onto the chart, there isn't anything. What's went wrong? Thanks in advance. Below is the code. #property

Moving Average of a RSI and RSI

Hi all, I am trying to do my own programming in this indicator. I took the default RSI code from MT4 and made some modifications. However, I add in the moving average of the RSI code, the compiler seems ok but when I apply to the chart, there is only an RSI line. The moving average of the RSI is