Download MetaTrader 5

MQL4 and MetaTrader 4 - page 414

To post a new topic, please log in or register
Hello, I know from Visual Basic that it is possible to use higher increments than 1. There you can add a "step 5" for an increment of 5 instead of 1. Is that also possible with MQL4? I want to make a for-loop and I need the numbers 10,15,20,25,30,35,40,45,50 in my calculation within the loop. I just...
How to read values from custom indicator while indicator doesn't use buffers? I am writing new ea which by using custom indicator.but indicator not using buffers. so how can i read values for ea? Plesse give me a suggetions to solve this issues.
I wrote a test indicator to replicate issues I have been having with trendline objects. There are two of them. Here is the simple test indicator to place one, non raying trendline on every bar from previous close to current open. int start(){ int  i,  counted_bars=IndicatorCounted();//----...
Hello, Is it possible to purchase a MT4 strategy tester modified to run back tests and optimizations on multiple CPU cores? Or possibly configured to work with a GPU? Thank you.
Can someone tell me why I am having problems with the MT4 platform when I try running my EA? The problem is that I run a 5 minute chart. I expect that that there should be a logging of variables at the start of the next 5 minute period. It doesn't; I get no sense of action occurring. The code...
Hi Guys, I have faced with an issue - MTF MACD indicator (for H1 period) on M5 period chart do not refresh its values automatically when new bar has closed. It draw different values for every lower TF bar. The value of the high level bar has to be one and the same for all lower TF bars and has to be...
I'm new to MT4 and MQL4 I am using 'iSessions.mg4' to display the Asian, European and US Sessions (24 Hr Open @ 17:00 NST and Close @ 16:00 NST) I'm looking for some sort of ZigZag or Fractal that "starts" at Open and "ends" at Close (i.e., does not depend on the previous day or extend into the...
'\end_of_program' - ending bracket '}' expected C:\Program Files\Go Trader MT4\experts\workbook_nick_all the time.mq4 (83, 1) Why? I tested the OrderSend lines on their own, they are fine. Problem is with the OrdersSelect parts, I just can't fit them into this properly. As always help hugely...
This is related to movement of indicators but is easy to write with cars. Two cars travelling in the same direction car A is 10 miles behind car B, Car A is travelling 2x faster than car B. How many miles further down the road will Car A catch up with car B. The answer is 10 miles. But if car A is...
New article Creating a Multi-Currency Multi-System Expert Advisor has been published at mql5.com: I believe there are quite a few traders who trade more than one trading symbol and use multiple strategies. This approach does not only allow you to potentially increase your profit but to also minimize...
Hi everyone, I just created an DLL and 2 EAs to exchange Quotes between the two terminals. In the DLL i defined four variables: double forexcom_eurusd_bid, forexcom_eurusd_ask, gkfx_eurusd_bid, gkfx_eurusd_ask; Everything works fine and I can place the values from one terminal in the DLL in the...
Hi All I'm looking for a copy of the code behind both the Fibonacci retracement and expansion tools on MT4. Can anyone supply me with it or post up a link to where I can get it? Thanks in advance. Good Trading Regards -Llamedos
Hi, I'm just about to develop a new EA, and I'll need to draw some lines in the indicator window. It would be nice to have some example or similar indicator. Anyone has some sample code to share? or knows an similar indicator? Regards
My EA code is as below: int i_0=0,i_1=0,i_2=0;double x[50],y[50],z[50];int init()  {     ArrayInitialize(x,0.0); ArrayInitialize(y,0.0); ArrayInitialize(z,0.0);   return(0);  }  int deinit()  {   return(0);  }int start()  {int i=100;while(i<100){  if(iCustom(NULL,0,"Test_Ind",12,5,3,1,i_0)!=0){...
I want to write an indicator to connect all the peak which meet my requirement (a little like ZigZag, but different for defining the peak); I write the codes as below, but the codes never work well, and I don;t know where something wrong exist. the logic is very simple, but there must be some error...
Is it possible to store data into my sql using mql4?
i bought a few days ago my new phone Moto G. But i cant login MT4. my device is not supported. i've searched in forum, but still haven't find any solution can anybody help me? thanks all.
Can anybody assist with adding a sound alert and possibly even an email alert to this indicator. Thanks in advance to anybody who can assist
Hi friends.. I want a EA which place pending buystop/ sellstop orders from the specific price level.... Do anyone have this type of EA.... Or can anyone help to write this EA
Hi, I would like to create a simple rectangle with fixed times. For example: ObjectCreate("Test", OBJ_RECTANGLE, 0, 8:00, 1.6300, 12:00, 1.6200); As you can see, it should start at 8:00 and end at 12:00 with a 100 pip range. My problem is that I don't know how time1 and time2 must be formatted when...
Hi,I want my profit target to be the closest 100 pip round number if I am going up or down.. I found this code posted by WHRoeder..How can I adjust it to a chart of any digit? double tenPips   = 0.00100,       upperBid  = MathCeil( Bid / tenPips) * tenPips,       lowerBid  = MathFloor(Bid / tenPips)...
Hi @ all! I've read in this thread (forum.mql4.com/30599) the following quote by WHRoeder: "Do not assume that in a real-money EA that a stop or take profit will actually be executed if the price has gone through that value. Yes, they are unethical and mean. --LibOrderReliable" Since i am...
hello guys, i was writing my expert for many days maybe weeks, i'm using mt4, today i was testing and modify it, when i run strategy tester this time it's not running . i was tired actuality so i said i will check it later and colsed everything, now when i open it, it was blank no codes no...
Hi...Someone please help me to make EA for this Unicross (indicator) with my own setting ( T3 Clean (MA) (15,0,0.618) Vs Snake (11). It is very profitable if use in H1 timeframe..plaese share..TQ
I have a working ea but changed to an ecn broker. What should i change or add to the code to make it work??
Hi, I can code a bit EA for MT4 and I would like to create an indicator for MT4 from a web source. Myfxbook is willing to provide data that I would like to use/read for MT4 and create signals from Traders Sentiment I have no idea how to do an API: Someone gave me thoses 2 links.. but without real...
Hello everybody. I tried to search for an answer regarding this topic that I am sure has been treated already. I am trying to save high,low and close of the previous trading day on a csv file to compute some calculations since is not possible to perform portfolio backtesting with mt4. I wrote a...
Hello, Could someone suggest me a better way of doing this: for(int A =0; A<50;A++){   for(int B = 0; B<50; B++){      for(int C = 0; C<50; C++){         for(int D = 0; D<50; D++){            if(A!=B && A!=C && A!=D && B!=C && B!=D && C!=D){             // do something..            }...
Hi guys, I'm a new trader and I'm in my way to creat my own trading strategy And this forum helped me so much!! Now I'm trying to use ADX crosses in my strategy, but I'm having problem with the signals du that I must stay on the metatrader for long time to catch the signal at the first time it...
Hi, I cannot get the iATR function to work on any time frame (such as 5 min) other than the time frame that is on my chart (1 minute chart), when I applied it to GBPUSD. However it did work on other time frame settings (such as 5 min) when I applied it a EURCHF 1 min chart. Both charts were 1...