Download MetaTrader 5

MQL4 and MetaTrader 4 - page 205

To post a new topic, please log in or register
Hi 1. In MQ4, I understand that there is no concept ofclasses and structs. The only way I found for holding lot of data is arrays(buffer) or save to a file. Is there any other way? 2. It doesn’t say anywhere but I wasn’t able toreturn an array from a function. Is it the right behavior?...
I remember mql4 community was closed in favor of mql5. Didn't know they have re-activated it again! So I posted my question on mql5 forums : MQL4: Sharing file between two MT4 on the same PC I checked a couple of topics for the same issue, but they didn't solve my problem. Any help would be...
It's not easy to see the used Margin of an order if there are a few orders opened.  1.  Is there a simple way to get the used Margin of an order? 2. If there is a short order of "Eur/Gbp" and my account money is "Usd", should I use the bid or ask price of "Eur/Usd" to calculate the used margin? 3....
I've written a large number of indicators and they are fairly robust. I have always followed a pattern to display all but one of the buffers in the main chart window and reserving 1 buffer not to plot but to store measures that are calculated for and retrieved by a given EA. These measures aren't...
Hello! In a loop I want to assaign the values of the operator to specific arrays depending on the loop-variable. This is a simplified example:  ---------------------------------------------------------------   double Array1[1], Array2[1], Array3[1], Array4[1],...;  for (int i=0;i<=100;i++)...
Hi, I've come across on something weird. Having an extern input variable followed by comment changes the name of the variable in the EA's/script's Inputs Window. The following code: extern string myVar = "abc"; // This is a commentextern double d = 2.5; /* Another comment */  compiles fine and...
I have no button on shorting, just buy and sell.
I use this line in my ea to open a tradeOrderSend (pair,action,volume(),MarketInfo(pair,MODE_ASK),3,stopLose1,takeProfit1,"",0,0,Green) I recive error: Error unknown symbol name eurusd; for OrderSend function  I test this line in an ea which contains only this OrderSend line it works without any...
When I compail these code i get error missed parameters  OrderSend (pair,action,volume(),MarketInfo(pair,MODE_ASK),3,stopLose1,takeProfit1,,,0,Green); OrderModify(OrderToModify(),,stopLose1,takeProfit1,0,Green); For both i recive this error:  ',' - syntax error, parameter missed But for this one:...
I uploaded the .ex4 indicator to mql4>indicator folder but on the platform the icon of the indicator is grey and I can't apply it in to the chart anyone know how to fix it?  
If you want to fit a parabola (y=ax^2+bx+c) to e.g. the last 3 values of a buffer, you need to solve a system of 3 linear equations. In software like Matlab or R that is really easy to do, but how would you do it in mql4? I guess there is no function for this?
  6th Degree Poly Help! (54   1 2 3 4 5 6)
Let me introduce myself. I'm a database architect (as opposed to a mathematician) with very strong programming skills in all things database (sql, t-SQL, PL/SQL) and have enough skill in non-database languages (C,C++,C#, VB/VBA) to make do. I worked within the confines of the Financial Services...
Hi guys, is possible move chart without using DLL? By use user32.dll functions SendMessageA(..) or PostMessageA(..) I can move chart, virtual key PgUp, PgDw, key F12 etc. But does exist solution with use pure mql4? Thank you.
Hi, i would like to set the webpage on ea while it opens every time. please suggest me to do if possible in mql4? Your support is appreciated.
I've noticed for the past several builds (since 765) that there will be times where the terminal gui will freeze, but the terminal seems to continue placing orders.  In other words, I cannot click on anything on the terminal (it is unresponsive).  But when the terminal becomes responsive again, you...
Hi All,  I wanted to create an EA that would open a trade at specific date and time. I also wanted to add Trailing Stop to it. I made a research on this forum and did not find ready solution. So I tried to mix some EAs. Som efeuterues added correctly. However I have a problem with Trailing Stop that...
Hello everyone, I hope someone can help me with my problem. Now I want to plot a Fibonacci Extention in my EA based on upper and lower Bollinger Bands. The problem is that Fibonacci is following only one band (one price). The secound price remains the same. This is the code which causes the problem...
I have some open trades in meta trader, how do I list all their tickets? All I found in mql documents is about how to get the ticket of a "selected" order before  I have some orders which no one is selected, I need a list of oreders tickets, then I select one of them by first ticket then do some...
Hello. I want to share my 3rd party program which allows to create mql4 advisors with embedded blocks. The main goal of program is to give ability to create advisor with templates and embedded functionality. Main screen of program  Based on added blocks, for example time of play Hours, day of week,...
Hi.  In researching this I see this was once not possible pre. build 600.  My question is whether it is now possible post build 600?  structures and classes ?   My objective is to pass the array values populated in one function into another function with a global declared array?    For example:...
The correlation matrix table and charts are showed together in same page...look like very metcy.how to ignore the chart???? I want show matrix table only...any idea?
DEAR SIR I NEED HISTORICAL DATA FOR ALL FOREX PAIRS , USING DOWNLOAD I HAD DOWNLOADED ONLY FOR 2 MONTHS, SIR I NEED DATA FOR FOREX ALL PAIRS FOR  1 YEAR IN SIMPLE HOW TO DOWNLOAD 1 YEAR FOREX ( ALL PAIRS ) 1 MIN HISTORICAL DATA USING DOWNLODER IN MT4 PLEASE EXPLAIN THE PROCEDURE TO DOWNLOAD
  SymbolSelect() (24   1 2 3)
How do i exactly use symbolselect function?I used it this way it doesn't work String pair="EURUSD"; SymbolSelect(Pair,true); Alert (symbol());  i use alert to see if the symbol is selected but i see it always alerts usdchf by default, Please me with,  write the exactly code which select EURUSD...
Hi there,   This is my first post, so I hope its gonna make any sense :)    How can I have a reversed Array (like a timeseries), and prepend a new element into the Array and throw the last one out (if over max-length).  So Array[0] is the newest value and Array[49] is the last value.. I tried like...
Hi, I am new to this forum and looking for help to load my orders from excel file with the following schemas: Type, size symbol, price and T/P. Any help to guide me to any help to the previous need. Is there any established application for this need available in the market? Thanks and looking for...
Hi.... I use IndicatorCounted () Function  (mql4) . but it return (-1) (counted_bars<0)  every time.....what is wrong? where is problem?
Iflexion company offers high-quality web development services for enterprise and small business.  The company uses only advanced IT technology in development: .NET, PHP, JAVA, RUBY ON RAILS and others. For more information visit Iflexion's website. 
Your support is appreciated..
Hi, I make an EA run from 1 chart. This EA want to get the exact price of all current tradable symbol of that time. 1) I open file symbol.raw to get all available symbol and use function MarketInfo(sym,MODE_TRADEALLOWED); to check if it is tradable. Some symbol that function return 1 but the symbol...