Download MetaTrader 5

MQL4 and MetaTrader 4 - page 532

To post a new topic, please log in or register
Dear together, I have a Problem to get my script alert on my mobile by SendNotification. The Indicator works well with an Arrow and an sound, but not wirth notification.  Test Notification works all well. If I try to modify the script allert, the Indicator doesn't work annymore. Thanks to all!!!...
I'm using iMA to create a crossover (of course!). I'm trying to understand the difference between the parameters shift and ma_shift. Obviously, I'm trying to find out the current MA and then one for the previous period of whatever the chart time is. It *looks* like I can use 0 for shift and only...
Is it possible to have an EA opening trades automatically on the mobile version of MT4? I use an Android phone and I want to instal EA on it. Anybody knows how to do it? Thanks.
I'm trying to convert a functioning time range breakout EA that works with fixed stop loss and take profit to one where these values are derived from the high and low of the time period.  I tried "double range = High[h] - Low[l]" and subtracting and adding "range" to High[h] or Low[l] for stop loss...
Good morning, I have a problem opening a OP_BUYSTOP order, I've tried almost everything ... I looked in the forum ... but I can not find a similar problem who can help me, please ask if anyone can help. .. I have the piece of code below happened, when I calculated the OrderSend with Price (and the...
Hello, I'm trying to change a variable in a while loop and every loop set a new client terminal variable. This is the while condition       while (GlobalVariableCheck("paaridearv")<43)       {          if(avatud<1)          {             Kirjuta();          }       } This is the loop void Kirjuta()...
I am looking for a formula or ready-made application that will tell me what the grid spacing needs to be for a given range, so I don't blow up my account. Any ideas?
Hi all, I have a working function that identifies whether the graph has a new bar or not in some time frame. After the new bar is made I want to write to the same file from several programs (currencies) with all using similar script (program). The problem is that when two different currency pairs...
Hi, This is my first post here but hopefully someone can help with an issue I'm having with closing orders in an EA I'm writing. The basic goal of the EA is to open positions with a time based exit built in so they are closed out again after a predetermined number of bars. Only one position can be...
I am wondering if AMD APP acceleration speeds up the MT4 strategy tester? If I had two or more ATI video cards in CrossFire configuration will it make the strategy tester run faster?
I find a question about SetIndexBuffer() fuction,please help me,What do they have different SetIndexStyle(0,DRAW_HISTOGRAM); //SetIndexBuffer(0,ind_buffer1); SetIndexStyle(1,DRAW_HISTOGRAM); //SetIndexBuffer(1,ind_buffer1s); SetIndexStyle(2,DRAW_HISTOGRAM); //SetIndexBuffer(2...
I am a MT4 tech support for our FXCM clients, I have got many reports recently that new build 451 has freeze issue on launching. It happened on launching MT4 and it freeze as soon as it opened. have to kill it from task manager.  We have to to uninstall and reinstall, it works for several days then...
Help! Can't get my EA to modify the order.  What am I doing wrong? if(OrderSelect(ticket, SELECT_BY_TICKET)==true)          {           open_price = OrderOpenPrice();           stoploss_level = open_price + (stoploss * Point);           takeprofit_level = open_price - (takeprofit *...
Hi, I love MT4! Here's my question: I have searched without success on Google and at MQL4.com for a code snippet that will stop EA from trading after a losing trade. I want this as a safety switch in live forward testing to prevent EA from a runaway losing streak before I can shut it off to analyze...
here normalizedouble is not working due to that im getting these errors..error 130 as un normalized values.. //+------------------------------------------------------------------+//|                                                martin manual.mq4 |//|                        Copyright 2012,...
  bug!!! (10)
there is abug in stratagy tester.... here at 1.1605 both sl of buy and tp of sell stop should get triggered at same time .....but it happens one after another..leading to a buy stop bw s/l and t/p...
Hi,Is it possible to create a moving average based on the value of another indicator, rather than price?I would like to create an EA which takes a signal when an indicator such as momentum or CCI crosses a moving average of itself.Is this possible, can anbody link me to anything which details how...
Hi,   Lets suppose we have the double 1.2467 . I know i could grab only the last 2 digits of this number with: 67 = NormalizeDouble(number,2); How could i grab only the following 2 digits after the  "." rounding it to display only:  "25" Thank You 
Hi all - After a couple year hiatus from MT4/MQL4, I'm trying to get back into it with a very basic EA. I want the EA to buy or sell after 50% retracement into a bullish engulfing candle with a 1:1 Reward/Risk Ratio. Unfortunately the EA will not compile and I'm getting frustrated of trying to...
Hello,   I have been trying to smooth ATR like i did applying the EMA 128 on the ATR 480[1st indicator window]. Here is my code for the ATR indicator on the last window[2nd indicator window]. They should have the same results. What am i doing wrong? Thank You in advance...
Hi All, Is there an easy way to delete the old Magic Numbers generated by an EA? Where can I find the historical data of MN? Server or client?    Thanks, MG   
Is there a way to capture the close, of a period, at the close.  Because of delays in ticks, you can't simply state:  if (second() == 59)  {X = close;}                            
Hello i got a question about indicators and shift. Using a chart with a 15 min timeframe, i would like to retrieve, - the last rsi value - the 4 last TICK value for the rsi 15 min chart For now i'm using that for ( int i = 0 ; i < IND_RSI_MEM ; i++ ){   drsi[i] = iRSI(Symbol() , 0 , 14 , PRICE_CLOSE...
hello friends! i have a pending function that should close one pending order while the other order active. instead its closing the 2 pending  immediately (one of them should be hit first , and after that the function need to close the other one.) the code: void ClosePendingOrder(string symbol...
Dear all,    Did someone meet spaming problem with automated email ? I have implemented automatic email with my signal and the MT4 platform sometime consider it as spaming. How to avoid this problem ? Thanks for your answer.
If I place the standard Stochatic Oscillator indicator directly onto a chart with a 17,5,3 using LWMA mode with CLOSE price I get the base and signal plotting just fine. If I use an in-code call to iStochastic using EXACTLY the same parameters to plot what should be the same data - I get different...
  no connection (1)
Hi. My internet connection is working but my mt4 platform wont connect. Any suggestions?   Thanks. J 
Good afternoon. Could you please help me convert this code ELD (TradeStation, Multicharts) in MQL4. my level is not good enough to do it, but yes you can be? thank you for your help. friendly   {         XCAP_iPolyFitPredict:                   Uses a fit to polynomials to create a least squares best...
  dual robots (2)
Hi. Is it possible to run 2 different bots on mt4? I have 2 bots on different charts, same pair and they have the same sell/buy stops   J 
  file corrupt (5)
I am new here and MQL4. I am trying to make my own EA. But the MT4 complains, saying "executable file is corrupted. please recompile it" I recompiled and same thing happens. Is there any special file structure going on here or what? Can anyone help me?