Download MetaTrader 5

MQL4 and MetaTrader 4 - page 21

To post a new topic, please log in or register
I would like to send user id and password to a website and validate it, and in response I would like to get user account no to validate in the code.   string str="Login="+login+"&Password="+password;    //--- Create the body of the POST request for authorization    ArrayResize(data...
Expert removes on restart how to solve this in MT4 ?
  Inquiry on Trailing Stop (14   1 2)
Greetings! I would just like to ask if the following code: if((TrailingStop>0)&&(Bid-OrderOpenPrice()>MyPoint*TrailingStop)&&(OrderStopLoss()<Bid-MyPoint*TrailingStop)) is will have a similar effect to this: if((TrailingStop>0)&&(Bid-OrderOpenPrice()>MyPoint*TrailingStop) and this:...
Hi, I've formatted my PC and reinstalled MT4. Now I don't see the VPS associated to my accounts in the terminal (I had a MQL5 VPS associated to each account). How can I make them appear again? Thanks
Hi everyone. Could anyone one please teach me how to control the number of the opened trades in my EA ? (please have a look on my code below) It is a 2 moving averages (not crossover) (it is above/below) using candle number 0, so when the fast MA is above the slow MA it opens a buy order straight...
soubra2003
Hello, The simple code below: void OnTick(){   if(OrdersTotal()>0) return;      if(iRSI(NULL,PERIOD_M1,14,PRICE_CLOSE,0) > 70)   int x = OrderSend(NULL,    OP_SELL,    0.01,    Bid,     10,   0,    Bid-3*Point*10); //using 5 digits broker} it is a very simple code note that it ONLY accessing the 1...
hello my friends, may you help me please? am trying to back test an EA but there is a problem and i don't know how to solve it, it always opens fixed lot 0.1, i tried everything to change it but nothing changed, i tried all installed EAs, changed fixed lot to 0.01 but it still doesn't work. changed...
Hi there,I want to bind an indicator to several accounts. I found a lot of solutions for expert advisors. Does anyone know how to do it for an indicator? Thanks
Hi all traders, As per title, is that any brokers that offered MT4 platform for altcoins trading?  I've found out BTC-e and FXOpen, but is that others offering it as well? Thanks in advance.
suppose, Broker offers 260 instruments . Each instruments got 7 time-frames which i want to scan for.(5,15,30,60,240,1440,10080) for each intruments & each timeframes, i need to save info like : bool  Trading_allowed_on_M5 = true;  Im currently using an array string symbol="";int chartPeriod;bool...
I intend to feed my own one day's worth of tick data in to MT4 and run my expert adviser on that data only, Please advise on how it can be done? Local time       Ask     Bid    AskVolume       BidVolume23.04.2018 00:00:00.089 GMT-0000        151.062 151.047 1.25    1.2523.04...
I am trying to put a comment on a chart for the profit or loss of the last trade for the chart the indicator is on. I have brought some programming together, but it just gives a zero value. I probably need to tell it what trade / currency pair to look at. Not sure how, or if needed. I have all my...
Hi, i'm trying to test my strategy on more exotic pairs like EURSEK or even NZDCAD (which isn't that exotic) but for some reason, no trades end up being triggered even though when i print the output i can clearly see my conditions are being met. the same EA works fine on other more standard pairs...
Hello,The graphical objects of the standard library look really small on a high res display (header, radio buttons etc). Is there any easy way to scale the things up or this has to be handled in a custom way?
Dear gentlemen , May I seek your assistance and technical expertise help ? My Android mobile phone MT4 Build:1120 (24 Apr 2018) I recently upgraded from previous version  I am not able to filter the message according to keyword since I upgraded to this version from 24 Apr 2018. e.g. I like to...
  MetaTrader 4 Platform build 1118 (52   1 2 3 4 5 6)
I have some problem with the tester in MT4 build 1118 A) after optimization I can test the selected results only once , the second time I get a different results, the third time no result (empty graph windows ) B) after optimization if I try to close MT4 it freeze  C) the tester is twice slow...
Hi Is it possibel to add 2 or more EA to the same chart, if yes how ? Regards Michael
I don't know why this happens, but it's really annoying. My buy and sell functions are the following: bool Compra()   {   StopLoss=Ask - Pips()*25;   TakeProfit=Ask + Pips()*50;   int TicketNuevo=OrderSend(NULL, OP_BUY, 0.025, Ask, 10, StopLoss, TakeProfit, NULL, MagicNumber, 0, clrNONE);...
  MT4 Support (33   1 2 3 4)
Hello,  I've read that MetaQuotes will no longer be supporting mt4 after this year. Does anyone know if ea's designed for mt4 will still operate correctly after this year?   Thanks, AJ 
According to MT4 description, prev_calculated should be the same as rates_total after the first run of indicator. However, I found that prev_calculated becomes 0 again in the forth tick, and then all rest are same as rates_total. Why this happens? Is it expected to be the same as rates_total after...
Hi everyone! This website has been super helpful as I'm very new to coding. But there's just one thing I could not figure out myself, I really appreciate if someone can assist me. I am trying to create a trailing stop system based on the AccountProfit() values within the trading period of a single...
The subject pretty well says it. How can I ascertain what a Broker's Minimum Stop Loss level is for any particular currency pair? Thanks for any and all assistance.
Hello All, Inside the settings of this indicator is the option to show signals. When you do FX Fish will place buy, sell and exit indicators on the chart. This is different from the oscillator going from green to red crossing the 0 line. I'm hoping some kind soul can make a push alert so that when...
hi, run ea back test , in every tick mode. I run it on long time , from 2000 in first 24 hour's for back testing my ea , it will have 8 year's , but after that in each 24 hours have only 2-3 year . ( by my PC.) whats the problem? can do some thing ?
Sorry for the noob question, but all along i thought the orderprofit() function would be smart enough to give true pip value, but it doesnt seem so. Im testing on 4 digit broker Fxpro, and the profit of 30 pips is returning as 300 via OrderProfit(). How can i fix this ? thx
Using Sony XZ Premium with MT4 app. On Demo account i get plenty of news, but on live account I get nothing at all. I am with Axitrader. I have reinstalled the app. Rebooted Phone. Tried speaking to Axitrader and get nowhere. Can anyone advise further?
Hi, i'm trying a CCI threshold strategy, where i sell when CCI goes from CCI<= 100 to CCI>100.  to do this, i need to know both the current bar's CCI value and the previous bar's CCI value.  from what i understand this is accomplished by using the "shift" argument of iCCI function  as i do here:...
Example- I create a Fibonacci retracement  on a chart. Later I want to delete it. I right click on chart and select objects. There is no popup window anywhere on any of my monitors. I tried putting it on the 1 monitor and disabling the others and still no popup window. I press escape to move along...
I would like to have some text in my indicator window that changes color when a buy or sell signal happens. Something like "EURGBP" sitting there yellow until a buy signal happens then it turns green, or red when a sell signal happens. Even better would be a movable panel so you can put it where you...
Hi, I need to replace iRsi in this formula with iStochastic. double rsi  = (iRsi(rwma,RsiPeriod,i,rates_total,0)-50)*0.5; I don't know how to exactly set the iStochastic formula. I tried using this, but it doesn't work: double rsi = (iStochastic(rwma,RsiPeriod,5,3,3,MODE_SMA,STO_LOWHIGH,i...