[Deleted]
I'm new to MT4. I have 2 include files (file_1.mqh & file_2.mqh). They are both general purpose functions, but for organizational purposes I would like to keep them in 2 files. Each file uses a function in the other, so I always get an error saying "some_function() doesn't exist" when I try to...
[Deleted]
Hi, I would appreciate some help on the two issues described below. If a user drags and drops an EA to the chart, is there any way for this EA to find out the exact time/price where the user has dropped/released the EA on the chart? Another question: can an EA make some kind of call to the user...
Hello I create trading ideas in Excel and then write an EA based on these rules. I am stuck however with Average Deviation. This yields different results than Standard Deviation but I do not know how to write it. Here is an example of the Excel code and I would be very grateful if someone can...
[Deleted]
I know this is a weird question, but I'm trying to figures out what kind of things are possible in MT4, so I'm experimenting. If an include file has errors saying that a variable is not defined, but it is defined in the mq4 file that #includes it, will the script or indicator still operate properly?...
[Deleted]
I use the #include statement in an MQ4 file to #include an mqh file. When I compile it, there is no error. I then go the the mqh file and put in an obvious error, but don't compile it. I then go back to the MQ4 file and compile it again and there is no error. That tells me that the compiler...
[Deleted]
I am working on a strategy the places trades on multiple pairs. I use MarketInfo("GBPUSD", quantitative variable),MarketInfo("GBPJPY", quantitative variable),MarketInfo("EURJPY", quantitative variable) etc... to retrieve info for all pairs and I send all the required info with the respective...
[Deleted]
So i am just starting to learn MQL4 and i have read couple of tutorials. So can someone give me general directions how to code Parabolic SAR and set that MT opens position whenever SAR shows trend change. And second thing is that MT opens position 10 times my balance. Thank you
I need to run MT4 in Linux OS, I know this can be done through a software called WINE which allows to emulate windows' software. However, I also need to know if MT4 can be run in some sort of "batch mode", I mean, like a command line (e.g. terminal.exe -optimize) and execute optimizations from...
Hi all, recently I've developed a EA in MT5 and would like to transfer the transactions done in MT5 to MT4 through a set of programs offered in https://www.mql5.com/en/articles/189. It composes of 2 programs, one each in MT5 and MT4. The bug that I have found was in the program in MT4 so I would...
MetaTrader 4 Client Terminal build 402 Terminal: Fixed timezone correction when uploading history to History Center (F2 key). Terminal: Fixed display of graphs on scale 1-1 for characters with 5 digits. Fixed messages on the forum and the kreshlogs. The live update will be available through the
[Deleted]
When I compile my code I get an error that says "ErrorDescription": function is not defined. I used it in my code to place buy and sell orders and I forgot to put the preprocessor #include<stdlib.mqh> which is the library that has the defined ErrorDescription() function. But for some reason when I...
[Deleted]
Hello, I am currently developing an EA, but I have a little problem. I would select the last trade in the history (closed) Type Buy or Sell and recover its profit and its type. I made a small image to more clearly explain my goal. I could do some research, I try to make a loop with...
Pls help me write a string of code to calculate the MA of an indicator. This is what I have tried so far: for (int a=0; a< MA_Period; a++) double CCI = iCCI(NULL, 0, CCI_Period, PRICE_CLOSE, Current + a); double MA_of_CCI=iMAOnArray(array[CCI], 0, MA_Period, 0, Ma_Method, 0) ;...
I have these indicators but when I try to load them I get a message that my account is not authorized to run these indicators. These indicators are attached. Can anyone help me? Thanks.
[Deleted]
HELLO I am a beginner in the forex and I have good indicators to go on the market and, if possible, good tools to analyze themarche.j 'really would like you to help me have a real tool for this thank you to everyone and good trade
Hi Guys, I have this EA but the magic Number does not work. I did not program it all myself and I tried to fix the MN for days but I do not get it. Can anyone help me. Everyelse is good so far. extern int MagicNumber = 123456;extern double Lots=0.01;extern int Timeframe=0;extern...
[Deleted]
I am printing the following statement: Print(Order_Symbol, ",", Order_Quantity, ",",(OrderType() == 1),",", (Order_Quantity == 0)); It returns (symbol, 0, 1, 0) How can Order_Quantity = 0 and Order_Quantity != 0 in the same statement? Order_Quantity is declared as a double variable.
This thread was created to systematise approaches to trading. I'll post my thoughts on it to start with so I don't forget :)
[Deleted]
Hi I am using ibarshift to identify the daily start time of a session for my EA: double dHi = nd(iHigh(Symbol(),Period(),iHighest(Symbol(),Period(),MODE_HIGH,iBarShift(Symbol(),Period(),dst,false)))); The "dst" is defined in the EA already, so if dst is 00:00hours then it will look for the...
Thanks for your help Raptor. I'll keep reading and trying.
Hi, Could you help me, I want my system react only on prices at the end of given Timeframe i.e each 5min or 1 hour, but not by each tick? MA is calculating ok, but I want signals were given by the same timeframe. Appreciate, Pavel
Hi hope someone might point this newbie in the right direction. I was looking at a strategy recently where the main chart price bars changed color dependent on the plot of the MACD: -Green price bars when the MACD line above signal line and the zero line, Red price bars red when the MACD line is...
Hi, In lesson 13, there is (My First EA) - based on dual moving average crosses with trailing stop. as shown here: http://paste.pound-python.org/show/10966/ I'm Noob coder just learning and want to experiment some now that I've read the lesssons and Documentation. I'm guessing I can simply just
Hello, I'm trying to code a buystop order, and I want to set expiration as open time of current bar plus 120 seconds. I tried,Time[0] + 120, in the expiration field, but it yiels invalid trade parameters error. Does anyone know how to get it right? Thanks
[Deleted]
HI, Im new to systems trading, ive traded manually for some time now. im trying to use a gator oscillator as a way to filter out wihpsaw/ranging markets. i want to code it so that it BUYs when gator is above 0.00060 Level and SELL when gator is below the -0.00060 Level. can any one help out? with...
Who can tell me whether is possible for EA to send signal it generated as a text massage/Email to people as an alert automatically from my MT4 platform and also do the same in my platform?
[Deleted]
Isn't any other way to use the EA without keeping the computer online all the time? When we back test a EA, the strategy tester shows the result for a long period, like a year or so, but it's not easy to have a computer stayed online 24-7-365 !! I'm looking for something like a Server to upload the...
I am a beginner and busy writing an EA. Some of my OrderSend code works very well, but the following code which is similar to those who work well, goes into a loop creating one SellStop order after another in a never ending sequence. I put in a test of "if FirstSellTicket ==0;, but his seems to be...
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.