MQL4 and MetaTrader 4 - page 365

To post a new topic, please log in or register
Hi all, I am new to metatrader programming and I would really appreciate if you could give me your opinion. I am trying to write a program that captures the tick by tick prices and writes them to a file. I am using the expert configuration and a file checking process (which is located in the init())...
I have a server at a remote location and my laptop.  I can install a new copy of MT4 on the server fine, but on my laptop today I am asked for a proxy.  In both cases I am installing from the same brokerage.  My regular web access is fine on the laptop.  I don't know what to look at next--maybe it...
I am able to find the candle / period over 288 periods with the highest volume. " iHighest(NULL,0,MODE_VOLUME,288,0); "  But when I try to find the volume of that candle " int HighVolC = iVolume(NULL,PERIOD_M5,mz); "  I don't get the correct volume of that candle / period.  Is there something that...
Hi, Could you please help me to find RenkoChart indicator 600+ that makes boxes in the following way?   Thanks in advance.   
Hey everyone. :) I hope everyone is all good. I am sorta new to this whole MQL5 language and I am experiencing an issue with an alert that will not go away - it is driving me up the wall!  I am not sure what is sending it out, if I find that, I am sure I will be able to make it go away. Anyone know...
sir,i need mcx india mt4 demo account which plat form give demo account,plz help me
hi how are you?   I want to use the VOLUME_REAL in mql4, but I can't  I'm search some information in documentation:  https://docs.mql4.com/constants/indicatorconstants/prices  or chart_volume_real  https://docs.mql4.com/constants/chartconstants/chart_view   someone can help me please??   really...
Dear friend,  hope you are all great, I've written a code and it works properly on the mt4 that its source file - mq4. - is also located at its "Indicators" folder, but when I attempted to copy the ex4. file of my written indicator on the other mt4 platforms' "Indicators" folder as I open the other...
In MQL4 reference : The file must be located in terminal_directory\Sounds or its sub-directory. Only WAV files are played. Call of PlaySound() with NULL parameter stops playback. But in I cant' find  terminal_directory\Sounds directory in my PC , as picture below, please help me to find the sound...
Hello there, I am requesting the help of a coder that can help me in being able to make an indicator that can and display the bid tick and the ask tick count as well as the difference in ticks between the bid and ask price. Below is a picture of what I am meaning: If somebody is out there who can...
Hi Colleagues, could someone help me here, please.  Heiken Ashi indicator has 4 buffers, that are initialized as to  DRAW_HISTOGRAM. first of all I do not understand   how  this happens in  chart_window ?   normally I know how to draw histogram on separate window... where the buffer simply needs...
Hi, hope this is the forum for MT4 android related issues. Please let me know in case it's not. The issue is the following: I've installed mt4 for android, configured the metaquotes id in the PC version, and tested in my Demo account. It worked perfectly. Notifications are received in the android...
  Oil price! (5)
Please help! why does MT4 oil price different than correct prices? because of that I'm getting wrong signal from my custom indicator..
Hi guys, i need small pices of code , since the software which i have did not allow  me to open more than one buy or sell positions.  if i opened position for buy Eur/Usd at 1.3340 (after I added some condition ) then I need to open an other buy Eur/Usd position! Is there any way to do that one ?
Hi dears: i know the MACbook support running MT4 EA,Does the ipad support too? thanks.
Hi, Is there a way to send an order there n EA from one account to a different account, using its Login, Pass and server?  Thanks, Eyal. 
Hello, I have a problem with MT4 platform : I use Samsung 4k monitor resolution 3840x2160 and all the letters, symbols and numbers are too small. So I have to double lower the resolution in order to get bigger fonts. There is no resolution settings in MT4 options. The MT4 platform also doesn't...
Hello everyone, I download mt4 app on my iPhone, and I programmed my custom indicator so It will send push notification to my account.  Is there some kind of fee for push notification? 
Hello everyone!  I've made a library in C++ that is responsible for everything I need to use Named Pipes. I want to integrate MT4 with Java application, from where I'm also calling functions from DLL. There is a problem : since I read messages pending on pipes from MetaTrader EA everything works,...
Hi, It seems that MT4 initiates a hard hang when started on a system with kernel debugging enabled.  Furthermore, once it detects that kernel debugging has been enabled subsequent attempts to install mt4 fail. I very recently tried to install mt4 on my win7 laptop where I had enabled kernel...
Hello there,  Will you propose to use personal timeframes? I would like to work on 2 minuts timeframe and it's not possible on MT4...     Best regards. 
When buying/selling, i always add a "print" message to explain which open/close method was used. It is displayed in the "Experts" tab, but not in the txt log file that has a date as name. If that is intented, it would be NICE to have print message added to log file! THanks :) 
Hi all, does anyone know how to add Google ,Apple and other stocks live charts on the MT4 platform ?
  order Modify (3)
Hello to all, hope some can help me i got alwas Error 130 on order modify   extern int    TP = 200;extern int    Spread =  10;extern int    magic = 123456;// function start------------------------------------------------------------------------------------void OnTick()  {//---- //Setup comment...
Hi, I am working on an indicator which I just had run in the debugger. As this (due to a loop of loops of..) runs tooooo long I killed both the terminal and the editor. Now after some changes I want to start the debugger again but the button to start the debugger is grey and disabled ?? I restarted...
I am currently investigating the best approach to minimize/eliminateterminal ‘freeze-ups’ during periods of high volatility. My assumption is thatduring these periods my MT4 instance is reacting to new ticks before it hasfinished recalculating Indicators, hence the ‘freeze-ups’, which can last...
I would like to change my EA to use for Binary Options strategy testing. The idea seemed simple - Open a trade on a new candle and close on a new candle - thisway you could test the ea for 1 minute, 5 minute, 30 minute and even on 1 hour timeframes. I tried different things but a trade just opens...
Hi there,   I'm using an EA on MT4 build 670. I have a question regarding the Sleep() function: if I use the function and let the EA "sleep" for 10 seconds,  will if freeze completely even if there are new pips? or will new pips cause the "start" section run all over for every new pip again and then...
APeng
I got a question about when a order is filled during a backtest: 1) OP_BUYSTOP at  1.3400 Current Ask at     1.3399 Next tick Ask at    1.3402 The limit order is filled at 1.3400, right? 2) OP_BUY if Ask    >= 1.3400 Current Ask at         1.3399 Next tick Ask at        1.3402 The market order is...
hello everybody,  I want to programm an EA, that opens at a certain time (which the user can define) pending orders and I have problems with this date and time functions like TimeCurrent(). Until now I have this:  extern datetime time = D'2014.08.15 11:10:00';  and now I want to compare this time...