Download MetaTrader 5

MQL4 and MetaTrader 4 - page 108

To post a new topic, please log in or register
Hello, We want to create an EA for back-testing purposes only. We are trying to make a simple code with the following criteria: It should send a buy order when there have been three consecutive bars with ascending closing prices in all three of them, altogether. The code we have is:...
For some reason, MT4 tester journal feature cannot find specific keywords, regardless of case.   I attach a screenshot showing several attempts to search.  But this bug exist for over a year now.    side question:  Why they have to be case sensitive? People need to find simple search terms, should...
Dear All, I'm very new to mql4, may I know what is all these means? #define SIGNAL_NONE 0#define SIGNAL_BUY   1#define SIGNAL_SELL  2#define SIGNAL_CLOSEBUY 3#define SIGNAL_CLOSESELL 4 Thank you
Hello traders. Is here good person to help me how to tune price/time font in axes? Please see picture. Thx!  
Hi, while watching the prices in order to compare them to other brokers I had to realize that in the Market-Watch-window and the Order-window (F9) different prices are shown than in the main Chart-Window?? Please see at the attached snapshot. The Market-Watch- and the Order-window show both: Ask=1...
  Help TS MA (1)
because  without  my terms , expert advisor, open and close, position 
  MQL Guide (26   1 2 3)
OrdersCount function allows to get the orders count of predefined type. int OrdersCount(int type){ int orders = 0; int cnt = OrdersTotal(); for (int i=0; i<cnt; i++) { if (!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue; //if (OrderSymbol() != Symbol()) continue; //if...
Hi Coders  Can someone please help me to add ticksize for GBP,AUD,EUR,NZD crosses and SPX,DOW,GER30 AND GOL,SILVER PLEASE. Will be forever greatfull!!
Hi All,  I got this indicator called IV-Jempol but it is ex4 file. Can i got the mq4 of it. I have attached to the forum. Best Regards, Shehab 
  MQL4 vs MQL5 (5)
Hi; Why is it, when logged onto MQL4 & I click on anything like Market, Freelance etc, it automatically switches to MQL5? I do have an account on both, although am trading with MT4 so want stuff for MT4 (until I switch over or trade on both). Cheers;   Paul 
Hi - I'm looking through the EA market here & cannot find what I'm after, please help or point me in the right direction. I'm sure it's here somewhere so sorry, just cannot find it. All I need is a Simple EA / Code / Robot, where I can input the following, for ANY market on MT4. Open a position at...
Hi everybody. How can I incorporate fundamental economic data (Such as "actual", "forecast" or "previous" data of a news release) into an Expert Advisor? Which platform (MT4 or MT5) has that capability? What function() to call in MQL4 or MQL5 such data from a website such as Forex Factory? Thank you...
If anyone has experience dealing with Neuro Shell Trader could you please give me your honest opinion. I purchased the program about a month ago and I am not to pleased with trying to generate new trading strategies. I feel as If they do not have enough instructional videos and also a lot of their...
I can see many of the great indicator out there have been lost or became history or became obsolete. I believe that those who coded many of those great indicator have exerted a great time, effort and some time money to come up with such great product for free. In return MQ4 does nothing to preserve...
How can I solve this error I get when I try to compilte my code containing: the error is for this line:  (error says: parameter conversion not allowed) int handle = FindWindowA(i, log); int FindIfDirOpened() {    string log = "logs";    string i;        int handle = FindWindowA(i,...
New article Testing trading strategies on real ticks has been published: The article provides the results of testing a simple trading strategy in three modes: "1 minute OHLC", "Every tick" and "Every tick based on real ticks" using actual historical data. Test reports of various modeling modes are...
When I work with Bid and Ask, I realized one (only one I know about) broker has different values for the chart and the MQL variables. The value for Bid differs from the chart by constant of 5 tick (0.5 pip), as well the ask level in the chart is offset from the Ask variable by 5 ticks in the...
I'm looking to perform multiple linear regression calculations within MQL4. Yt = b0 + b1*X1 + b2*X2 + b3*X3 + e   Does anyone know a solution how to do this? I have written code to perform this calculations for two independent variables. But I need to use more variables. Perhaps anyone can point me...
Hi all I have the following Heikin Ashi Smoothed indicator and i am trying to add it in a subwindow instead of the main window. i changed the #property indicator_chart_window to indicator_separate_window but i get the following picture. i have the original heikin ashi smoothed in the main window...
Does anybody knows how to draw a candle in a separate custom indicator window ? Any example, link ? I only need to know how to draw a candle graphics. Thank you,tek.
Hello ; I would like to represent at the first time the Macd (with 2lines ) in Bar or like a candle just with body : so if line1 > line2 I draw it in Blue and of course in opposite in red : so my problem is how to procede ?? the discussion about it is here where he would to draw Haikin Ashi in...
in indicator_separate_window , DRAW_HISTOGRAM use 0 as base to draw HISTOGRAM. in indicator_chart_window, DRAW_HISTOGRAM use another buffer as base to draw HISTOGRAM. how to draw candle chart in indicator_separate_window like it in indicator_chart_window? And how to code in codes to receive same...
l make anCustom indicators, and want to depose it in the main Separate window with the form of candles ,so l could analysis this indicator like currency pairs , do anyone know how to achieve it ? for example, l want to transform RSL into k candles and make it show in the main Separate...
Can anyone suggest some code that able to open a new pending order once the existing pending order been trigger ? and put the current count of total open order into the magic number of this newly open pending order ? I assume this will need to check on every tick, so thinking to avoid using...
Here are my EA's can some add the code to close automatically? Please?    
help, take profit, not submitted
Today 1st of September, i realized all my account history are deleted. All my previous trade records were deleted. Previously also had same problem. Is it every beginning of the month, it will be deleted? Im trading using demo account Please help
This code has worked flawlessly for me up until testing it in MT4 build 600, where it no longer verifies accounts from my server. bool bWinInetDebug = false;string errorMsg; int hSession_IEType;int hSession_Direct;int Internet_Open_Type_Preconfig = 0;int Internet_Open_Type_Direct = 1;int...
HI, i am having issues updating different MTMs from Build 840 to 971, the platform simply says "old version", no auto-update ever pops up. I work for an IB, we use about 50 different MTMs on a daily basis.  Several of us are having this issue.  We realize that reinstalling everything would fix the...
Hello everybody,  i'm french and i am a beginner, i wrote a program and i need help with an error that i don't understand: int main () { datetime start_time="20:00:00"; datetime stop_time="05:00:00";   MqlRates rates[];    int copied=CopyRates(NULL,0, start_time,stop_time,rates);    if(copied<=0)...