MQL4 and MetaTrader 4 - page 8

Here is a step by step guide for buying, installing, testing and using a Metatrader 4 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
Hello everyone. I have this code which works perfectly for me when testing it with EURUSD.a. However, when doing it with EURUSD I get error 131. It should be noted that I use the Pepperstone broker. Thank you! //+------------------------------------------------------------------+ //|
Hi, I'm looking for a simple martingale EA that would reverse the BUY and SELL signals using the martingale method and when it hits for example BUY take profit it would start with BUY signal. For examle it would BUY 0.1 lots, stop lose, SELL 0.2 lots, SL, BUY 0.4 lots, SL, SELL 0.8 lots, TP and then...
Hi, I can't load/use my purchased and free indicators "downloaded from MQL5 Market" on my MT4 charts. I used to use them for years without problem. But I can load/use them on my VPS. What can I do in this case? Thank you
[Deleted]
I've been trying to install an indicator I purchased from the market place on MT4. The indicator shows up on purchases but when I click install, I login, then it does not install. When I go to terminal I get an error that says "MQL5 Community Authorization failed". Anyway to fix this, step by step
double OnTester () { int tester_method= 1 ; double ret= 0.0 ; if ( TesterStatistics ( STAT_MIN_MARGINLEVEL ) < 100 ) return - 1001 ; } } when compiling, there is no error, but in strategy tester the value of TesterStatistics ( STAT_MIN_MARGINLEVEL ) is always zero. does OnTester()
  Elliot Wave EA  (41   1 2 3 4 5)
Hi, I have been testing this Elliot wave EA for the last 2 days. The results are good especially for the market conditions this past 48 hours. I have asked the permission of the author to post it here, the original thread can be found here
``` double Total_Current_Risk() { double res = 0 ; for ( int i = 0 ; i < OrdersTotal (); i++) { if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES) && OrderStopLoss() != 0 ) { double m_point = MarketInfo(OrderSymbol(), MODE_POINT); double m_lotstep =
I have a credit MT4 account. However my EA does not work because it seems that the way Meta has a credit allocated cannot be configured with an EA. Does anyone have experience with this
hello all I've been trying to send a webrequest from mt4 to Telegram to send a message with the minimum supported html, eg bold, some emoticons, italics via parse , parsemode2, html but all not working, I receive message 400 obviously the raw text works and all mt4 settings are correct; can someone
Hello I have a problem on an indicator. It works on Testing chart but not on PD chart. My indicator calculates the difference between the close() and a value (named open0 in my code) which changes at certain times (beginning of the day, open hour FRA40 and open hour US30). I thought this indicator
So my other two brokers work fine. Even changed the password with the recovery. Why would my password not work with the new broker? Yes I'm talking about the mql5 password in Mt4 Thx
I have a volume indicator I would like to share here which displays No Supply and No Demand indications when confirmed, however I would like for it to show the indications before confirmation/instead of waiting for confirmation if possible? I tried to do it myself but to be honest I am not sure how
when i try to update my EA i get this error and my metaeditor version build is in the picture: this is first time i see this error
  Order Management  (4)
I am learner, Iwant to know that how to solve the repeating order. Pic attached.Please give me a code
Hi I am using MT4 web terminal (as I can't download MT4 for desktop it always downloads MT5 ). The 'Navigator' window is missing - CTRL+N doe not bring this up (it opens new browser windows) and 'View' does not show Navigaot. Any ideas how to fix this? Thanks, Steve
Have EA running on MT4. Had a smiley face but with tongue sticking out. Just want to check if anyone know what does it means? Thank you
Hi,has anybody experience in setting up a Dockerfile based on Ubuntu Linux to run MetaTrader 4 through wine? I have tried it myself using wine32 to start the terminal but facing an error: WINEPREFIX=/root/.wine32 WINEARCH=win32 wine terminal.exe /protable 002a:err:seh:raise_exception Exception
[Deleted]
I learned about the rsioma ( rsi over MA ) in the forum thread https://www.mql5.com/en/forum/177347 found it interesting and decided to give at a try using the indicator for an EA In the zip i have included the source code for all the coders out there , comments , testing and improvements are very...
What can be the reason of this cannot refresh history, 4073, and the EA have no acsess to the Time[0] from OnTick() function? For the many years and a lot of EAs created I have never meet this error before, when array out of range at Time[0]. Also, I have read this post, about that how to catch
I am trying to close all pending orders but it is closing only half of it here is the code i am using if ( OrdersTotal ()> 0 ) { for ( int i= 1 ; i<= OrdersTotal (); i++) //Cycle for all orders.. { if ( OrderSelect (i- 1 ,SELECT_BY_POS)== true ) //If there is the next one {
Hi Coders, kindly help. My mission is to get H1's Bar Shift Number (Smaller TF) based on Higher TF's Bar0 for D1 and W1. int H1D1Sf=iBarShift(sym, 60 ,iTime(sym, 1440 , 0 ),true); if (H1D1Sf==- 1 ) H1D1Sf=iBarShift(sym, 60 ,iTime(sym, 1440 , 0 ),false)- 1 ; int H1W1Sf=iBarShift(sym, 60
Hi guys, I am trying to import some Nasdaq 1 min data to Meta Trader 4. After browsing and selecting the .csv file it does not load (see attached screenshots). I tried it to give it some time to load, but even after hours nothing happened. I thought about the size of the file so I reduced it to 6
  iclose/iopen etc  (10)
The following code does not work - please help I am trying to run this code in strategy tester on period M1 basically i want the open/close/high/low of the M5 candle to figure out the problem i even changed the 0 to 1 in all the code I ran this code in strategy tester for 12/01/2024 - 12/15/2024
If for example I made a string, a bool, and a string array, string A = "CCC333"; bool Check; string List[ 4 ] = { "AAA111" , "BBB222" , "CCC333" , "DDD444" }; And I want to check if the string A exists in the list (where the bool "Check" should turn out true), how should the code be written? I
This is the 1st time I encountered this matter. That I can not download/install any purchased EA/Indicator on my Windows VPS. (it has IE ver.11) But no problem on my desktop. the message "Mql4 market failed downloaded product 403" was on the journal. and the install failed as screenshot attached
I am trying to install a new mt4 on my laptop, but instead of the usual fast install, it is coming up with a box asking for proxy server address, account and password. what is this? Ive never had it before
Do can I use multi line cursor as at vs code or google apps script, when holding "Alt" ? For images and examples simply google for "multi line cursor vscode" Thank you
Hi. Good time. I created a spin button with the following command, but the value does not change. Also, I don't want to use it inside the panel. Can anyone help? #include <Controls\SpinEdit.mqh> CSpinEdit clSpinEdit_NB; int OnInit () { clSpinEdit_NB.Create( 0 , "SpinEdit_NB" , 0 , 10 , 190 ,( 10
Looking for a way my EA can use a trailing stop based on equity for all trades via magic number EA. I would like it to work something like this: If equity profit = + 200, set equity stop (or equity trailing stop) at +100, target profit = +500. So if I do not hit my profit target of 500 cause market...