MQL4 and MetaTrader 4 - page 621

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??
[Deleted]
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,...
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...
[Deleted]
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...
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...
[Deleted]
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...
Hi,  I am new to this forum and mql4 so please forgive my basic question. I knew from before that some other platforms didn't let a Buy and a Sell position to be open at the same time. For example if you had a buy position, then they didn't let you to open a separate sell position and instead they...
i recently had to download a new mt4, and i cannot find the editor or compiler.  i thought it all used to come in as a package.  has that changed?  anyhow, from where can i find and download the editor and compiler(web address)?
Can someone please give options how to include a simple license into an indicator with mql4. I did not find much information. Thanks you.
I very new to MT4.  I got to the point I wanted to  download an indicator.  I like the one called HLC from the previous day.   It provides a way of shifting the lines to the present day. I was able to download the indicator. I chose the "common MT4"  method. I could not see an obvious way to put it...
Hello All, My EA is burning out at times of high volatility. I am trying to avoid trading during a major news. Any pointers or suggestions or articles towards one? Right now I am thinking of storing news event timings in an array. Then compare with the server time. Anything to keep in mind?...
[Deleted]
Hello everyone, i want to open only 1 SELLSTOP  and 1 BUYSTOP  Pending Order. i am using this below script. when i start EA it work greate and open 1 BUYSTOP and 1 SELLSTOP. But My problem is some time EA Open or make Duplicate orders.  Mean's When i close Sellstop order it open again sellstop...
vol=MathFloor(AccountEquity())/10000;  {  for( int count=0;count<OrdersTotal();count++)  {  OrderSelect(count,SELECT_BY_POS,MODE_TRADES);  if (OrderType()==1)  {  vask=MarketInfo(OrderSymbol(),MODE_ASK);  OrderClose(OrderTicket(),vol,vask,clrAliceBlue);  Print("OrderClose error",...
I want to make an EA.For this i need info from Data Windw i have to get Value of  EMA,GHL,QTI indicator.Can any one suggest how can access in MT4 Editor
Hi all, could you give me some reference or url to learn about chart a synthetic product, i mean, for example chart the substraction of two pairs or indexes. Is it posible two create synthetic products and backtest them with mt4?. Regards. 
G'day all I had this custom indicator made and for what I want it is a little beauty. It basically draws a box around inside bars, double inside bars, triple inside and so on. But I had it designed to work on smaller timeframes. A couple of things I don't like. But those are separate issues.  This...
[Deleted]
Hello Fellow Members, I had a question concerning pivot points and datahistory. All pivot point indicators I find for MT4 only allow for the pivots tobe applied to the current day. I wanted to do some backtesting using pivotspoints but I’ve had to calculate them by hand and use the horizontal line...
[Deleted]
Hi guys! How can i make indicator or expert advisor work only in MT4 strategy tester? Is there any peace of code?
Zero divides will cause an indicator to detach from a chart, but as seen here this is not the case. There is no error. Just a message that it was removed.
I wrote a small code to delete all order . At first it looks like this : void Close_Grid(){            for (int i = OrdersTotal()-1; i>=0;i--)               {                  if (OrderSelect(i,SELECT_BY_POS) == True)                     {                        if((OrderSymbol()==Symbol()) &&...