Forum

Changing values of variables using external file in common by EA that attached to 20 charts.

Hello everybody. I have a question. I have an EA and the EA has attached to 20 charts(for example). I want to use external file(includes values of variables) copied in COMMON folder that the EA check it every 5 minute(for example and this is possible by timer functions), and change values of

How to Set optimization time frames just 2 TimeFrames : M1 and M5 Or Convert int to TimeFrame

Hi All. I am using this code input ENUM_TIMEFRAMES TF = PERIOD_M1 ; in optimization by genetic I need to use just 2 timeframes: M1 and M5 How to set it? One way is to use this code: input TF = 1 ; AND then in genetic tester optimization use for TF : start = 1 >> Step =4 >>

Avoid Slippage without Pending Orders.

Hello Friends ,I have a question in mq5 EA coding: How could I open position when the price = A . without using Pending (limit / stop) order... I mean instantly , and let Max Slippage = 1 pip for example ... And avoid more slippage This question is for when the volatility is high OR execution time