MQL4 and MetaTrader 4 - page 229

To post a new topic, please log in or register
#property version   "1.00"#property strict#property indicator_chart_window#property indicator_buffers 1//+------------------------------------------------------------------+//| Custom indicator initialization function...
A link would be appreciated.  Thank you.
I just create a EA that contain a .DLL created by my self. The EA work fine when I put it in one symbol (anyone), but when I try to run the EA in more that one symbol, it crash. I made a copy of the EA without calling the DLL and everything work fine, so I'm assuming that the problem is when each EA...
Hi... anyone knows how to replicate the drag and drop order to a graph in expert? (Closed order) I have a code that send me an email with graph when an order close (tp or sl) but i'd like to show the symbols (arrow of open and close and line between both) Sorry for bad english... Regards!!!
Hi and thanks for looking... I'm trying to get an Expert Advisor to work and have done the following: Downloaded the EA from the net and unzipped it.I opened my data folder from MT4 and copied the EA to it.Restarted MT4.My EA (Overlay Chart) appears in the Navigator window.Confirmed that the .mq4...
Hi, I hope you can help, I have an indicator that I am working on and want to draw a trendline however I am having trouble in where I should declare the anchor points. Any suggestions would be appreciated..... 
How can i got a alert when a trade is close? hmm. I mean, then i start a trade, but maybe then i load mt4 again i see its close because hit the profit or stoploss point. But i never got any alert about that. Only know when i re-open my mt4 app again. So i want to know how can i got a notification...
where should i insert this cord to protect the indicator please be specific thanks int start(){    string char[256]; int i;  for (i = 0; i < 256; i++) char[i] = CharToStr(i);  // Account number, on which expert is allowed to work  int    AllowedAccountNo = StrToInteger(/* 49153 */...
noobshow
Hi, I want to get GMT offset automatically in my expert, i tried using this code but i ain't sure its working like it should be... double ServerGmtOffsetHours=(TimeCurrent()-TimeGMT())/3600;  Print(DoubleToStr(ServerGmtOffsetHours));    I don't think this is correct, please how do i get the correct...
Hello everybody, I noticed that my strategy based on CCI does enter the position in the right time. Here is the picture of example:   You can clearly see, that the numbers dont fit at all. Do you know why is this happening? anybody had similar experience?   Thank you for any advice. 
i use an indicator which sends push notifications, but this week for the first time i started to see the following:   2015.11.25 10:13:14.864 Notifications: failed read data (notify.mql5.com:443 failed) 2015.11.25 10:13:14.864 Notifications: failed send request (notify.mql5.com:443 failed)   this...
After the last uptade, metatrader automatically close in seconds when platform is working. I had done no chages in it, the close is automatic. Before the last update metatrader were working properly. This is the inform:   Firma con problemas:   Nombre del evento de problema: BEX   Nombre de la...
Hi, after a reboot of my VPS I opened my MT4 and want to start trading. Normally I can use the one click trading option without any problems. This time, the "accept eula dialog" pop ups again. I don't know exactly what happened, maybe I clicked "cancel" or missed the "ok" button, but since this time...
Any suggestions as to why would be appreciated. regards ........ 
Hello I want this EA launches with default with Type = NO_ORDER, but each time it launches with the last parameter used. Is it possible? Thank you #property copyright "Copyright 2014, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strictinput...
I am trying to dra object using Object create function giving properly time and price coordinates. As far as time coordinate is concered if it Time[n] where n=0,1,2,... it is ok. I have no problem drawing object but hen I use n= -1,-2,-3,..... it desnt draw on future bar postions. I get time value...
I use Window7 64 bit ....face problem with xm broker also removed cache and cookies ...removed and re installed but still face same problem can anyone help why its not worked .......also attached files ....
Hi all, I'm learning to program mql4. I want to ask a simple question because I'm trying to learn the behavior of buffers in one indicator. If for example, I want to add / subtract the value of the buffer prior Bar an amount according to a certain condition, how I relate to the previous buffer?...
...so that I can use that to name a csv-file which the EA produces. Is there already a built-in variable for that?
Hi,  I would like to report that new install of MT4 build 910 and 920 will generate "ex4 write error" and will NOT generate any ex4 file, even those that came with the installer. Can the developer look into it and rectify the error. If you upgrade from a older build, there won't be any error, only...
Hi, I made some changes to one of my EAs it is about searching for already opened orders by their magic nbr. I have set different magic nbr for the ea, when i attached it to different currencies, but still  order opened stops the other EAs from trading with different currencies. Can you help me ?...
Good morning, I am looking to expand some things to my indicator but I'm struggling, I ask you kindly support, although I imagine many things are banality. 1: you can write the formula to put my function (already entered in the editor) to calculate the percentage deviation daily and monthly (the...
Dear forum I am new in this forum. I code an AE base on these rules :  *** Trade in H1 period using 2 CCI Crossing ( Short CCI & Long CCI ) 1/ Long trend for D1 Period : using Stochatic Indicator for D1 Periold. - When Main Line cross up the Signal Line : BUY Status active : just open Buy and Close...
Hi Coders, I'm running many optimizations. I just realized that there are differents in the resutls at the same EA with same backtest options. I found the couse of the different results: the backtest uses different tick values at the cross currency pairs. For example: My account currency is USD and...
Hi all ,  I hope you re all fine.  I ve already used the native webrequest function to POST data. Usually I post data using these lines below **********  char dataUpdatePost[];  char dataUpdateResult[]; string dataUpdateStr = "dataUpdateFlag=YES&orderNumber=" + orderNumber + "&profit=" + profit +...
hi in my ea, i would like to read the forex news  on 16/11/2015 from forexfactory calendar on 16/11/2015, i wrote this code: void getNewsCalendar()  {   string cookie=NULL,headers;   char post[],result[];   int res;   string calendar_url="http://www.forexfactory.com/calendar.php?day=nov16.2015";...
Hi All, What I have notice on MT4 is that if you have 100 on your account and open a position for all 100, system still allows you to open position for another 100 in the opposite direction ultimately investing 200 even though on the account is physically only a 100. I would like to ask if anybody...
To whomit may be concern I havesuccessfully compiled my program without any error and I had results when I have checked my Program with Strategy tester untillast week. But todays I have NO results! (No buy or sell signals) and alsoNo error while I testing the program with EURUSD 5MIN charts. Could...
  Permissions (1)
Hello guys,  I'm having a big issue with permissions on Windows 10/8.1 ... I wanted to import data, but it fails with: 2015.11.28 23:27:42.191 HistoryCenter: create folder 'history\downloads\USDJPY' failed, check permissions   I'm frustrated with this issue. I can not install MetaTrader without...
#property copyright "sample"#property link      "http://sample.sample"#property version   "1.00"#property indicator_buffers 7#property strict#property indicator_chart_window                        // or indicator_separate_window#property indicator_plots   3                           //How Many...