Download MetaTrader 5

MQL4 and MetaTrader 4 - page 279

To post a new topic, please log in or register
Hello,   This seems to be a very odd problem but I have a line of code which takes a screenshot with a certain size.  The image file always gets created but sometimes the file size is 0 an others its the full image.  It's the same code that gets executed on the same mt4 instance so I can't figure...
this is my code.igot some problam when the "new tickets"and"close"Condition was set up in the same time. will look line this photo. now,I want add a new code to set . every bars were only trade once in the same bar. i try many method like timefram , int bars or Bars,but it's not work. so please give...
APeng
Hello, I get the error during backtesting: 2014.12.17 21:44:13.420    2013.12.02 02:00  array out of range in 'ZigZag.mq4' (77,28) I use: ZZ = iCustom(Symbol(),Period(),"ZigZag",ExtDepth,ExtDeviation,ExtBackstep,0,1); The test runs from 1.1.2013 until 1.12.2014 and stops without any trades. If I...
Dear Coders, Is it possible to make a communication between two (or more) MetaTraders without files? I have a technique with Named Pipes. But it does not work since Build 600. There are some topics about Named Pipes & B600+, but I can not find a good solution to make it well-functioning. I tried to...
Hello, Every now and then, I get the following message when trying to download data from "MetaQuotes Software Corp. history center": there are no new data for a symbol 'EURUSD' The symbol can vary. In Options/Charts, "Max bars in history=512000" and "Max bars in chart=65000" but in the History...
  line continue (1)
How can i make a trend line draw from i high or low point and continue to stay at the price horizontal until price touches again
Hi, Not something very important, but I am curious, and as I can't easily find an answer, I ask the community. Is there someone who knows the exact meaning of these numbers in Strategy tester Journal tab, at the end of a test : 2014.12.18 18:11:43.383    GBPUSD,M1: 1577234 tick events (1578234 bars,...
Hi, I have a beginner's question. What is the preferred way of exchanging information between an indicator and an EA? To be more specific, I have a custom Indicator that looks for candle patterns, and depending on what pattern is detected, I want to use different Trendindicators for filtering. First...
//|                                             single rectangle.mq4 |//+------------------------------------------------------------------+#property copyright "Chart Shapes 2014©"#property version   "1.00"//+------------------------------------------------------------------+//| Script program start...
sir: when draw costum indicator in DRAW_HISTOGRAM, it is drawn in candles. how to draw it in stck mode ?
Very annoying. Every program I've tested works except Metatrader 4
Dear Fellow-MQL-Afficionados! I started with MQL4 for about two months and have been carrying out some more orless successful experiments. However, I keep running into problems as soon as I try to use the function: iMAOnArray! In order to try to really understand this function I did some...
Have noticed something weird with ArrayBSearch... Code snippet here: int OnStart(){       int arr[6] = { 1,                   2,                   2,                   2,                   2,                    5 };        const int idx1 = ArrayBsearch(arr, 5, WHOLE_ARRAY, 0,...
Hello, I was hoping someone could help me.  This loop will only iterate 6 times when it should iterate 10. #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link      "https://www.mql5.com" #property version   "1.00" #property strict #property show_inputs...
  'OnTick' and OnTimer (12   1 2)
I would like to run my EA at a predefined interval irrespective of when/ if the EA gets any new ticks from the server. I am trying something like this extern int     _tick = 1;//+------------------------------------------------------------------+//| Start...
Dear users: Im trying to code an indicator that shows the MA and EMA of the Volume bars. I have managed to successfully code the SMA but with the EMA, Im getting some issues and I cannot advance. I have detected some stacks overflow also. Anyway below is my code and I dont think I have it good at...
Hi everyone, I could not find it, but if there is already a thread addressing this, please send me there. I am looking for a US Broker who will allow me to trade a large range of markets on the MT4 platform.  I've been using a demo account through a broker called PipIndex, only to find out they...
Like the title, is it possible debug MQL4 code in backtest mode? Sometimes I need to test particular cases and I have no time to wait on real time. What I wish is a debugger to test step by step a code under particular conditions (i.e. when a varaible value is.. or when the time is >= ...).
Can anybody help me to design one very Simple EA.... Time Frame - H1 Script - EURUSD It will be a SAR system Based on PSAR Indicator.... Trade Qty will start from 1 as Capital grows to Double Qty should be double too.... Please help me
Hello, is it possible to create a script, ea or something else which sets the stop-loss to the actual Parabolic SAR level? For example: Open a long position, the SAR shows at this point a short-signal but it doesn't matter because you set a -maybe- default stop-loss. At the point, the SAR switches...
Hey there, i found an indicator that got a weird problem at the code but i don't know what it is i would be glad if someone could help me with it so basically the problem is that when i drop this indicator on the chart or refreshing the chart the indicator will show false picture, but when i leave...
Hi, it happens on many products (equity indexes, commodities, currencies..). Click on Chart Window to get the chart and the error message about chart41.chr is retrieved: C:\Program Files (x86)\MT4 at easy-forex\profiles\Market Overview\chart41.chr was not found Is there anyone that could help me...
This code used to work fine for me from March 2014 until now, then I went and compiled and tested it in a new build and this part of my code isn't working properly. //==============================//      HTTP REQUEST          ////==============================#define READURL_BUFFER_SIZE...
If I have A1[],A2[],A3[] variables and another integer i, is there the possibility, in mql4 programming, to use something like A&&i[] for A1[],A2[],...?For example:A1[1]=10;i=1;B=Ai[1]; (macro substitution)thanks
APeng
Hello! Every optimization there is that log file created (...\MT4\...\\tester\logs). Is there a way to turn it off? I need to delete it before every new optimization test due there are already done test cycles skipped if I don´t. I export data to csv so I need to run every cycle. Thanks for any...
can any one help me what is the difference between Indicators and Expert Advisor..?
  Update MQL4 600 & Named Pipes (34   1 2 3 4)
Hello, After this recent update, I am now unable to capture the call count from one instance of my MT4 terminal to relay it onto another MT4. Can you tell me what has changed in the update that causes this issue? Below is the code that continues to work fine with build 509 but not after this...
The problem is I can't get the previous wave highest and lowest values. and also can get current wave values.  
how  many  buffur may used in an indicator ? in updated MQL ?
Hi,  Please help me with a script that will convert the following MT4 date to regular date i.e. day/month/year   start_date=1388534400end_date=1415059200 many thanks