Hello I read in doc Mql4 that RefreshRates() updates the data of the current symbol. I understand: the data of the symbol of the card to which is attached the EA. (?) In this case, for a multi-pair EA, how to refresh the data of other pairs? Or I'm wrong? Thank you for your answers
Hi friends, I'm trying to write some info from an array into a .bin file using FileWriteArray function and then read from that file and copy the file contents into another array using FileReadArray. As I checked the MQL4 documentation, I found out that it is not necessary to define the array size...
aiuto, ho smarrito la password per entrare nella piattaforma meta commercio 4 e non sono in grado di recuperarla (il consulente chemi ha seguito è scomparso e ha cambiato la password). cosa posso fare? thank you.
I devised an EA which I'm planning to run on my computer from 8:00 to 20:00 every trade day. I will shut down my computer every night and reload the EA every next morning. How can I simulate this case in strategy tester? Is there a function that reloads the EA (from the first line, including all the...
[Deleted]
If you want to code an EA, or trade well, for using daily charts, you need the real GMT times for start & end of a forex day. Just asked oanda, and got the following answer: "Itis either 5pm new york time that the candle starts plotting or 12 midnight newyork time that the candle starts plotting....
[Deleted]
Hello my code is not decompiling correctly for mt4 build 1090 now after I try to run some back test Please help me clean up my code thank you. My code is included in attachments and I will paste it below: #include <WinUser32.mqh> #include <stderror.mqh> #include <stdlib.mqh> extern int
Buongiorno a tutti. Volevo utilizzare una dll personalizzata mql4, che normalmente è collocata nella cartella MQL4 \ librerie. E 'possibile collocarla in una cartella su chiave usb e richiamarla su un expert (#import .........). Grazie per eventuale risposta Paolo Goodmorning everyone.I wanted to...
hi guys i have a little script for open trade 2 or more with one button , i want write a numbertrade in temporary file i write this code for(ctrlshort=1;ctrlshort<=QttOpenTrade;ctrlshort++) { SellShort=OrderSend(Symbol(),OP_SELL,LotSizeTrade,Bid,3,0,0,"Open CloseHide"...
The platform I use is the: MetaTrader 4 - Version:4.00 Build 1170 (20 Dec 2018). Just today I noticed that bug, on 17:00 platform time. My local (Summer) time is GMT-4. (And the NY NYSE local (Summer) time is GMT-4 too). So what happen: On Friday April 5, 2019 I added a Vertical line on the last...
Hi Everyone, how do I set up multiple(4 to be precise) 2 minute offline charts so that I can run 4 EA's on MT4? I have tried to open multiple charts but every time I do so they stop working.
Hi when I download Meta4 for this site I get meta5... were can I find MT4? https://www.metatrader4.com/ MetaTrader 4 Platform for Forex Trading and Technical Analysiswww.metatrader4.com Millions of traders with a wide range of needs choose MetaTrader 4 to trade in the market. The platform offers...
Hi everyone, i must say that i'm not a coder, so this is one of my first attemp to make my own indicator, its based on rules wrote in other language but i wanted in mql4. I attached the mql4 file if anyone could answer me whats wrong. For an unknown reason the code works fine till i try to calculate...
Hello I am just wondering how can i place multiple trades so i can have lets say 2 or 3 different Take profits? Do i have to lower the lot price? Every time i do the first one when i try to do a second trade i just get insufficient funds. For example if i want to do EUR/USD BUY @ 1.1310 Selling...
In my Terminal section below on the top 3 tabs labeled Main/Favorites/Purchased I get nothing they are blank ! All three are under the Market tab. I am connected to the MQL5 Community ? I really need this fix because I have purchased indicators and plan on purchasing more on the MQL5 web site and...
Hi! I'm trying to understand how the s1 and s3 values are calculated in this for loop. How the initial values are calculated? Shouldn't be 0? This is a for loop in the Damiani Volatmeter indicator. for(int i=loop_size;i>=0;i--) { double sa=iATR(NULL,0,Vis_atr,i); double...
Hi, I put a Sell Limit, without TP and SL to test something. After a while I see the Sell Limit deactivated in Account History. Image below: Why this happen? Thanks
Hello, I have a rather simple EA that in `start` function checks if it's trade time (which is True once every hour) and then, if True, makes HTTP post request to localhost web server (implemented in python). Python is run from Linux subsystem inside Windows Server 2019 Datacenter. Server is hosted...
I'm using the zmq bridge to be able to code in Python and have Python communicate with MT4. I have everything working fine locally, but was wondering how one goes about setting this up on the VPS. The zmq connector uses tcp ports to communicate. I'm assuming I get a server address from somewhere and...
Ref: https://docs.microsoft.com/en-us/windows/desktop/api/WinBase/nf-winbase-formatmessage Below code is the syntax: DWORD FormatMessage( DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPTSTR lpBuffer, DWORD nSize, va_list *Arguments); In my MQL4 code, I...
Hi all, I don't have the greatest grasp on memory allocation so I'm wondering if this issue has something to do with that. Here is the problem I'm having: I start with 3 user input strings: input string currencyTickersString = "AUDCAD,AUDCHF,AUDJPY,AUDNZD,AUDUSD,CADCHF,CADJPY,CHFJPY,EURAUD,EURCAD...
I am looking for a system to extract out a signal from an email message, parse the data in to a text file or database and then have an EA process the order in MT4. Has anyone done this before or know where I may find such a system? All assistance will be greatly appreciated
Dear coder, can someone show me how to code the mql4 to read value from this indicator. FX5_MACD_Divergence_V1.1.mq4. From the data windows shows 4 values. Value 1 ... to 4. How to code, let say I want to compare if value1>value2. How to set the buffer and make variables. Tq Sir.
Hi all. I have an EA that records H1 candles from the chart. I want to get data from as back as 2007. I have tried a few brokers but the furthest back I have got to is 2015. Do you know any broker who lets you go the H1 chart in EURUSD back to 2007? I have tried to get data from 2007 from dukascopy
Dear MQL4. Community members! We are glad to inform you that the book by S. Kovalyov is now available on this website. The translation and proofreading are not fully complete yet, but you can see many sections of the book in English now. We would also like to ask you to put all your notes and...
if (counted_bars<0) return(-1); if (counted_bars>0) counted_bars--; limit=Bars-1; if(counted_bars>=1) limit=Bars-counted_bars-1; if (limit<0) limit=0; for(i=limit;i>=0;i--) { hhb=Highest(NULL,0,MODE_HIGH,dist,i-dist/2); llb=Lowest(NULL,0,MODE_LOW,dist,i-dist/2); Hi all,...
[Deleted]
Hi fellows, especially fellow programmers.... I was wondering the ways of how the bot can identify a doji price bar, where the open and close price of a bar close relatively the same. I'm not programming this myself but I'd like inputs on how to do it MQL4's language wise.. I mean its easy and basic...
Hoping someone has some suggestions for how to resolve the below. A broker I use only offers reports generated via MT4. The figures are accurate for closed trades but I'm still struggling with how to generate an accurate report for a specified period for open trades. e.g. I want to see what the...
Hello, I have an indicator in ex4. I wish to programmatically retrieve last value of this variable (level) that is in the indicator: I wish to retrieve #4 and #5 price levels..... Thanks
How to check the highest and lowest price of a rectangle drawn by a mouse in mql4 ? I drew a rectangle as in the picture, but I want to see the price in mql4, can I make it?
i was wondering, i have custom indicators, however they seem to not save once i change them, for instance one has a colored in sectino between 2 moving averages, but i am trying to make the color translucent as it is coloring over the bars, yet when i change it, the color goes right back to being...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.