Download MetaTrader 5

MQL4 and MetaTrader 4 - page 503

To post a new topic, please log in or register
This is my first EA, and I keep getting the  '\end_of_program - unbalanced left parenthesis' error message when compiling, but I can't find any missing parenthesis.  It's based on MACD Sample.  Please help if you can.  Thanks!!!- ----  //| expert initialization...
Dear All Bro,   I want to test my EA by using a long history from 2010 to now. However, My history data base has only 1 year data from 2012. How can I get those data?    I have tried to download the data from the server, still it is not enough.   We know it is important to obtain sufficient data for...
I have a problem when I import the data to MT4 history center,  5-decimal points data had been converted to  4-decimal points (both .csv and .txt  data). Please tell me what is wrong and how to fix the problem?
  function sleep alternative (36   1 2 3 4)
Hello MQL4 community, I've encountered an issue while running an EA including the function Sleep() in the strategy tester. Apparently the tester won't run the EA properly with the inclusion of function Sleep() embedded in the code. Have any coders present discovered an alternative method from...
Hi, i try to send a string from mql to dll and work with them...  Code in MQL: #import "myDLL.dll"    bool SetString(string foo);#import//+-------------------------------------------------------+int start() {    string foo = "bar";    SetString(foo);} Code in DLL (taken from http://www.codeproject...
I have a minor but irritating problem with optimization graph. I installed mt4 (build 438) on my new laptop and when I do optimization, optimization graph shows only dots. In my old computer, also build 438, it connects dots with a line. How do I get optimization graph wih dots connected by lines?...
In order to use price data for any instrument in plotting any indictore on the current chart I appended extern string Security_Name = "EURUSD" under indicator parameters and changed NULL to Security_Name. This works fine as long as the price I am calling in is within the group my price chart...
Hello MQL4 community, Currently, I'm saving prices to a single dimension vector (array) and wish to determine if these prices show upward/downward direction. I am able to complete this task arithmetically but wish to read other coder inputs for simpler methods of going about coding this. Task...
Hi, my problem is: when I put the EA in 15 pairs for example, 1 by 1, this problem doesn't appear. But if I start MT4 with the EA already attached to those 15 pairs MT4 uses 100% CPU until I close it. This is so strange, anyone got a clue?
Komodorpudel
Hello guys,   i am new to programming and forex and that is the reason why i am also using an online EA builder :) So far it worked very well but my problem is, that the EA re -entrys at the same bar every time after a stop loss gets triggerd. This is pretty annoying while using a 5min period. So...
Have problem where I want EA to find data from latest closed order in account history that has special comment. I do not know mql language so good and have problem to figure out logic how to solve this problem    //-- Information from history ordersint      hst,         hstAll=OrdersHistoryTotal()...
  bet  none of you can write an EA like this.  losing money  like a boss lol 
Hi, I want to show the crossover from the daily chart on a H1 or H4 chart. But I only want to show it once. The problem is, since the data is from the daily chart if there is a crossover it will be correct for the entire day on the H1 and H4 chart. So at every new bar on the H1 and H4 chart I will...
I would like to start this rectangle from midnight, how can I specify the time? ObjectCreate("box",OBJ_RECTANGLE,0,Time[24],hprice,Time[0],lprice);
Carl Lema
Hey I have been trying to code an ea that can open orders on different symbols but whenever it tries to open on a symbol that is not the current symbol I get the error "unknown symbol for ordersend function" which is error code 4106. Some one please help!
Well -intentioned rant follows:  There are hundreds of pages on the forum regarding Backtesting limitations and errors, yet a search in the book and documentation reveal nothing in the way of workable solutions. I have spent the last week addressing the well-documented problems with backtesting in...
Dear Mates/Professional here, I am facing problem with meta 4 platform.I used drawing objects such as tradeline,gann analysis,shape, and more for only technical analysis better but it is not continue my screen i draw it after some while it disappered!!! not lasting more time ... My broker is ECN and...
Hello Experts !   Please find the code here. When I try to backtest it, it shows Order Modify Error 1. Your help will be highly appreciated in this regard.   //+------------------------------------------------------------------+// SUPER SONIC EA BASED ON CUSTOM...
I've done a fair amount of back-testing before, but today I have seen something very strange that is interfering with the operation.  When doing a visual back-test (in order to look at the trades and see if they agree with what I intended to automate), at the end of a simulation, 95 indicator...
Hi Coders, being the OO guy that I am, one of my concerns is whatever happens to custom arrays when the lifecycle of an indicator ( within which such arrays are defined)draws to an end. More specifically: Is there any garbage collector which takes care of this, including arrays which have been...
Hello, Is there a way to delete the info  in the data window without deleting the actually indicator. I have some indicators that I want on my charts, but I don't need the info in the data window. Is that possible to do? Thanks
I wanna mention a trading strategy that combine considering swap fixed income and currency pair Hedge. As we know, AUD has higher interest rate compared to USD, JPY, or EUR. and CAD has a middle interest rate. If we hold a position for a long time, swap as kinda fixed income is very considerable....
Hi, I'm new to MetaTrader After installing the software I can see only the Forex symbols. I can not see Futures or indexes, how do I add them?   Thanks 
Hello! As I mentioned in the subject, i wan't to place buttons on a chart.  I know that there are similar posts on this forum, but i can't find the answer to my question. I think that buttons must be provided in such a .dll file, right? And use it in a mql4-script? For learning and testing proposes...
Hi ya..    I was hoping someone could help please.. When using the rectangle tool in MT4 it might show up for few seconds then disappear and won't show on other TF's at all??..however  when using triangle or Ellipse tool they stay on the page and other TF's.. Would any one know how to resolve this...
Hello Everyone,  I have have spent all of my life trying to put the right indicators together for the best result; however, for some odd reason my Metatrader has stopped working on Windows 8.  I was wondering if anyone in here happens to know in what folder Metatrader keeps the indicators that you...
Hello everyone, This may be a simple question, but I am new to programming MQL4 and appreciate the patience. I have conducted a script to take a trade, and the compilation said 0 errors. However when I add it to the chart, nothing happens. The journal records it successfully, but no trade is taken....
May i know how should i fix this problem? i googled the error it says it can be fixed by adding RefreshRates() because the bid /ask values are outdated, i added the refresh function to my code but the same error still jumps out  OrderClose error 138
Hi everyone, I am looking for a script for the buy and sell stop order. I have searched on the net but wasnt able to find it. What the script should do, is the following: Place an buy or/and stop sell order 30 pips away from the market price with a SL and TP. Is there any type of script available?...
No idea is this the place to ask but here is the deal: Is there a price crossing MA EA with the following: BUY set up: 1. Price crossing certain MA 2. BAR CLOSING PASS THE MA 3. Entry on the break of the high of the closed bar with variable for how many pips from the high The Sell has reversed rules...
1...496497498499500501502503504505506507508509510...1244