[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...
[Deleted]
Hi I have an EA but my broker has decided that now the EA's cannot create an order with stops simultaniously, you must enter then market, then modify the order with the correct stops. Here is some of my code, you can see I have added the OrderModify code but when testing this the EA just seems to...
[Deleted]
hello everyone, i need a little help on finding the error on this code, namely: the orderclose error 4051 and ordersend error 4051 this is a hedging EA that takes 5 levels of lots: 0.01, 0.02, 0.04, 0.07, 0.1 if the previous order takes a -80 point loss, the robot hedges and takes the opposite...
Gentlmen, I shall require your expert assistance. I have MT4 Trading Platform in conjunction with "Oanda" on my home computer. I have purchased a Laptop for travelling purposes, and I need to copy all my trading related MT4 data from one computer to another. I have attempted to download a fresh...
New article Applying The Fisher Transform and Inverse Fisher Transform to Markets Analysis in MetaTrader 5 is published at mql5.com: We now know that probability density function (PDF) of a market cycle does not remind a Gaussian but rather a PDF of a sine wave and most of the indicators assume that...
[Deleted]
Hi, I'm new to forex trading and have come up with my own little formula for working out my s/l levels and amount of risk in pips, cash and % I was wondering if any one knew of a website that would give me the average price for the day on certain pairs. I know I can work it out in excel using a...
[Deleted]
Hello, Can someone help me to merge two indicators, I will wish to interpose a Regression of Momentum: Here is the regression (i-Regr) : https://www.mql5.com/en/code/8417 and a Momentum : https://www.mql5.com/go?link=https://ta.mql4.com/indicators/oscillators/momentum thank you very much

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.