Download MetaTrader 5

MQL4 and MetaTrader 4 - page 278

To post a new topic, please log in or register
#property indicator_maximum and #property indicator_minimum are being ignored in my indicator. I can set them manually, but i want to drop the indicator on more than one chart and don't want to have to do it manually. I'm using: #property indicator_maximum 10 #property indicator_minimum 0 PS: I...
New article How to Access the MySQL Database from MQL5 (MQL4) has been published: The article describes the development of an interface between MQL and the MySQL database. It discusses existing practical solutions and offers a more convenient way to implement a library for working with databases....
Hi MQL community, After manipulating one of my EA today, I noticed that the IMA function will always return 0 if it's not called with a 'standard' MT4 timeframe. For example, it returns 0 if doing: iMA(null,PERIOD_M20,[....]) or iMA(null,PERIOD_M10,[....]) The MQL doc for iMA says to use any of the...
How do i get the Point amount caculation  between OrderOpenPrice and StoppLoss in an open order? thanks 
Hi,  I have spent a frustrating few hours attempting to rename an Rectangle object from a class function call inside the OnEvent.   void OnChartEvent(const int id,                  const long &lparam,                  const double &dparam,                  const string &sparam)  {//---   m_Prime...
Hi mql4 Forum! Ive downloaded the script from this forum post: https://forum.mql4.com/35708/page2 to export my history. I changed it so that it creates a txt and not a csv file and im importing the file directly to excel. My question: The file noe does not contain the open trades. Is it possible to...
Hello, i have next code and as title says i would like to have the expiry from pending to be used for the open position. eg.: I open pending at 2:15 with expiry at 3:15. If position will be open at 3:14 i would like to be close at 3:15. void ClosePosition(){   int ticket = OrderTicket();...
Hi there,I would appreciate if someone could please answer this question.I have an indicator that works on Metatrader4 on a PC. I would also like it to ensure it works on Metatrader4 on a MAC but don't have one. Are there any changes I need to make for it to work on a MAC?Thanks in advance for...
dear coders, how can one modify OrderComment? thanks
Got a really silly problem with my MetaEditor, i tried to reinstall, and tried different brokers MT4s, nothing works.., i wonder to how can i fix this thing, cause it is not to configurable not to use the F1..., when i press the F1 on a selected word, it just moves to the Help Tab, but wont show...
hey, can someone add an email alert to this indicator so that when it crosses lines it sends me and email?  ty
Hi I have an EA which works great in real time, however the results differ during back testing. In back testing signals are being triggered when they shouldn't be. I've isolated the problem to be the ADX indicators. Specifically to either +DI or -DI. When you look at the data plotted on the chart...
Hello, Currently i have installed MT4 Report on my online server, and i am getting all the data of MT4 into mySQL database. I am  looking for a solution to have the data of MT4 in MongoDB insteaf of mySQL I know that i can sync mySQL database to MongoDB but this is not the best solution as the...
Running /portable mode and I also removed permissions to write to the appdata\roaming\metaquotes folder since I do not want any files anywhere outside of the installation directory. Right now directory is C:\Custom\Metatrader\ It's reading indicators out of C:\Custom\Metatrader\MQL4\Indicators...
Hello, I installed MT4 on Win 8 and when I attempt to use the external dll library similar to the sample that coming with MT4 I get an error " can't load library xxx.dll error 126". What is the problem that causes the sample of MT4 to not working also ? If anyone face this problem and can help I...
When you draw a Trendline by Angle, the angle in degrees of a Trendline is only a corner "visual" tied to the monitor, not to the chart.  For example, a Trendline by Angle of 45 degrees is a line of 45 degrees on the display. Zooming-in or zooming-out or compressing the vertical scale of prices, or...
Function IsTradeAllowed now accepts two parameters. Undocumented. Does anybody know the meaning of the two params?
Hi,  I'm learning to program. I already used several functions, but now I want to know how to program multi time frame indicators. For example, how I can get signals fractals "m15" in "m5" (current time frame)?  I do not know how to work with functions of time or bars.  If anyone can tell me how I...
cant withdraw funds since 2014.10.14 ????
Hi,  I am a new member in this web. I am learning to programm on mql4. First i create two indicators: - create arrows with values of fractal down - create arrows with values of fractal up.   Now, i want connect this two indicator with other indicator wit the function "icustom". I have this for...
 have created an ea for fbs . everything works fine in demo account but when it comes to the real account . I get trade disabled error(error 133)..Are there any pre requisites for auto trading using expert advisor in FBS??
I believe I have used these 2 routines on several occasions and never had a warning / problem. When I compile my EA I get the warning "macro redefinition" with line # for line in second routine.  Obviously not critical but would like to understand why the warning is occurring and what to do to...
Hey guys,  it seemed to be a simple thing but I don't know how to do it: I wanted to make an indicator which prints arrows above a Pinbar. Pretty easy so far. But I don't want the indicator check the whole chart with every tick. The Pinbars in the past do not change and therefore I wanted to print...
Im curious if you are able to alter or eliminate the spread when doing backtesting and for optimization (only using BID price) ? I have found older coding, but it doesnt seem to work on the 711 Mt4 build, maybe Im doing some wrong ? Or pointing me in the right direction ? Im trying to develop...
Hi,   after update to 735, notifications don't work. I tested on 3 different brokers, demo and real. When the terminal try to send notification, it return this in log: Notifications: failed send request (notifiy.mq5l.com:443 failed) Notifications: failed read data (notify.mq5l.com:443 failed)...
am trying to draw short horizontal lines that form part of a 'cross' on charts using the OBJ_TREND function. void DrawLines(double price, int tf, color col){ datetime time_zero = iTime(NULL,tf,bar);                //bar is global int barshift_zero = iBarShift(NULL,0,time_zero); datetime...
Asus Transformer Book T100. Intel Atom Z3740 1.33GHz Quad Processor, 32GB SSD, 2GBDDR3, Intel HD Graphics, Win 8.1 I didn't find much in the way of minimum specifications for MT4 but I want to run this laptop 24/7, do you think I could run 12 MT4 EA terminals? The EAs aren't really that intensive...
Hi all I am trying to build a script that allows to send several pending orders (as a batch) for several pair but have not been able to find how to make it work. This is what I have: int start()   {     RefreshRates();    while( IsTradeContextBusy() ) { Sleep(100); } //----    int ticket=...
  xppivotalerts (1)
Is there a version that send email along with displaying alerts on the screen.
Hi, are here some people that can tell us (me) about their experience with running mt4 on (vps) either KVM with Windows || Linux+Wine or directly Linux+Wine compared to either WindowsServer: crashes, updates, (backtest-) speed, .. Thanks in advance! Gooly