Hello everybody, I would like to know how to get the closing price of Friday and the opening price on Sunday for an operation that shows the difference between these two prices and shows it on the chart. Suppose the price of the EURUSD has closed Friday at 1.36095 and today(Sunday) the opening price...
I was running an optimization for 4 days and the computer lost power, and the results do not seem to be saved inside mt4 - I checked the logs but dont see any record of it. Does mt4 save optimization results in a log file, as it's optimizing, as it appears inside the terminal window
I want to track my open orders, and when one gets close to it's stop loss, I want to place an order in the opposite direction, and when either of them get to stop loss or take profit, they both close at the same time. Does anyone already have some code for this that I can have and play with? Thanks...
[Deleted]
Is there any way to change where an EA places an order? I am looking to set up EA that places orders at the open of the next bar after something occurs. Any idea what line(s) of code I would need to accomplish this? Thanks!
[Deleted]
Alright, I've put together a strategy that is supposed to buy at the open of the next bar when the previous bar's Close > Open. The trade ends either at my stop/limit or when the Close < Open (if I haven't hit my stop/target, my trade should end at the open of the down close). I cannot get this code...
In MQL for any indicator say Istochastic() regardless of what parameters input, is the indicator value updated with every incoming tick or is it updated with some time candle
[Deleted]
As I know, until now there is no support to develop mt4 or mt5 progran to run on windows phone 7 platform, any planning in future to develop this support?
I created a very, very simple expert advisor with a very simple strategy. I have run several backtests on few brokers with no error. However, when I run demo or forward test on broker FXOpen (ECN Demo Server), it show some comment which I cannot figure out why. My expert advisor do not have any...
[Deleted]
Something I have noticed both on my computer (XP) and on my VPS (Server 2003) is that when I run many MT4 terminals then Windows start behaving badly, not just MT$ but any open windows application. (I run around 20 terminals but have decreased Max bars in history/chart to a minimum in most of the...
I will write a free automatic trading function for the AutoGraf 4 application. AutoGraf 4 is an application for manual, semi-automatic and automatic order management in MetaTrader 4 client terminal. The automatic trade management mode implies the execution of the AT automatic trade function
Please, Does anyone know if there is any way to get the price at which the broker requotes a trade request, from an EA? I tried the below: 1. Call RefreshRates() after OrderSend() gets requote error message (138) 2. Call MarketInfo(), to get current market price but the price I get is not the price
[Deleted]
Hi, I would like to scan the last 24 hourly bars and find the 9 o'clock bar then store its open. Is there a function that return only the hour for each bar something like iTime(NULL,0,i)? How else can I solve the problem of finding the 9 o'clock bar? Many thanks
The question is as above in the subject. Has anybody any idea? What MQL4 expression use for assign the expert to the only one computer? The best way will be use mainboard s/n...
Hi, I would like to know how can I execute a calculus only once per bar. I was trying to compare current time to last bar beginning time, but it did not work and to me it makes no sense. I already read others posts here, but I could not find any solution that worked. Thanks #property copyright...
can someone show me what needs to be changed to get the following code working? I'm having 2 pending orders, which need to be modified (with magicnumber 222 and 333). When a green line on the chart is moving, it needs to adjust the openprice, TP and SL on the pending orders. Here is what i have done...
So I just realized that you can take moving averages of indicators in metatrader. I've been getting some decent (manual backtesting) results by taking the EMA of the ADX and combining it with the PSAR, and I'd like to automate this system. However, I need to somehow define this EMA-ADX combo...
[Deleted]
My name is cesar, and I need your help, i have a great strategy but i don't programming in mql4, so i need that if you create this EA, Description Pair: GBP/USD Time Frame 15 minutes I need that the EA calculate the high level and the low level before the london opening, I need that EA show the...
[Deleted]
hi everyone good day i have this EA, but does not attach with my gbp/usd chart , my I help please thanks
I copied EA's to MT5. They do not appear in navigator indicators. I tried expert too, and they're not there either. I copied to program files\ metatrader 5\mql5\ indicators. They do appear over in program files folder. I installed EA's before in mt4. So I know how to do this.Any help, Thank-You.
[Deleted]
Within a Script, I would like to open a new chart, but can find no documentaion on how to do this. Ideally, I would prefer to skip the solutions that include sending keys to the main terminal window (i.e. ALT-F N). I have found examples of how to attach an EA to a chart : int MessageNumber =...
[Deleted]
I have heard of a service where a trader has a stable of customers and each trade the trader makes is made in tandem on each customer's MT4 platform. The size of the position is in the ratio of the trader's account and the customers' account balances. How does this work technically speaking? The...
Hello. I would like to know how to make an indicator that takes past bar values. I have this code in the special function star: Buf_0 [i] = IMA (NULL, 0,13,0, MODE_SMMA, PRICE_MEDIAN, i)-IMA (NULL, 0,24,0, MODE_SMMA, PRICE_MEDIAN, i); If in one of the indicators, I want to select values of 3...
Hello. I have a problem with all Custom indicators I use: when I asociete the indicator with some price-screen, the screen goes gray, and don't let me select anything with the mouse. sombody know why is this? thanks againg trader201
what is wrong with this code. it doesnot work.. if (OrdersTotal()==0) FileDelete ("mydata.dat"); I am just trying to delete the file if there are no open positions. thanks in advance..
I've written some EA which I backtested on 10 years of 15min EUR/USD data If it shows consistent profit through all that period will it be normal to assume it will work for the next 10 years ?
[Deleted]
How do I run a script within an indicator? Thanks ...
Error 4109 Meaning = "Trade is not allowed in expert properties" Can anyone please tell me what his means and how to fix it.
[Deleted]
How can I export the trade tab in excel ? Thank you, saluti dall' Italia, Scheggia97
What does it mean to place an "&" in front of a variable .. example: somefunc(int ...., string &var1) {..} can I use "&" with ints, doubles? &Thanks!

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.