MQL4 and MetaTrader 4 - page 5

Hi everyone, I'm Matteo, I have a question about backtesting on MT4. I need to backtest an EA on different cross at the same time... ...for example an EA on EURUSD and the same EA on USDCHF starting from 01.01.2024 to 01.02.2024 with the same capital. Is it possible? Or, maybe, is possible make two
I'm got a C# DLL that calculates my trades for MT4. It is compiled as x86 and uses RGiesecke.DllExport for unmanaged code. So far so good, but I'm not able to call any other class libraries from it. As soon as I instantiate a class in an external dll file (which I manually copy into the Libraries...
Hi, I am trying to write code which determines which chart is currently on top, in MT4. For example, if an EA or indicator is running on a particular chart, how to determine whether the EA/indicator's chart is currently on top? I know that you can bring chart to top: ChartSetInteger(chartID,...
Dear friends I wrote an expert advisor in mql4, when I run in live account the expert put pending positions at wrong prices. I want to put two limit pending with 100pip distances to each other. in live account most of a time its work fine but some times it put both of them in same price. when I run
  MySIMPLE trading system  (670   1 2 3 4 5 ... 66 67)
********************************** New IDEA in MySiMPLE trading system : Scalp with RSI on Major Pairs :: indicator : +JoGET_MultiPairs+ :: ********************************** Hi, this is MySIMPLE Trading System, thanks to administrator and all master, I used your great indicators. --------HOW TO USE...
  Leaked memory  (6)
Hello, when running the code below MT4 prints: 2020.07.28 11:42:00.097 Class EURUSD,M1: 16 bytes of leaked memory 2020.07.28 11:42:00.097 Class EURUSD,M1: 1 object of type test left 2020.07.28 11:42:00.097 Class EURUSD,M1: 1 undeleted objects left #property strict void OnStart (){ test t =
Hello, I have a custom EA that works fine in the live market, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
For a long-term investment purposes and with a profit factor of 2. in M1, with 120 operations during one year. EURUSD only. Time from 2am to 9pm (Helsinki time). Yes or no? Thanks a lot
I am developing a kind of grid system on MT4. The lot sizes will be distributed in one area, increasing the lots for every new position. Requirements: 1) The system knows that can open at maximum x positions. ( x = 5 in the example below) 2) The system shall use a multiplier Z to increase the lot
Wondering if anyone has successfully made an EA that runs on the ByBit MT4 platform. I'm having issues using strategy tester with crypto pairs, getting the following errors: Tester: exchange rate cannot be calculated Tester: margin exchange rate cannot be calculated I'm guessing the issue has to do
Hi all, Im wondering if anyone can help, i have attached screenshots for reference however i am using the exact same account with the exact same data feed and have different fractals on my mobile app compared to my desktop app and im using the exact same indicator, can someone explain why this
Hello. Is it possible to create a button that when pressed behave like when you press the "draw rectangle" button but it gives you a rectangle of a certain color? Like create a button called "white" rectangle and when you press it then you can draw a white rectangle with your cursor, without having
Hello everyone, I need a help about coding. Actually, I am learning about coding and decided to make an expert advisor, but along the way I got stuck because it doesn't work well in MT4. I want to make an EA with following specifications: - To Buy or Sell when MA crosses. - When the opened Buy order
I have download the a new MT4 app from a new broker. but unable to log in to the MQL5 community. I used forum log in and reset password few time but nothing worked Any help or suggestion is welcome. Thanks
Is there any way to automate the process of strategy testing. l want to run multiple tests for various assets with different parameters of each and save the reports. Is there any native or third party api to write code and execute the tests automatically or can l write a script to do the whole...
I just purchased an EA and when I try to download it to the terminal and login, I get this message. Any help would be appreciated. Thanks
  OBJ_TREND  (3)
ObjectCreate ( 0 , "Low" , OBJ_TREND , 0 , iTime ( NULL , PERIOD_MN1 , 3 ),lowY, TimeCurrent (),lowY); ObjectSetInteger ( 0 , " Low" , OBJPROP_RAY , true ); ObjectSetInteger ( 0 , " Low" , OBJPROP_COLOR , clrRed ); ObjectSetInteger ( 0 , " Low" , OBJPROP_STYLE , STYLE_SOLID ;
  ILAN- Need Stoploss!  (24   1 2 3)
Hi everybody, I request you to kindly plz take out your precious time to code the stoploss in this version of Ilan. I like this version and used it in live account too. But sometimes when markets moves long direction it blows cause the stoploss is not working when set to certain level as well as it...
Hi, Im trying to change the iExposure indicator view from sub window to main chart window. I've already tried modifying the code from #property indicator_separate_window to #property indicator_chart_window, but still can't see the indicator in the main "chart" window. Any suggestion?  Here is the...
Hello, I've build a Server implementing some neuro-network functions and i want to communicate from an EA with this server. To do so, I implemented some socket-communication functions as an DLL but I got the following problem: - when calling the connect - function of WinSock via the DLL I always...
I am doing everything as normal but when I start MT4 on my laptop it deletes any ea’s that I have copied into the MQL4/experts folder. Seems to also happen with indicators as well. Everything was working fine on Friday but something happened over the weekend that has me stuffed. Things I’ve tried
I have written a code that I use to take profit in XAUUSD for 1 minute time frame. the problem with this EA is that it can make a profit when it follow the trend line, but when reversal came I keep taking losses, thus diminishing my profit. is there any way to fix my code ? As you can read from the
[Deleted]
  Terminal window missing  (22   1 2 3)
I have been running MT4 on my laptop for several months. All of a sudden the terminal window won't appear? i have tried re-booting and several different profiles, no go. Any ideas will be greatly appreciated! Thanks, Steve
  problem with iCustom  (11   1 2)
hi here I have a custom indicator , But when I use it in my expert 's backtest, I only receve maximum one signal ! and in the back test I only have maximum 1 trade (depending on start time of backtest ) !! here I have deleted the SendOrder to minimize code size , i only receive one print
Hi, I need help to create an EA base on the following terms EA will open trade base on chart M1, M5, M15, M30, H1, H4 and D1. EA will not open a new CYCLE of trade if the previous CYCLE is not close. Example:- M1-Sell, M5-Sell, M15-Sell, M30-Buy, H1-Sell, H4-Buy and D1-Sell EA will open sell...
  Initial Deposit  (14   1 2)
Is there a way to access the initial deposit in my EA?
Hello ; I want the value of S1Buffer in time frames lower than 15 minutes to be equal to its value in time frame 15 minutes, but currently the value of S1Buffer in lower time frames is not equal to its value in time frame 15 minutes At the same time, the rest of the buffers, which include
I keep getting an authorization failed message when I attempt to login to my account in MetaTrader 4. Please help
[Deleted]
Hello, I try since Friday to creat an EA that can open orders of 5 mintues expiration cause I will link it later to a Binary options plateform. I almost used all solution on this forum creat a datetime variable in order to use for closing the order: Exemple 1:  datetime et = Time[0]+(5*60); int...