Download MetaTrader 5

MQL4 and MetaTrader 4 - page 322

To post a new topic, please log in or register
I have an Indicator that reads a list form a CSV file. Each line of the list has a 4 strings or numbers including date and time. At any particular candlestick a certain number of lines from the CSV file is applicable. Say usually 5 or 6 lines for candlestick withing the date time in the list. i...
Hi there, why if double getDigits() {    return MarketInfo( Symbol(), MODE_DIGITS );} getDigits() = 5 then int start() {        double prevClose = Close[1];        double actOpen = Open[0];        gapSize = ( actOpen - prevClose );        Print( "Gap detect - Size: ", gapSize );} Prints -> "Gap...
I am using the following code to open trades based on signals from a custom indicator (attached) When the indicator paints a green symbol i want to open open a long position on the open of the next bar and vice versa for a red symbol. I know I have lots of work to get this to happen but all i want...
I've got an EA with an enum where you select which strategy you want the EA to trade and it will use pre-configured settings I have within the code for TP, SL etc... Problem is you can't see the settings that are being used unless I display them on chart. Is there a way to update the values in the...
  EA in MT4 (4)
I want to use a EA In the couple currency In the couple currencies How are parameters in the memory will handling Can it occur satuation same parameter ?
Dear Traders, I have created a Custom Indicator which works based on few other custom indicator, But when I add this Indicator with price chart the signal comes, but when the live market runs signal doesn't comes, If we change the time frame the indicator signal disappear from the price chart,(again...
hi all, I have a problem, since I did an update to metatrader to version 646(date 30/4) i have problem with custom indicators and expert. i cant start them on my system. I do not have the buttons to activate them (ok buttom, cancel buttom), i have only the reset buttom. see on pictur: This happens...
  Bad Data (5)
How can I restrict Bad Data / Holiday data, (same open, close, high, low and volume 1)? Even though I remove thru History Center, these are updated automatically.
Hello all, I have a serious issue and I am not sure what is wrong. I am plotting 3 identical OBJ_BITMAP_LABEL on the chart (different names and positions on chart of course). Then set something to be done when click on them (CHARTEVENT_OBJECT_CLICK). 2 objects work perfectly ... but the 3rd one...
Hi Colleagues, could someone help me here, please. why do I get error on this code -I call the following code in init() function: Print("---------SYMBOL_TRADE_TICK_SIZE = ", SymbolInfoDouble(Symbol(),SYMBOL_TRADE_TICK_SIZE) ); and get compiling error: 'SYMBOL_TRADE_TICK_SIZE' -...
I want to add solid background color to the label. Please help.
Hello, Can anyone help me - how can I get MT4 574 ?? I tested many brokers, each of them provide MT4 509. But now I'm furiously need to get 574 version. I tried from this page https://www.mql5.com/en/forum/148851 But I am really frustrated... :''( I couldn't realize and so far, could not...
for example, #390348 buy 0.1 #394839 sellstop 0.1 etc that text size is too small for me to read, but i could not find any option to increase the font size in MT4 platform. I dont need a code or such, just need some help to figure out where that option is .. or how to increase that font size?...
Alessandro Sorvillo
Hi guys I'm trying to write an Array to a file using FileWriteArray() but I need to make this file shared writing between 2 or more EA from different brokers. The fact is: if I use FILE_WRITE everything is ok. But when I use FILE_SHARE_WRITE I don't get my array written (the file remain empty) P.S....
  Keyboard speed (16   1 2)
I recently upgraded mt4 platform to build 625. I like the new compiler because it is ultra-fast. But I found a new problem that I did not have before. When I am editing my source code, when I am typing in a new line or adding or editing an existing line, it takes for ever for keystrokes to appear...
On the night of 9-10 May, a small upgrade will be performed on the MQL4.com website. We hope this maintenance will pass unnoticed for you.
We have released the beta version of MetaTrader 4 build 628 fixing compatibility with Symantec antivirus. We urge you to update the application after connecting to demo.metaquotes.net:443 (MetaQuotes-Demo) server or copy the two files (terminal.exe and metaeditor.exe) from the following zip archive:...
Hello Guys, Do you know any solution which allows save to an array: - an account balance (as balance1) before trade and - an account balance (as balance2) after trade? How to check AccountBalance() every time when OrdersHistoryTotal() changes? Thanks.
  multi TF (9)
Hi, Someone can tell me how to create a chart (1 currency) with several windows (diferent TF), all in the same chart. Save it and then using it as a kind of template for all the currencies. Attached an example of how I`d like to have my charts drawned. thanks
Alessandro Sorvillo
Hi everyone, I'm wondering how does order processing works in MT4. Let's say EURUSD is ask/bid 1.0000/0.99999 EA sends a market order like: OrderSend(Symbol(),OP_BUY,Ask,1,0,0,0) - to go long on EURUSD 1 lot no slippage/sl/tp The next tick EURUSD is ask/bid 2.00000/1.99999 what happens to my order?...
I have mt4 build 600,I have installed ichimokupower ea using ea installer, I have set the input parameters and activated the ea, and have yet to see any trades made by the ea, am I missing something or is this an installation problem?
Title pretty much says it all. How do I display on chart which day is selected with create object? Just throwing the variable name in there like so shows as '0' on chart. CreateObject("2",day,15,55+inc); enum day  {   Sunday,   Monday,   Tuesday,   Wednesday,   Thursday,   Friday,   Saturday  };
Hi, I use since years the WinSock.mqh Ver 1.0, ryaz(https://www.mql5.com/en/code/9296) and the wsockclnt.mq4. After last update from 5xx to 6xx I have 38 errors if I try to compile "wsockclnt.mq4". A compiled version with build 5xx works fine in latest MT4. But I can never touch and compile this...
Hello, Imported to two HST files through History Center and I see them in History Center - no issues. However, my Open Offline dialog box is empty. I know in the past I had to exit mt4 and open it again for list to be populated. But it doesn't help now. I can see the new files created in .....
Any one can help me who knows mql programming? I made an EA for MT4 the signals are the same in long and short, but in short way doesn't open any position at all, not in back test and not even on a live account. I checked everything but i dont know why doesnt open short. If anyone can help me in...
Tradeing Trader
  Unknow Issue (3)
Hello, i have install on a VPS Server a MetaTrader and i have put a EA on a chart and i get know following error messages that i dont understand, please look in the attached picture and let me know if somebody from you understand that:
  Event on changing server? (11   1 2)
Hi, all important things in the OnInit-routine not be called, if I change the server. Is there another event handler to react on server-change? Regards Burkhard
Will auto update trigger at any random time during the day while MT4 is running, or only on startup?
void OnTick()  {      double Middle = iBands(NULL,0,18,2,0,PRICE_CLOSE,MODE_MAIN,0);      Alert("Middle =", Middle); Please help with this code. I want it to give me an alert of what the middle of the bollinger band is at each tick. I know it's not practical, but the alert is just for testing the...
  Incorrect order (12   1 2)
Hi guy. can someone tell me why this is happening? As in the picture, the system buy at incorrect price. The candle not even reach that high. How come this happen? It also happen when closing order as well. It close at very weird price. Here is portion of the code i believe to be the source but...