Good day traders, when i place orders i also place the takeprofit and the stoploss, I can also determine if the transaction has been closed by: if (myPositions.Select (_Symbol) == false) But I do not know how to determine if the price has touched my takeprofit or stoploss, since I ask the question...
hi! I have a script,and I want to run and test it, but I don't know how to do.
Hi guys.. I'm a C & PHP languages programmer and I would like to learn MQL Does anyone know how and where to start? Is there a difference between MQL4 and MQL5?. If yes, then which is better to learn?
Hello everyone, I read about different pending orders in MT5 but unfortunately I couldn't find what I need. What I need is putting buy orders exactly when the market price reached to a specified point. For example, consider market price of stock_a is $100 at the moment. I guess it will goes down up...
I want to create a text box square 1. All messages are in the box square. 2. I can move the text box square with the mouse I want an example or a way to create it. I try to use Obj_label or OBJ_Text but they can show only Once Line and long text. Thank you.
Hi, I have recently purchased subscription for $190 on 04/01/2019. There were 7 trades since the subscription started with growth of -0.57%. I messaged the gentleman if he was placing trades which are not copied on my account. He has confirmed that he's been trading successfully and advised me to...
Hello everyone, Recently I work and backtest 204060 EA that is in top of famous and profitable experts in Mql5.com, I starting to get backtest of it but in some markets situations the account has been called, What's best setting of this EA? Below link related 204060 EA: https://www.mql5...
Hey guys, Is there a simple code that I can test on my MT5 application to see if my broker allows automatic trading or not? (I am not in Forex market and just like to see does automatic trading work in our market(Iran market) or not? I know my broker allows conditional orders on MT5) ***I also seek
Hello, iam trying to load historical data this way: iClose(Symbol(), PERIOD_M1, iBarShift(Symbol(), PERIOD_M1,-more than 2 years ago- )); Normally its no Problem to get any data. But if iam loading data about 2 years before from testing start, it returns 0.0. If i start the backtesting earlier it...
I want to write an EA that reads a text file with contents like bellow and do automatic trading upon it. Name: stock_a Range: 122 - 124 cost: 1000 Type: buy (IT means today buy the stock_a in prices between 122-124 with total volume of 1000 dollar for example). And the text file will be update...
Hi all, I have questions on MT4's 'Open prices' testing mode. I understand that the open of the current bar gives the signal that the previous bar has closed. Trading decisions are then made based on the CLOSE price of the bar that was just completed, or the OPEN price of the bar that just opened?...
According to this link, https://www.mql5.com/en/docs/files/fileopen, if I use FileOpen my file should be created under my MQL5\files\ directory, but I do not have a files directory. Under \MQL5 I have \experts, \images, \include, \indicators, \scripts. I am not getting an error from an invalid...
I have been using it fine for the past month and suddently it stopps working suddenly. Please help and see the attached screenshot for the journal for the VPS and my MT4 journal.
Hi there, I started with a complex strategy and it would not trade in any tests. So I made simpler ones, right down to a simple average trader. 1 indicator, 1 symbol. (XRPBTC) I didn't play with any settings on these later attempts, just ran the generate, added the most basic things I could, and I...
Hi, I am new to programming in MQL and have had a good look on the site to try and answer this question but to no avail. I only want to enter one trade per candle but if, on the next candle, the signal still holds the EA should make another trade up to a maximum number of lots. I think I...
Hi, im using standard Mq5 library CPositionInfo I would like to ask what is the difference between CPositionInfo.identifier() and CPositionInfo.Ticket(); I have found that some ppl are using Ticket(), but I didnt found it in code. But it is working. For me it looks those values are same. Thank you.
Can I declare variables in a loop, each with a different name? for(int i=0; i<OrdersTotal(); i++) { if(OrderSelect(i, SELECT_BY_POS)) { double var + OrderTicket() = OrderOpenPrice() } } So I would end up with a variable for each order ie. varXXXXXXXX = 1.2548 varYYYYYYYY = 0.8849...
Hello, My broker doesn't allow automatic trading , but I can send buy/sell commands(also conditional commands) manually. So I like to know, if I write an external program, how can I send buy/sell commands from my external program to my MT5
Every strategy and every EA can burn your account. FACT. Best way to use them is to have several different EAs on different account and running them simultaneously using a shielded money management strategy with weekly withdrawals and weekly recalculation of the trading investment. WHAT ARE THE TOP
Hello, The MT4 Optimizer returns 0. What could be the problem? Of course, the robot works on a normal test. More interesting: At the same setting, the robot gives a normal value for EURUSD and 0 for the GBPJPY in the optimizer. Thank you very much, Szabolcs
how would I change the open price of my buy order to lets say +10 from current price or something? I went to the part next to ask, and changed the 50 but it did not do anything. I went and read an article on this site and still could not figure it out if(TestBuy) ord=OrderSend(Symbol(),OP_BUY,0.1...
hey :) I have an EA that creates signals for possible buy/sell entries by placing an arrow above/under the signal candle. my issue is, that depending on the chart wjere the EA is loaded thr arrows are placed too far away or too closely. please review attached images for examples. In case of a sell...
Looking for some suggestions on things I might troubleshoot. I wrote an EA that is running as expected in my MT4 terminal. When I upload the EA to the VPS virtual server, buy and sell orders are placed, but it will "forget" that automated trading is allowed and throw error 4109 when it tries to...
Hello All, I want to make an EA that open position (buy or sell) in exact price, I use OrderSend(...) function like below: if(MarketInfo(Symbol(),MODE_BID)==OpenPrice-PIP){ PendSell(Symbol(),lot,MarketInfo(Symbol(),MODE_BID),MagicNumber);}if(MarketInfo(Symbol()...
Suppose i start some EA in 1h time frame, and then some where in the code the isNewBar() function gets called, it will Print 28-12-2018 22:00:00 for instance... And then i change the time frame to 1m and then the isNewBar() function keeps printing 28-12-2018 22:00:00 I was expecting something like...
Hi All I am thinking about how to write an EA to manage trailing stops for all open orders. It will be attached to a single chart but will manage orders for every symbol. It does not make sense to run the code from OnTick() because it will only execute when the attached chart has a new tick and may...
I am showing my age here but I remember back in the 80's making programs using basic ... Remember that? I look at today's code and it looks like a foreign language. My question is ... Are any of the 'builder' utilities any good? (Simple) ... I have a working manual system but can't pay for...
Hi, I have rectangles on my chart and I want to be able to grab their price levels in my EA but I cannot seem to extract that from the existing object. I can only change them. Does anyone know how to get the price levels of an existing rectangle? The following returns "Name: Rectangle 789 Price:...
Does anyone here know if there is a bridge from Neuroshell Trader to Metatrader 5 (in both directions)? The interface should send data from Metatrader 5 to Neuroshell and corresponding trade commands and queries in both directions. There is a bridge from the manufacturer to Metatrader 4, but...

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.