MQL4 and MetaTrader 4 - page 30

To post a new topic, please log in or register
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...
Hello, When I check how indicator run in Tester, the buffer show up wrong value. Here is the code. Somehow MQL4 read the "condition(i)" incorrectly. I check, check, check, go back to the original indicator to make sure that it works fine. if((buy1[i]==1 && condition(i)<6)    signal[i]=2;...double...
Howdy folks. I am newbie for MQL language so excuse for that kind of question. I created expert advisor and tried using custom indicator in code. Indicator was bought trough market. void OnTick()  {   string ind_name = "Market/My Custom Indicator";   int up_buf = 0;   int down_buf = 1;   int shift =...
Hello everyone, First, sorry for my english. I found a very good renko indicators on web, it s renko_2, I attached the file. I tried all the day, without success (I m not good for coding :/) to add Ichimoku indicators in this chart. Could you help me to add something like an average on this chart...
Dear Metatraders, Can anybody develope some plug in or something which can import data from a signal service into Metatrader. I am ready to pay for reasonable development fees. regards Ankit
           ObjectSet(name, OBJPROP_ARROWCODE, 1);            ObjectSet(name, OBJPROP_COLOR, clrBlue);            ObjectSet(name, OBJPROP_STYLE, STYLE_DOT); I try many solution.But Can't do that. Who can help me? Plz show simple Code for me. Thank you!!!
Hi, I recently posed a question why I was getting unstable results and I got some helpful responses about the problems with the scope of the code. However, I've had such bizarre results (that have nothing to do with the scope) lately that have really stumped me and make me wonder if I should even...
Hi  I am very new to MT4 and would like to learn in details. I have three chart windows open, each chart with different time frame. I would like to synchronize all these three charts.  So When I draw any indicator or trade line in one chart, I would like to appear on other two charts. Please can you...
  Close and Reverse orders (34   1 2 3 4)
Sometimes there is a need to reverse the trade that u open. The attached script will close all open orders that already running and will open a new orders with equal lots size. The scrip will close and reverse only the orders that the symbol() is equal to the one that the script is attached to.
void ExitTrade(){   for (int i=OrdersTotal(); i>=0; i--)   {      if (OrderSelect(i, SELECT_BY_POS))      {         if (OrderType()==OP_BUY && OrderMagicNumber() == MagicNumber)         {            while(true)            {              bool result = OrderClose(OrderTicket(),OrderLots(),Bid,30...
This is one of the most common errors I see, probably due in part to the likes of garbage such as Expert Advisor Builder. So I thought it was time for a thread dedicated to the subject so that it can be linked to for future reference. The Problem Let's take a simple example; we want a function to...
I see many, many people posting code and asking questions which can usually be answered by simply checking the return values from a few Functions and printing out any relevant errors. So I thought I would make a post specifically about this subject so that I can simply link to it in the future . ....
Hi, I'm writing a script to setup a workspace. From the main toolbar, if you select "Window" you get a dropdown list. I can't find the functions that perform these actions. Do they exist? Tile Windows Cascade Tile Horizontally Tile Vertically Also is there any code to minimise and maximise a chart...
I created small bollinger bands. How to prevent buy orders when the price on it. if((Close[0]!=iBands(NULL,0,200,0.15,0,PRICE_CLOSE,MODE_UPPER,0))&&(Close[0]!=iBands(NULL,0,200,0.15,0,PRICE_CLOSE,MODE_LOWER,0))     {        result=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"EA",MagicNumber,0...