Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1119

To post a new topic, please log in or register
Is is possible to change the colour of the alert box text so that some parts are in black and others in say red or green? Thanks.
  Use of "!" (3)
Would someone please tell me the significance of the "!" in front of OrderClose and what it does. if (!OrderClose(MyOrderTicket, LotsNumber, Ask, 3, CLR_NONE)) I am attempting to code a simple EA and this is the first time I have come across the "!" being used like this. Regards, KeithN
  Auto trading (1)
I am very New to this trading and could anyone tell me how to start trading with FOREX AUTOPILOT, in demo mode.
PLEASE REMOVE THIS RHREAD
When useing the MarketInfo(Symbol(),MODE_TICKSIZE); or MarketInfo(Symbol(),MODE_POINT); They both return 0 when used on a 5 digit broker. So if you use a broker with 5 digits after the decimal like on the euro 1.12345, it will return 0 instead of the correct return of 0.00001 You can work around it...
So I'm developing another EA using 2 indicators. Everything's chugging away until it hits 01/01/2007. Then BOOM everything crashes again from 2007+. This is the 2nd EA that I've designed that does this. Both EA entering criteria are completely different, yet both still crash at 2007+. Does...
Breakdown system works last 4 months at modest MM of a procorf of 10 %
I'm looking for a simple close and reversescript that will multiply initial lot size for the reversed order. Ialready have a simple close and reverse script, I just need it to multiply lot size. If anyone has this already, or knows how to modify the close and reverse script, please let me know....
  running EAs (1)
How to find the number of EAs runnuing on my terminal ?.
I've been trying to specify a lot size of 0.1 or 0.01 in the Volume argument of the OrderSend function, but what actually gets sent is always a lot size of 1.0. I've tried changing the "Size by default" option in the Trade tab of the Options dialog, but the problem continues. Any suggestions? Thanks...
Hello, anybody has NMACD indicator in this picture? Could you please share it. Thanks in advance ! http://www.forexfactory.com/attachment.php?attachmentid=86279&d=1202908907
Friends, I would like to create orders with a trailing stop using OrderSend() or OrderModify(). is this possible? how do it do it? your help and knowledge is greatly appreciated. thank you very much mql4_newbie
Hi guys.. I am a new forex trader..I was wondering if you can help help finding a way to import buy sell orders directly to metatrader without the need to do it manually...through an excel or text file. Thank you
hello everyone, how to get Ask & Bid before ten seconds ago? Thanks.
Hi, I am new at writing an expert adviser, and I need help with my doublecrossover simple moving average expert adviser. My code is very basic.It sells/buys when the smaller moving average moves below/above thegreater moving average. What I am wanting to do is this.. An order is placed when the...
how can i open a long and short position together at the same time, like i want to open a position for eur/usd long at the same time i want to open a position for short
I have played around for hours now and got nowhere. I need to be able to automatically minimize and then maximize the main MetaTrader window (not a chart window). This is because when you run an EA on MetaTrader it slowly uses up the ram. Open the task manager and watch it do this. But when you...
Can anyone give me a hint please how I could store tickdata for later backtesting on them. Would that even be possible with the implemented backtesting algorithm? Any idea and help would be welcome
Does anyone know how to change the color of a value, such as iHigh, from Blue ( Up ), Red ( Down ) and White ( No Change )? It seems as though I need to be able to store a previous value of iHigh, and compare it to the next value, in order to determine color change. I'm not sure how to accomplish...
I'm not a newbe on MT4 but I have a new requirement ot set up a list of Take Profitsfor partial close outs when you first trade. For example, buy 10 lots, TP 3 lostat +50, 3 lots at +100, and the final 4 at +200. I know I can do it manually butit was pointed out to me that it can be done...
Hi guys!! I'm a newbie traing to write something for metatrader. I would like to ask if somebody can tell me how can I make a pop up box appear when I put my mouse pointer over a candle and right click on it. I think it have something to do with importing a function from windows DLL, but I can be...
I have an indicator (ASC Trend, im sure you all have heard of it) which is said to give a sound alarm when the arrows are shown, but it doesnt seem to give any sound. When i checked the codes, it doesnt attach any sound file, nor does it send me any emails, which is most probably because there are...
Hello all! Actually the question is how to delete pending order? Thanx you!
For greater connection stability I want to run my EA on a remote server. Does anyone know of any services where the MT4 client can run remotely. Taking in to account that mql4 is not a web-based language, then MT4 must be installed on the server to actually build the code and send orders. I know...
Hi I wonder if someone could code divergence into my indicator.
Instead of sitting there and pressing the Page Up key on a chart to download history. PS: Note that I am talking about getting history from a particular broker, and not from History Center or Alpari.
I have an EA that I bought that after forward testing shows that it performs better at different times in the market. I can't get inside the EA to control the timing of trade operations. Can anyone suggest a way to allow the EA to continue running so that its signals are not disturbed, but switch...
Does anybody know a function MQL4, that allows an EA to identify the time unit in which it is working, after it has been launched (In order to display it, on a message alert for instance) ? Thanks Gérald
ANALYZE INDICATOR
hello I had developed an EA for some customers. then, some of them claimed that when this EA is running on one chart(say EURUSD), it has long lags for executing commands on another symbol (say GBPJPY). they are correct becasue tick intervals of the two symbols is different. So, I decided toi put...