[Deleted]
Hello, How can I calculate moving average of an indicator in an Expert Advisor? For example: How can i calculate the 4-bar simple moving average of "rsi1": double rsi1 = iRSI(NULL,0,14,PRICE_CLOSE,0); Best regards
Slawa,
FYI the Build 192 fixed the old problem I had with copy and paste from MetaEditor, See:
"Copy from MetaEditor and Paste to other application"
FYI the Build 192 fixed the old problem I had with Terminal Experts Log file readable, See:
"Terminal Experts Log file readable."
and
"Live...
Does anyone know of a way to Email all orders that are placed. Email, Buy, Sell, and any modifications to orders? There must be a way to have MetaTrader do this, an indicator or a tool. Thanks for your help. Darren
Hi,
Does someone know if there is a way to retreive the time at which a pending has been triggered ?
I have many pending orders, and my problem is to know which opened order is the last trigered one, (to determine if it's a long or a short) since the OrderOpenTime() is the time the pending is...
Hi, I am new to MQL4 programming and found many Expert Advisors and Indicators on this web site. Anybody can recommend a good MQL4 EA or Indicator for GBP/USD. Also looking for EA and Indicators that can predict trend direction well. Thanks, euro-pean
Hi
When I first downloaded MetaTrader demo account I was able to access lots of pairs including USD/NZD. I now find these are not now available on the drop down menu file, new chart. Can anyone help please.
Please note that I'm not computer literate.
Many thanks
John
Instead of just having only one order open at a time? I would like to have it so that the AE will open another order even tho the criteria have already been met in another pair and an order have been opened for that pair.
multiple open orders
[Deleted]
Hey Guys, Has anyone had a look at the FX Turning Point indicators at http://www.tradecurrency.ca/ ?? They're for the Visual Trader platform unfortunately but 'look' to be reasonably good for identifying a turning point. Thoughts? Martin
Hi All, This is a quick question for all of you coding gurus out there. Im in the process of designing anindicator. I thought it was finished and everything was good to go, and it seemed to look ok when loaded up. But then I started realizing, my 120 gig hard drive was filling up fast. After...
Can the MT developers post an example of a robust EA that uses stop orders to enter trades? The stops are calculated based on time of day, so if there is no new tick there, the next incoming bar should be considered.
I am looking at the samples but they are not robust. They don't have error...
Some time I need lock the object to current position, to make the object can't moved by mistake.
I am also wish I could change the font size of the object description, it is too small now .
Hi,
I wanted to know at exactly what stage of the order process (see below - stage 1,2,3,4) does OrdersTotal() record the number of orders open in the trade terminal. Is it at stage 2 or 4?
4 - 2006.05.04 20:59:20 '404764': order is open : #477700 buy 1.00 EURUSD at 1.2600 sl: 0.0000 tp: 0...
hello,
If we get an Error number 4 (ie "trade server is busy"), should we resend the order again? Or will this order still be recorded with broker and waiting for execution. I want to avoid placing same order twice.
Thank you in advance.
Regards
RJF
Hello,
This is question regarding Error number 139 which states - ERR_ORDER_LOCKED 139 "The order has been locked and under processing. All attempts to make trading operations must be stopped, and the program logic must be changed."
My concern is: If I get Error number 139 I want to avoid placing...
Hi, Would anyone be interested in coding this type of thing for an indictor? I have a set of indicators that I use for entry criteria, and if I could get an indicator of it's own that would show when all the criteria are met, that would be neat. I am using this on 1 min-5 min charts so not alot of...
Hi Guys, Can someone please explain me what does SLIPPAGE means and what does it do????????? Thanks Babar
Hello Slawa,
Just wanted to ask you if inserting the following code at the start of my EA is ok and correct?
// if less than 100 bars on chart then Exit program. if (Bars<100) { Alert("Bars less than 100"); return(0); // exit program. } // if trade...
I create so far so good strategies that I would like backtested. I am
looking for an individual that has backtesting down to a RELIABLE
science in MT4. I spend to much time researching and creating EAs to
take the time to backtest and log. If you are interested I am willing
to give you the...
Hi Guys, Can someone please help me by making a simple EA...which places a BUY order few pips away from the current price.....e.g GBPUSD is 1.8000 what I want EA to do is place BUY order if price goes to 1.8100 and place SELL order if the price drops to 1.7900 with trailing stop.......i dont know...
I am getting an invalid stop every time my EA goes to trade. It is driving me nuts. I have posted the OrderSend code for you to look over. int ticket=OrderSend(Symbol(),OP_SELL,lots,Bid,6,Bid+15*point,Bid-takeProfit*Point,"comment",283,0,CLR_NONE); int ticket=OrderSend(Symbol(),OP_BUY,lots,Ask,6...
Hi, Anybody know if there's anyway for me to hook up the metatrader platform to call java methods from a class file. Is there a mediating program that can interact between a java class and the meta platform to avoid writing C++ dll files? Thanks..
Hello everyone. I am new to this forum but have been reading along for a while. I have been trying various strategies as posted by all of you. Thanks for all the help so far. I have been trading a demo account using interbankfx platform. I have done reasonably well for a beginner ( about 1-3000 per...
Since you are working on the dictionary improvements, it would be good idea to mark which function cannot be used in Script, Expert and Indicator.
Knowing that the Indicator cannot use OrderSend() I was under an impression that I cannot use other Order....() functions.
Last week I was pleasantly...
Hi Slawa,
Just wondering if I can use sleep function to make EA "wait for 8 seconds" between trading operations, for example:
If (Bid>High[1]) then Open Order 17; Sleep(8000); If (Bid<Low[1]) then Close Order 17;
Just want to make sure that if I do this, that it will not cause...
MetaTrader 4 Client Terminal Build 193 will be released today, on 3 May, 2006.
What’s new:
1. Fixed free margin check for demo accounts on symbols with margin currency differing from the symbol base currency.
2. Revised MetaEditor Dictionary.
Hi, can someone tell me the code so the simple example indicator I attach only issues an alert after the close of the candle if the signal stays valid and not keep alerting during the duration of the candle??? Thanks!
hi all, i need any one help me to put this indc LWMA-Crossover_Signal.mq4 in expert to trading live buy/sell plzzzzzzz and thanks so mutch..... LWMA-Crossover_Signal.mq4 https://www.mql5.com/en/forum
Hi, say I have open orders of currency pairs A, B, and C. Is there a way to get the expert to recognize that there is no open order of currency pair D, and given the right conditions, to then open one? Or to see that there already is an trade open for currency par A and not open one? I'm wanting to...
New article "What the Numbers in the Expert Testing Report Mean" is published
"What the Numbers in the Expert Testing Report Mean"

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.