Download MetaTrader 5

MQL4 and MetaTrader 4 - page 299

To post a new topic, please log in or register
Can I average the bid and ask price on Metatrader 4 and have it show up on the tick chart or a separate chart?  
this code produces the file shown: int start()  {   int handle = FileOpen(Symbol()+"_logfile.csv",FILE_CSV|FILE_READ|FILE_WRITE,','); if(handle>0)  {   //write file header   FileSeek(handle,0,SEEK_SET);   FileWrite(handle,"Symbol","idiot","idiot1","idiot2","idiot3");   for(int i = 1;i<10;i++)   {...
Good evening,  I haven't coding for a while and I started again a few weeks ago. I've noticed that my EA wasn't working as he was before build 600. I investigate and I found that the function iMAOnArray didn't give me the same result before the build 509 and after 600+. I've tried the same "code...
Hi I have the mt4excel.dll which i use in conjunction with another EA that bringsdata into excel. The problem Ihave beentold is that this dll brings the data format into excel as only the first char of a string. so for 20 August 2014 it will only bring in the number 2.   Can anyone help resolve...
For me, it's a long opportunity. Opinions?   
  MT4 "toolbar" (1)
hello everybody,  I have a question concerning the MT4 platform. In the toolbar I have the possibility to draw lines, an equidistant channel and the fibonacci retracement (see picture)    Now there are many more possibilities in the menu tab "insert" like Andrews Pitchfork, Fibonacci expansion, ......
  Price Bid Ask (1)
Тестирую торговуюсистему на демо. Обнаружил, чтоцена равна Bid, что вноситсущественные перекосы, поскольку система генерирует сигналы по цене.  Что лучшепересчитывать цену (Bid + Aks)/2 или генерировать сигналы отдельно для Bid и Ask.
Hi,   I made an EA wich should display a THUMB_UP for each tick at the following coordinates : Time[0] and Kijun_value. Here it is : double Tenkan_value = iIchimoku(NULL, 0,9,26,52, MODE_TENKANSEN, 1);double Kijun_value = iIchimoku(NULL,0,9,26,52, MODE_KIJUNSEN, 1);double Chinkou_value...
Hello forum would someone mind pointing me to the appropriate reference that explains what  happens to the data set when new bars are formed. If a finite amount of information is stored by the platform,does data just get overwritten with each new tick or bar. i am trying to work out if it is...
Hi, i've a problem with ObjectCreate instruction; i must anchor a text object at every histogram in my customer indicator, but when i use this instruction : ObjectCreate(Nome,OBJ_TEXT,windowIndex,Time[i],Buffer[i]) i've correct compiling, but i've effect only for time current like It doesn't...
  Double values (17   1 2)
Hello guys, I have a demo in FXPro and got situation there. I want to receive a quote with 5 digits. Normally this code should work: Print(NormalizeDouble(iClose("GBPUSD",1,1),Digits)); the result was 1.6879 I decided to check Print(MarketInfo("GBPUSD",MODE_DIGITS)); The result was 5 Finally I...
  Custom indicator color (16   1 2)
Hi all, i need to capture with code a custom indicator color after it has been changed manually from interface (see attached image) Is it possible ? Thanks.
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?