Download MetaTrader 5

MQL4 and MetaTrader 4 - page 747

To post a new topic, please log in or register
Well I've been learning MQL4 for about a month now, and I'd like to share my first EA. I have intentionally created something very simple. It maintains a decent profit factor over all the historical intervals I've tested for both M5 and M15 time frames on EURUSD. For 04/10/2009 through 04/10/2011 it...
Dear Members, i am looking for mt4 internals like howto login to data server, howto fetch data and positions. Can someone give me useful links or tips for this please? regards fx1
Hi everyone, I am sorry if such topic already exists but I am a total newbie in this area. Can anybody tell me if it is possible to create such a program that would connect to my MT4 account and calculate statistic for each trade that has been opened. For instance (stop loss in actual money, risk,...
Is it possible to connect to metatrader 4 account in inverter mode and get data to post it on a webpage ?
Can someone tell me the default font used by MQL4? I have gone through all the fonts available on Window 7 using Word font selector and fail to find a match. Maybe my eyes are deceiving me, or it is not there. Please respond if you know. When I do ObjectSetText() with NULL I get a large gray...
  I can program your ideas (27   1 2 3)
Hi traders If some one has very good strategies and very sure that his/her strategy will be very profitable and can't code it then I can help to you to program it. I'm very experienced in MQL language. Also I know C/C++, and I have some pratice with AI, Fuzzy logic and neural networks. I almost know...
hola. please i need help.how can i get information of pending order as price. is there a function to do that as OrderOpenPrice().
I have a resistance and support indicator. stand alone indicator no need other filter indicator Need help to convert to EA PM if keen to help out. serious EA coder needs reply
Hello to all No programs will optimize. Even the default MACD Sample or the Moving Average will not optimize. When any program is backtested, the results appear not to come close to how they were backtested earlier. Prior to this problem, meaning backtesting and optimization worked fine, I had just...
hello, how to get 5 decimal places because when i used OrderClosePrice() it will round off to 4 decimal only but broker is 5 decimal. thank you
  ad timezone (1)
Hello, Can someone ad an timezone to this indicator ? Tia
Setup: Have multiple instances of the same EA applied to different windows each containing a different currency symbol. Each instance has its own unique magic number. Question: In what order do the EAs trigger? Is there any way to control this? For example, does the window where the first EA was...
Hi, Is it possible to be repaired one EA, so opening a long position instead a short one and the other way around? I mean : the code is the same but when the EA receive the signal to open BUY( long) it open SELL (short). Regards.
I am looking for a Trend Line Indicator that can plot the following: 1) Upper line connecting the higher high of the last 12 bars of the previous day with the higher high of the last 3 bars of the current day and 2) Lower line connecting the lower low of the last 12 bars of the previous day with...
I wrote this EA int start() { //---- Print("History total",OrdersHistoryTotal() ) ; int handle=FileOpen("mffd.csv",FILE_CSV|FILE_READ|FILE_WRITE,';'); FileSeek(handle, 0, SEEK_END); FileWrite(handle, " 0 "," OrdersHistoryTotal()=",OrdersHistoryTotal()...
I'm trying to figure out how I can programmatically rename files. I use ShellExecuteA to xcopy, that works just fine. But xcopy only allows for making a file with a duplicate name, not for copying as a new name (or so I have gathered from googling a bit). Googling for "rename" and ShellExecute only...
  Using spline(s) (22   1 2 3)
This thread will be dedicated to spline(s) usage in technical analysis ________________________ Direct cause for considering splines is the request by simba to create a manual nonlinear trend line, and how ever I thought of it, it seemed that the most logical way of doing it was to use some of the...
Hi All, I am new to MQL4 programming and like to merge 2 Moving Averages indicators to display lines for two set of parameters. I have tried to combine two set of parameters into one indicators, but i can't see the lines although no error reported when I compiled it. Below I attached the combined...
I just recently made my first EA.I was able to learn enough code to be error free.The EA is quite good and I will be glad to post it in the Future. Right now I am having a problem getting it to buy more than .10 Lots.I want to step it up to .5.It has a Lot Optimizer in it with a Decrease Factor...
  How to define (10)
EA with 1 moving average. When have 2 closing bars above moving average to buy. When have 2 closing bars below moving average to sell
  RSI Crosses MA EA help... (11   1 2)
I'm working on a EA thats suppose to buy or sell when crossing the MA line. I also wannt the StopLoss to be 75% of the ATR value. when i try to run the EA in "Test" i get this result And it dosent seam right. Here is the code......
For the purposes of EA development/testing, Im using my Macbook Pro 2.53Gigs/4GB RAM.. I've got Windows 7 running on a virtual machine and all I ever use it for is running metatrader...works very well for the most part except when running backtests & optimizing, it is time-consuming to a point I...
Hi, Has anyone tried running an excel macro from an EA? How can I code that? Anyone have samples? =) Thanks!!
Hello, I'm very confused about why my stop-loss is not being honored in certain cases. I've attached a screen shot that shows the problem (I've seen it at least once before this occurrence). The second trade in my list was a sale. I set the stop loss at 1.39583. It's clear that at the time the...
so... i untick the snychronise with data centre option i empty the data in history centre, import my M1 data, then use the period converter to update the other Periodicities. however, it still updates prices, even though i unticked the data centre sync box, although i am quite sure it does not...
  expired indicator (43   1 2 3 4 5)
Hello, Can someone make this indicator to work ? TIA
2011.04.29 20:40edit| delete Hello! Please, somebody can help me to define "High(iHighest)"more specificly? The following I can find in this Forum: double highestPriceAfterBuy = High[iHighest(NULL,0, MODE_HIGH, iBarShift(NULL, 0, OrderOpenTime()), 0)]; I need the High(iHighest) after closing Order...
How can I change my login name?
Can EA inputs be changed while the EA is live or does changing the inputs stop the EA trading?
Hi, Has any one experienced a problem with switching to different broker? I have got a demo with FXpro, where I wrote EA... and works... but does not want to work on my live acc. with VantageFX. I have downloaded other demos (XTB, Gomarkets) and the script does not work there either. I have...