Download MetaTrader 5

MQL4 and MetaTrader 4 - page 139

To post a new topic, please log in or register
Hello, I noticed that whenever i place an order on my android mobile platform, it isn´t registered in mt4 desktop log file, even though it displays it on the chart. Is there a way of registering on the log file those orders? I was thinking of an indi that would register the activity on chart to the...
Hi friends... i am trying to developed a Renko Based ea... actually i am new in MQL4.. i want to open the trade (buy or sell) when the second bearish or bull candle will make... example In RENKO i set the bar size on 10 pip..on the second renko bull can i will open a buy trade. & my stoploss will...
Is there anyway way of programming mql4 on android?? I have a c and c++ compiler on there but not sure the meta quotes app lets you program?   Would it be possible to emulate on an android? 
Hi, I'm trying to write an EA, first step is to compile a list of open orders that match the symbol that the EA is currently open on. However, whenever I try to check the contents of an array index with MessageBox(OrderArray[0][0]); I get an Array out of Range error. Here is the relevant code: int...
Sometimes I've come across EAs and indicators that are bundle into a exe file, which makes installation easier by putting all the right files in the all right folders to make it less confusing for the user to install. Apparently there are ones out there which even allow you to select what mt4...
Dear Forum members, I've worked on some programs in MQL4 for a year and now I decided to code some Library files as well. I have some classes written in Include (.mqh) files and used already. They are working properly. I wrote some functions in a Library file, compiled, and working so now I...
Hello. Is it possible to incorporate a programmed expert advisor mql4 Cloud Network? Thanks
I'm trying to run this function, is made for custom priceseries, basically input are: -Price applied to (close,low,high ect) -index of shift  -open,close,high,low from OnCalculate this is the function.  enum Applied_Price       // Type of constant  {   Price_Close,          // Close   Price_Open...
I have a demo account with MT4. Recently I noticed that some of my buy and sell orders were placed by "expert", followed by an expert id. I have never authorized anyone to do that for, neither did I enable the EA authorization. Because of this erratic "expert", I have been losing money. Have been...
So frustrated I haven't any idea how this happened! The code ran on 2 brokers for 3 months. Today the issue below suddenly happened at 1 broker. Please refer to the log and code below.  The code should run sentence by sentence based OnTick. However, please refere to the time marked in yellow. Why...
Hi All  from some reason we start seeing on the journal tab a lot of Pumping timeout:   how i can troubleshot this?  
hola a todos tengo un error hace semanas , me aparece en la carpeta de expertos el error 126 cannot load metasetup.dll, alguien sabe como solucionarlo??
Please try attaching EA for auto trading. Leave your comments after complete your testing.    
Hi, I'm very very new to mql coding, and I'm asking you help with some basic concept. I'm starting from a very simple attempt: I check if thare aren't orders opened or pending, and I open some orders, market and stop. When all orders are triggered and closed, in loss or profit,...
Hi, I have recently taken to doing some coding for MQL4. I would like to create an expert adviser that can open order when current candle hits the previous's highest or lowest. I have done up the majority of the framework using the Sample MACD file as a reference however the EA is not making trades...
wrote and compiled an ea, eliminated errors and got an exe w/o errors, but cannot load the ea.  the expert tab says it is not an ea.  why?  
Hello peeps, im just wondering if theres any actual equation for volatility? I've seen it used and measured in various ways and i know you can measure the total change in a day vs the current value, or change vs range, or high - low / volume or some nominal value based on time etc but is there an...
Seriously, in all charts. Is there actually a mathematical strategy that works? It seems to me that if someone produced a program that made windfall profits - or even just tiny steady profits all the time, it would be all over the news. I see the movements and the pivot points. I always feel like...
Hi, Just a quick question, I am trying to add an expiration time on a buy script. I have added the line extern datetime Expiration = 0; to my script which is ok but is there a way i can make the order expire at 9.00pm on the day that the order was placed rather than having to manually input the date...
  Multiple inheritance (15   1 2)
The Normal syntax doesnt seem to register, does mql cater for multiple inheritance or do i have to work around it?  I was attempting a partial MVC, well different adaptation but essentially wanted a controller class between MarketIndicator and Trader, they both inherit statistics class but for...
Hello everybody! I'm a new user of this forum and I'm trying to learn MQL4 to build a my own EA, but now I have a little problem with my code. The MT4 doesn't read this part : " int H = OrdersTotal(); //CORREZIONE BUY   if (H>0)    {     OrderSelect(H-1,SELECT_BY_POS);     if(OrderType()==0 &&...
Hello All: I used to use window xp, mt4 runs fine. right now i am update to window7, but somehow when i copy and paste the ex4 file to the indicator folder, the File won't show up inside the MT4. I tested, i still can move any ex4 file at my window xp's MT4 and use without any problem...
Hi I am running my EA on FBS metatrader platform. the demo account can work but the real account not working However, I just cannot open a position with Ordersend. my code is like this int value = OrderSend(Symbol(),OP_SELL,0.01,Bid,10,0,skimProfit,"sell",magic,0,Yellow);    Error Ordersend(-1):...
Hello, I'm adding support for 4K displays and I have found that the windows desktop scaling has an effect on the text displays and dialogs I have created. The fixes are simple enough, however the changes need to be kept in line with the value of the desktop scaling size. Does anyone know if there...
Hello, I am trying to retrieve a simple double value from a "data.txt" file in the following function. However the FileOpen() function always returns -1 (INVALID_HANDLE). The "data.txt" only contains 1 value (i.e. 89.55) and is located at MQL4/Files. double ReadNumberFromFile(){   int file_handle;...
Hi   this is a general question about project patterns in MQL4. I got my first decent EA working. In the interest of expediency i stuck all logic in one ea file first. I then refactored it to be a bit more OO and created some classes but everything remained in the one file. Before I develop further...
I would like to know how to Buy with Broker A and automatically my Broker.B will Sell instantly? If my position was closed by Broker B due to margin call, my position in Broker A will closed instantly as well. I want to hedge each other with different broker with automate EA or script. Please advise...
I need custom moving average indicator when i run it 1M time Frame i need to show 5M Time Frame values. anyone have like this indicator?  thanks 
  Array values (3)
Hello, from another software than Metatrader I'm used to the following: When adressing Array values (for example Bars) - in the past - values from 1 upwards are used. Value 0 ist the present bar. (like MT) When adressing Array values - in the future - negative values are used. How does MT4 handles...
1...132133134135136137138139140141142143144145146...1245