Download MetaTrader 5

MQL4 and MetaTrader 4 - page 539

To post a new topic, please log in or register
Hi,  I'm writing an excel macro to send email from Outlook. Can I set the "From" id from which the email is sent? I tried using the following code. but it dosent work:    With OutMail         .SentOnBehalfOfName = email@email.com         .From = email@email.com End With  Regards, Nitin     
New article Change Expert Advisor Parameters From the User Panel "On the Fly" is published at MQL5.com: When developing complex Expert Advisors, the number of external parameters can be very large. And settings very often need to be changed manually, making the whole process very time-consuming,...
I AM FROM INDIA INTRESTED IN DESIGNING EA ON DAILY TIMEFRRAME GIVING LEE TRADES WHAT SHOULD BE A STOPLOSS FOR EURUSD ATTACHED IS EA
I am looking for golden sectionn oscillator.If anyone has any info regarding it please that info will be helpfel.Am needing it as it will be simple to execute an EA based on the oscillation.It seems very difficult to understand from the original golden section indicator as it is crowded with lines....
// check if lines have crossed   if( ma7 > ma14 && ma7 > ma21  && ma7 > ma49 && ma7 > ma70 ) siCurrentDirection = 1; //up   if(ma7 < ma14 && ma7 < ma21  && ma7 < ma49 && ma7 < ma70  ) siCurrentDirection = 2; //down        if( ma7 > ma70 ) OrderClose(OrderTicket(),OrderLots(),Bid,3,White);...
Why do I get ordersend error 130 when i backtest my EA?
Hello: I'm trying to automate certain parts of a strategy that I'm doing visually with good success.  Essentially I'm trying to superimpose one currency on top of another.  For example, GBP/USD on top of EUR/USD.  If the currencies both traded between the 1.40 to 1.60 this would be easier, however,...
if possible may see a comments of closed orders, what would the script ?
I hope MetaQuotes update mq4.com to mobile version like mq5.com
Hello Forum I want my indicator buffers to show the historic levels that a certain set of conditions have occurred. In the past I have just used arrows (DRAW_ARROW and an appropriate wingding code) to show the bar in which the conditions occurred the manually went in and worked out the price level...
I want to keep my view on the "Trade" tab/window but everytime I get something in the "mailbox" tab/window it just automatically switches to it,...... then I have to click on the Trade tab again to see how my trades are going........ Is there a way to stop this from happening and gets quite...
Hi everybody, I'm a beginner with automated trading. I hope to have your help because I'm stuck. I'm trying to convert this indicator to EA. This is a breakout strategy based on an interval in hours. My code does not work, it does not respect the buy signal ps: sorry for my English, I'm French...
Hi all,   I have a hedging EA and cannot seem to hedge at market price because the sell order closes the buy.   Hedging works fine on pending orders, both can open with different stops and take profits.   
Good day... Is it possible to have 2 account servers in one terminal client. I mean 1 server will only accept "buy" trades and the other will only accept "sell" trades something like that.... could it be done here in mlq4? thank you so much
hi there.... Can you change the server, login and password using a script? Is it possible to use a script on it? thanks...
Hi according to documentation start() is triggered every time a tick is coming in. Now when i run a script during a weekend i can see that start() does run/loop several times even there are no ticks at all since it is weekend. Anyone know why that happens or could explain that to me? Or any link...
Hi, I am trying to create a simple script that closes all existing orders once and only when a new bar is detected. But my code below always get executed even when new bar is same as old bar. Thanks to help. static int old_bars = 0; // remember the amount of bars already known if (old_bars != Bars)...
Hi all,  Say that the value of AccountProfit() is 2 and on the next tick is 3, then a variable called AP is on is track minus 0.5 (just example) when next  tick  comes AccountProfit() comes down to 2. How could I get a way to  fix the value of AP. What I mean is get the same behavior of  a Trailing...
Hello, I would like to ask if someone would be so kind as to give me programmed into the indicator Var Mov Avg function to send a signal when exchanged paint balls. The signal must be sent each time when new paint ball in the first row and the other signal comes only when the color changes. Not on...
Hi i m building a custom indicator and got problems with the 4066 Error. As i m building an indicator i ve got the following While loop to check if data have arrived      dt=iTime(Symbol(),PERIOD_M1,0);        Error=GetLastError();     while (Error==4066)   {            _time_waiting =...
Are there any plans in releasing a WP8 mobile app? Could really need one.   T 
  The situation is, on the initial run, I set that number on the input. After EA run, it meet certain criteria, it will reset that variable to be 0, and keep it 0 until I change the input variable again to be something else. Is there anyway to do that?
Hi all, Say that I want to get information regarding profit that has been take with  an ea to another place or mail address. Is this possible ? Thanks in advance for any help on this matter.   Luis 
so, if I have a max 2 order. I open 1 order, and like 5 pending limit order. How can I make sure that there is only 2 open order at a time?   What is the code of EA look like to stop those extra pending order to be executed? 
do you have a good history file I can use in my back testing? For some reason what I have keeps getting corrupted. I try to download new history but it always says it up to date, but then I get screwed up results. I just need a history file I can dump when needed. My email:...
I'm looking for a programmer that can make me a Expert using the Heiken Ashi, Rainbow and Renko  indicators. If so contact me for more info. Thanks!!!
Hello guys. I am trying to import data to rebuild from M1 timeframe all the other timeframes in order to backtest with a 90% model quality. Can somebody help or post a resource where all the details of the process are explained ?
Hello all,  I need some help here - I am a beginner on MT4, but i have trading ideas. I need to create a new indicator that picks up tick by tick data and buffer them for a short period of time so they can be used at a later stage as part of a strategy that I am developing. To be more clear, like a...
HI ... How Can I Find Daily Open Cabdel? I want use this for an Expert that set Orders some Pips above OR Below this candle. Please help Me. thanks.
Hi all I'm trying to find out how I can import information from indicators to my EA.  I can see in the examples that comes with the MT4 environment that I've downloaded how I can access data from the standard MACD indicator, but I'm currently looking at two other indicators that I'd like to use....