Download MetaTrader 5

MQL4 and MetaTrader 4 - page 739

To post a new topic, please log in or register
  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...
Where is the mistake, cause it didn't started.
Hello guys, Im trying to build my first EA. I got some Visual Basic courses at highschool (years ago), but that hasn't helped me much. I'm very motivated to learn though. I've been spending a lot of hours on the underneath code (yes, you can laugh) but things aren't working as they should. So it's...
The drop-down menu in the tester terminal describes the control points model as "a very crude method based on the nearest less timeframe". What exactly does that entail? How does it work? Comparing results via the 'every tik' model and control points, I see very little discrepancy.
I'm still learning mql4 (one month experience :P) and i want my EA to write the current Day, TIme and Order, each time that the order changes. The first part was easy, but when my ea put some data in the csv file, it makes only one line and on each writting, this line is rewrited. Example: Today is...
Hi I have an EA that draws the objects on the chart, but after a while I find this slows down metatrader, I ma trying to add some code to delete the graphics at specified times, here is my current code: double BB(string up_dn, int barback){int tf = 0;int theBandsPeriod; if(Period() ==...