Download MetaTrader 5

MQL4 and MetaTrader 4 - page 188

To post a new topic, please log in or register
Hi all, I have a problem with Renko charts in the new MT4. I’m using Renko Live Chart v 3.2 in the OLD MT4 version, but I don’t see the M2 chart in the offline folder in the NEW MT4 version. I have read this article https://www.mql5.com/en/articles/1387 and make the suggested adjustments but it...
Hi, since the last terminal update to 890 I do have several problems. A serious one is that my tries to load the new-file of the week fails: #import "wininet.dll" int InternetOpenUrlW(int,string,string,uint,uint,uint);#import ...  string strUrl = "http://www.forexfactory.com/ffcal_week_this...
Say i have a file: "DOWJONES.txt" the file is updated from time to time through email scripts whenever the file is updated, it needs to be read by an EA and the new values must be loaded. FileGetInteger() can tell me if a new file is present by checking the  FILE_MODIFY_DATE.  So I'm cool with that...
Hello I searched in this forum but I could not found a topic talking about it. I´m programming an EA that has a neural network. I structure the code to function like a network and developed a specific architecture according that I experienced in the market. I´m using as a model the article made...
What could be the issue?     ZEROAM= FromHours-4;     THREEAM= FromHours-1;     threeAM=0; while( TimeHour(Time[threeAM]) != THREEAM ) threeAM++;     EJHigh7To10 = iHigh(NULL,PERIOD_H1,iHighest(NULL,PERIOD_H1,MODE_HIGH, THREEAM-ZEROAM+1,threeAM));     EJLow7To10 = iLow(NULL,PERIOD_H1,iLowest(NULL...
  Hide OTH (3)
Someone asked me an interesting question: Is it possible to Hide Outside Trading hours? So if you show DAX, that only bars during Frankfurt trading hours are shown and rest of data is discarded - that is: price is moving, but no bars are formed. I am looking for omitting data (ie bars), not merely...
I have created a new squeeze indicator for MT4 RA_Squeeze_V1. Check these out and email me if you want it - aravishstocks@gmail.com. Another one:
  WebRequest (8)
Next and last question and for this Forex Game i'm building ;-) And it's going to be fun and might even be profitable for the players! Can anyone give an example of how to send some data with the webrequest? The data I want to send is a simple comma seperated list with doubles: 1283762323234, 1...
Hi Everyone   While not new to trading, I am new to programming.  I want to learn how to do it and I do have the MQL4 book and reading it.  I thought that I would start with something really simple and basic and use this as a base to build a more sophisticated EA, but I cannot even get this EA to...
Olumide Samson
Hi Forumers, I've been trying to work on a Maths Since yesterday, but it seems it is failing me. I need to get Order Commision in Pips Value. How do i go about calculating it? I've used OrderProfit() + OrderCommision()+OrderSwap() before, but this are just in Currency values.. I want Pips Value of...
MQL4 RSI indicator is updated once in 30 minutes. why? can I get the current value? I'm using the API call: double rsi = iRSI(Symbol(),0,RSI_Period,PRICE_CLOSE,1);    Thanks, Eli   eli@intel-agent.com 
Hi, I found this EA: https://www.mql5.com/en/code/10483  It's great but I need help with one simple thing - I want that just one line will be writtento the file. it's mean that every time I will open the file I see only 1 line, the last tick. Only the last tick! In the next tick the current line...
In this picture the blue line is the result of the code. The red one is the result of dragging the RSI indicator to the chart. iRSI(NULL, 60, 03, PRICE_OPEN, 0) - iRSI(NULL, 60, 14, PRICE_OPEN, 0) Why is there a difference? Any ideas how to fix it?
I want to implement an MT4 multicurrency expert and I have a problem with Bid and Ask prices for all the symbols (with the exception of the one where the expert is attached). I looked for that in the forum and the answer is that I have to use MarketInfo() but that's exactly what I'm doing...  I...
 I would like to buy this EA for closing the orders with profit within seconds. I am unable to find this in mql4.com. can anyone help me ....
Hello, I am trying to run some tests in the Strategy Tester pannel with the freshly downloaded last version of MT4, and it seems there are some problems. I press "Start" - and nothing happens, the machine thinks for a few seconds, then comes the ending honk. "Waiting for update" remains written on...
So all I want is a FX broker / exchange that lets me connect through FIX / TCP / API for uncomplicated automated trading. I also need real-time market data. What I don't need is: 1) Ridiculous minimum deposits. I understand that for algo trading (more than 4 buys and sells per day) the SEC requires...
I've a questions about MQL4 programming. How to get the highest volume (perhaps 1 bar or 2 bars only) in current day and then draw horizontal line at the close or open of candle? Any help how to do this? Many thanks
Best regards    I think is very important to set a initial population when we use the genetic algorithm like we could set in Matlab.   Only we must set external variables from code.   Like this:   int init()  {//----     if(GlobalVariableCheck(initialPopulation) == false)...
Programmers, I am currently running a simple EA that open and close orders as per the attache file sections 15 & 16. Current operation: The Ea will open or close a pending, only one trade at a time so on opening a Pending Buy will Close a Pending Sell and  opening a Pending SELL will close a Pending...
Hello guys. I use Meta Trader Version 4:00 Build 880 on my desktop and also on my laptop. I am not home some of the time so I  use my laptop outside of my house and trade on it but the problem is that everything is too small. I have attached a picture I can't see the pair quotes or read charts or...
Hi All, When I view any pairs with "CHF" in the daily chart or weekly it look like the image below. Is this real candle or there is a way to adjust it?
hello, i know that mt4 runing the script evry time there a "tick". i like to know if mt4 get tick by "ask/bid/last" or all of them?  tnx tom 
Hi, I want to save tick data (the last price) to csv file. Nice improve: there is any way to write just the last tick to the file? Because after a few hours I have a file with 40,000 lines. Thanks. 
There's no "Input" tab when I choose "Expert properties" for my EA. Testing itself works fine. I'm using Metatrader 4 and EAs created in FXPro Quant. Windows 7 (32). How can I solve it?
int orderstotal = OrdersTotal();    int orders = 0;    int ordticket[][2];    double lots = 0;    for (int i = 0; i < orderstotal; i++)    {        OrderSelect(i, SELECT_BY_POS, MODE_TRADES);        if (OrderType() != OP_BUY || OrderSymbol() != Symbol() || OrderMagicNumber() !=...
As a matter of interest to Newbies (myself included) There is a blatant  error in the MQL4 Book... where it comes to Loops... It's taken me almost 2 years to become semi-proficient in MQL coding... But, one thing that I have learnt in this game is that you have to Decrement the loop... This is very...
this is c# code for import  "EnumChildWindows" from user32.dll[DllImport("user32.dll")] private static extern int EnumChildWindows(int hWnd, EnumWindowsProc ewp, int lParam); public delegate bool EnumWindowsProc(int hWnd, int lParam); what i use instead enumWindowsProc in mql4?
According to http://www.metatrader4.com/en/releasenotes/215, first paragraph 1. Increased the maximum size of custom tooltips for graphical objects to 128 symbols. The tooltips are set using the OBJPROP_TOOLTIP property. Yet there seems to still be a 63 character limit on the tooltip [per line]....
Metastock formula: HHV(C,8)  please mql4 code.