Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1103

To post a new topic, please log in or register
hello experts, it is possible to create/define custom dialogs that can be raised within a script ? (found nothing about in the Book section) thank you
Hello I prepared a software in C# for reading and writing files which are used to communicate with my expert advisor. This is a sampple code part: f = new FileStream ( "ExpertSave.txt", FileMode .Open, FileAccess .Read, FileShare .None); if (f.CanRead) { StreamReader S = new StreamReader (f); int...
  expert stopped (22   1 2 3)
hi fellas, first of all im NO programmer, but in need of some assistance. I purshased the autopilot yesterday, downloaded and open account, no problem. BUT get this in "expert jornal"2008.03.27 10:08:24 ForexAutoPilot EURUSD,M1: expert stopped 2008.03.27 10:08:24...
gbpusd -> tf = m15 eurusd,usdjpy,gbpjpy -> tf = h1
Created my own custom indicator - functionX.mqh and it works fine on EA but when I tried to graph it using indicator buffers, there is no graphs. Are there any limitations to how complex functionX can be because when functionX is written as double functionX(int i) { return(High[i]); } it works....
Hello I know that trailing stops are executed on client machine. I wanted to know, on every change of trailing stop, if OrderStopLoss() changes or not. And if on every thick, it changes or have an interval of for example change every 5 pips. I need it because I'm copying StopLoss levels to a third...
Hi. I am looking to create a very simple alert that sounds when the Meta Volume candle closes below a certain level. Looking for an alert that will sound when the volume candle closes below 4 on one minute chart and below 50 on a 5 minute chart. Can anyone point me in the right direction on...
I am really interested in Fap Turbo as an EA, but not until I know that it is safe to run on my system. Has anyone out there seen the source?
Hello every body! I want the indicator which shows on chart the currentbar(CandleStick)`s info, such as Open price, High, Low, Close prices.Remember not previous, just current bar`s information. thank you! Joldas.
I am using the same EA on several different charts. I am also using trade context monitoring via Global variables and RefreshRates() to update predefined variables. However I am still getting Error #129 returned occassionaly. Can anyone tell me why the following piece of code does not always give...
On the website of the Automated Trading Championship 2008,an article Pre-Testing Results of the Top Ten Expert Advisors has been published. We decided to make a short excursion back into the past: into the time of preparations for the Championship. We observed in the Forum how the developers that...
Can't see anything relevant when doing a search, but in case anyone knows the answer to this question: Any quick way of zooming in on the "zero divide" line of code, apart from putting a whole bunch of Print statements?
One EA is the server and other EAs are client. I want the server EA send signals to clients EAs. I was thinking of setting up a web server to reside the signal data's file. But can anyone help me a way to let the two EAs communicate directly without using web server? Thanks.
Hi the EMA_CROSS.mq4 working some times but later it doesnt, I Tried many more but no Thnx!
I would like to test my programmed in MQL Expert Advisors, indicators or scripts (despite of the Strategy Tester) before I add it to the real chart. For example if you whenever write the program for the computer you have to compile it before using. If you get an error or some errors during...
Hello, my dears, I have no problems with copying of .ex4 files to MetaTrader 4 in Windows XP Pro. I also know, that the .ex4 files must go in the folder experts\indicators. But how does this go??? Please, writes down to me all steps certainly. Okay? Thank-you to all. Kindly regards Kathrin
For example, I am using a custom indicator that returns something like 1.37895645 which is 8 decimal places, but all I want are the first 4. Is there a way to truncate the rest off? Thanks in advance.
I am new and How can I get the trade severs at the terminal of MetaTrader? The More trade servers, the better. So I can judge which one is better in trading with the terminal. Can any one with kindness help me?
hELLO, when i save a profile, the files chr and the repertory are not created ? can you help me ? RAGE
  As I can... (2)
I know if it is possible to hide or disable the inputs tab in a EA? THK.
I tried to use the & to return values in a library and it does not seems to work, but in the program main it is fine eg if this function is in the program main, it works void CalValue(string symbol, int magic, double& value1, double& value2, double& value3 ) but if I place this function in a library...
Hi, I am trying to code an EA which looks to see if the last bar had a close near the centre and if it did buy or sell on a breakout of the high or low of the same bar but the opening of orders does not happen when I expect. Any ideas? Thanks very much. Code follows....
Hi... I am very new in this area. I just tried writing small programs. But I can not change the current instrument (currency pair). It always set to the last used if I use symbol(). Example: OrderSend(Symbol(),OP_BUYLIMIT,Lots,Ask-10*Point,3,Bid-StopLoss_Buy*Point,Ask+TakeProfit_Buy*Point,"Order...
Simone Ambrogio
Hi, Why the same code works well into a script but it doesn't work in EA even if I make it run one time only through a switch? if(sswitch==0) { int handle; double BarOpenValues[10]; for(int i=0;i<10; i++) BarOpenValues[i]=Open[i]; handle=FileOpen("mydata.dat", FILE_BIN|FILE_WRITE);...
I'm a new forex trader and I'm learning how to program EAs. I'm a programmer by trade, so it should not take too long for me to understand how to program what I would like to do. I'm looking for help in understand the limits of EA. I would like to write and EA that exicutes trades by compairing...
In my earlier topic, I did not explained myself clearly. So, I try to send the problem precisely: if the order I sent is OrderSend(Symbol(),OP_BUY,Lots,Ask,3,bid-StopLoss*Point,Ask+TakeProfit*Point,"macd sample",16384,0,Green); and it is accepted by the main server. And I do not use OrderClose or...
I finished working fewmonths ago on the development of an extraordinary EA in partnershipwith some talented co-workers (in a hedge fund).... The backtest provides a result of $500 to$1.000.000 in about 5 years, with a maximum drawdown of about 50% but with a small deposit of like $500 it's not...
How can I convert into C# code the following C++ code thanks very much. rob
hello, im just walking my firsts steps through programming in MQL4 and I have some questions that someone could answer. Does anyone know how to detect if a position its closed when it reaches the StopLoss limit?? thanks in advance
I just want to take Profit 0.0002 and Error 130 is occured .How can I avoid such error? Can any one with kindness help me?