[Deleted]
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
[Deleted]
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()...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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
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!!
[Deleted]
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
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...
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...
[Deleted]
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
[Deleted]
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...
[Deleted]
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() ==...
[Deleted]
Greetings everyone, I'm currently facing a dillema. A customer wanted to get a source code file (mq4) for an EA he asked me to do. I agreed to do the EA for no fee, as I was only interested in honing my skills and getting some fresh ideas, none of which has changed in my mind, however I had no...
Is there any metaeditor 4 and metatrader 4 online class? Where can I start from to learn them? Compare metaeditor 4 and 5 which is more powerful, friendly and easy to use or learn?
New article MQL5 Wizard: New Version is published at mql5.com: The article contains descriptions of the new features available in the updated MQL5 Wizard. The modified architecture of signals allow creating trading robots based on the combination of various market patterns. The example contained in...
Is it correct that there is a problem with the search function? I get the message "An error occurred. Please try again later." But I get this message already now for 2 days. Is there any helpdesk to whom I can address this problem?
Do you have any online class about metaeditor 5 and metatrader 5? Where can I start from to learn them? Compare metaeditor 4 and 5 which is more powerful, friendly and easy to use or learn?
Does the Take profit of a BUY close on the Bid or the Ask and ther reverse Does the Take profit of a SELL close on which? Sometimes I just can't think properly - this one of those moments.
[Deleted]
int CalculateCurrentOrders(string symbol) { int buys=0,sells=0; //---- for(int i=0;i<OrdersTotal();i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break; if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA) { if(OrderType()==OP_BUY) buys++;...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.