Download MetaTrader 5

MQL4 and MetaTrader 4 - page 775

To post a new topic, please log in or register
Hello, Does anyone know/have an indicator or script that just alerts when the hourly candle closes? It does not matter if it is a bull candle or bear candle - it is just a way to remind (within MT4) that the hourly candle has closed. This probably already exists (or is simple to develop), so I...
how to translate optimization results, back into the best parameters settings ? like a set file or something ? is this possible ? thanks
use the first code,it works. int init()  {   int OrdersTotalNumber=OrdersTotal();   Print(OrdersTotalNumber);   for(int i=OrdersTotalNumber-1;i>=0;i--) //first code   //for(int i=0;i<OrdersTotalNumber;i++) //second code   {      OrderSelect(i,SELECT_BY_POS...
Hello everyone! I am trying to create an EA based on a simple formula I read on the internet. Some days it appears to be profitable, some days not so much. Either way, I want to create an EA because it's easier to let the computer open trades instantly than typing it all up manually. Here is the...
Hello! A couple of years ago, I started building my "Kanguru" EA. I never finished it and never went live with any version of it. A year ago or so, I changed to Linux and it took me a while to get a grip on MT4 and to continue building my EA. Very recently I came accros a very simple trading idea,...
Hi, i have currently a boring work to do where i can listen music. I have already listend to a few audiobook, so i might use the time. Can anybody recommend a good audiobook, if its about economic and investement its good, if not any book will do the job. thanks Michael
Hi, I have seen many are looking for how to draw an arrow. I am writing this to explain how to draw an arrow in a Label.    ObjectCreate("TrendArrow",OBJ_LABEL,0,0,0); // Create a label named TrendArrow   ObjectSet("TrendArrow", OBJPROP_XDISTANCE, 30); // Set distance on chart...
New article The Implementation of Automatic Analysis of the Elliot Waves in MQL5 is published at mql5.com: One of the most popular methods of market analysis is the Elliott Wave Analysis. However, this process is quite complicated, which leads us to the use of additional tools. One of such...
Ever since updating to the latest build of MT4, I am having a lot of problems with the DDE data. I have used this in Excel 2007 spread for over a year without any issues, however, when I try to open the spreadsheet now, it will frequently hang whilst trying to link with the data. The only work...
hi, thank you for watching my subject. I made EA for automatic trading. This supposed to order when there is big gap between last days close price and new days open price. But even when I see there is big price gap, my EA did not make order surely. Could you please tell me which part of my EA...
Want torecord your mobile calls? Get bored with pressing the buildin record buttonevery time you want to record on your mobile? WM Sound Recorder is an easy-to-use application which could auto record sound andphone calls in Windows Mobile Pocket PC. And it also can play the record fileso that you...
Hi: Checking to see if anyone has a solid short term entry condition(s) such as 15M or 30M that will compliment my longer time frame entry condition? As we know, it is important to have correct pre-conditions for shorter term entries. This will be a collaboration in that we share strategies to...
Hello everyone, I have to ask you because I am tired of looking for a mistake in here. I have this code and have no idea why it is leaving the start () function after the big (main) for loop. EDIT: And second thing is - even if (sometimes it happens) program gets through the for loop i get...
  Help Please (3)
I've been reading searching trying and failing for 3 days on this EA and I cant figure out some things. here is what I have right now. static int prevtime = 0; //Variables int start() //Program start....
Please suggest me an Automatic indicator which can draw, In a much shorter-term time frame (let me say 60 minute) for an up move. Draw a line from low to the high then take a parallel to the most extreme portion of the move. When prices begin to breaking below this line, the previous move is done.
I am looking for someone who can build me or help me in her automatic trading robot to work on a four hour time frame. Specifications to follow. My program will consist of: -has to be able to determine trend -be able to determine previous high previous low -able to work on multiple currency -able...
This is my first project with trade operations. What I'm going for here is: -Set a limit order upon initialize -At first tick, Modify to Set SL Value, Set TP 1 and TP2 values, Draw Take profit lines -Wait for price to hit TP1, sell 1/3 position then modify SL to breakeven -Wait for price to thi TP2,...
i have my first EX and it seems that do not work on tester do not finish the test but give me no errors with 90% Modeling quality. my email ma2moon13@hotmail.com thnx
  rating ? (2)
who gives the EA a rating under codebase ? a moderator ? thanks
thank you also for the first help!! :-) i test my stradegy in 2 different computers with differend results why? thnks in advance
I have been coding my first EA. There is one area that almost everthing has an errors, assignment expected, unexpected tokens, semi-colons, in places that shoulden't have them. I have marked a few examples in comments. Why would this one area do this? I really need help, I don't know what eles to...
Does anyone know of a formula for calculating the momentum of standard deviation? I'm seeking to have RSI modified to chart the momentum of standard deviation in much the same way RSI normally charts the momentum of price. Thus, a rise in StdDev with rising price would show its momentum going...
Hello everybody, I'm having problems with the MarketInfo command. The following little test program deliveres a correct result when attached to the EURUSD chart. However it doesn't deliver any result when attached to a chart different than EURUSD. Does anybody have an idea why MarketInfo command...
Hello, I am in the process of finshing up my first EA. I still have a few importain things to add (like the ordersent) but I felt like it was time to debug. I was able to get everything fixed but a Ending } Expected. I know that this is due to unbalanced brackets and I have gone over every line a...
On my pc running EA which open trade. If trade open, MT write info record about this trade to window terminal->strategies. (see image) My question: How do I disable write this record?
And so do I need to use mutexes on dll variables to prevent conflicts?
Hi, Any help appreciated. Im trying to make a code to close an open order at a percentage of my account equity / account balance ie. 50%.Ive tried this below. It compiles but doesnt work on test. any ideas? Cheers // Exit market // calclate risk value % double Equity...
I need a function that will close the losing trades (one at a time) when the margin level is equal or below 100%, until the margin level is above 100%. - closing the the biggest losing order first.
Hi All, Does anybody know how to get Fib level price values programmatically assuming you know the Fib name (object name)? thanks
Hi, I would like my EA to return the profit for all my open buy orders only. Can anyone help me code this, Tanks in advance