MQL4 and MetaTrader 4 - page 47

To post a new topic, please log in or register
for example, I'm running an indicator in tester mode on GBPUSD pair. I would like to know how to get RSI value of USDJPY pair?. I've tried iRSI("USDJPY",0,14,PRICE_CLOSE,i), it's not working properly. Thanks!
Hi About a month ago I purchase an mt5 indicator and most of my main indicators is on mt4. Would it be possible to switch my recent indicator purchases into mt4? If so, where would I do this or who do I contact? J
Hi guys, anyone knows how to code an alert in mq4 please..I need to have an alert for when there is a color change signalling a reversal. Please have a look at the pic attached. At point 1 we can see that as the candle reversed into an uptrend there was a color change in the 2FMA's (from red to blue...
I have been adding few complex indicators on 90% of opened charts. The quantity of opened charts at the same time is around 120. Due to the terminal's system overload (hardware capacity), I get error message saying mt4 terminal has encountered a problem and needs to close. Then it automatically...
Hello, I'm trying to make the trader able to set MA type on an EA, I tried this coding: enum MA_Method {   Simple = 0,   Exponential = 1,   Smoothed = 2,   LinearWeighted = 3};input MA_Method Mode = Simple;double SlowMA = 200;//...//Some Coding//...double SlowMA = iMA(Symbol(),Period(),SlowMA,0,Mode...
I am newish to the Tester (historically never got anything very useful / understandable). I have been trying to use an AI based EA and suggests using the tester. I run from 1-jan-2018 and have no trades but the following messages in the journal. 2018.02.23 08:41:41.780 TestGenerator: unmatched data...
Hello! I really need help with my EA. I show great results on backtesting, but unfortunately, I cannot publish it, because of errors. I am not a professional programmer and I really need help. I've copied and pasted some part of the help and I think it helped to solve some errors. I get error 130...
Hi there, Is there an accepted "formula" to approximate buy/sell volume on historic bars? I thought that using price action on the bar, you could perhaps apportion part of the bar's volume based on the distance of close from the high as selling, and close to the low as buying. This sounds way too...
Dear Friends I just build an EA for autotrade. But I cant upload it to Market due to this Error 131 occur. Please help me to resolve this. What should I do for overcome this Error. thank you.
Hi Folks , Can't see how to get round this problem. I've configured my metatrader terminal to startup with a config script. I dynamically add EAs and scripts before I start it so it can startup and allow trading with EA.  I have an EA that sends WebRequests to a local server, but looking at the...
As a newcomer to the forum and also to MT4 and to MQL I would first like to thank you all for sharingyour knowledge and experience, your trading tools and ideas. This first post of mine is a question about text labels. What I am trying to dois to have a table with indicator values regarding multiple...
By trying to delete pending orders from ticket number I got the error message "OrderDelete error 4108" Here is my code: bool DeletePendingOrder(int ticket){   double freezelevel     = (MarketInfo(Symbol(),MODE_FREEZELEVEL)+1)*Point;   double openPrice, currentPrice;   int orderType;      if(...
Hi everyone, I'm testing a custom dll that shur return a string when I call its function. No problem while retrieving an integer, but text is represented in journal with a series of question marks. I've tested the dll with a .net form and all is working fine. Anyone can suggest me how to solve this...
Hi. What period do we need test an EA on backtest? last 3, 4, 5... years? I know that market changes...so, what do you think?
Hello everybody, actually I am using this EA to close at a profit level and deleting all Pending Orders placed left on Terminal. It works perfectly but I would like to add this functions: 1) Delete Pending Orders    True/False options,to activate or de-activate and a  2)"Value of Total Orders"...
Hi! I guess my problem is trivial, yet I failed to google a solution. I want to create an indicator which display a lot of textual information. The actual chart is unimportant. So I first create a large area covering all the chart:   ObjectCreate("pi_Gaps",OBJ_RECTANGLE_LABEL,0,0...
Hello, I have this High/Low trailing function on which I'm getting an Error 1 while running. I know this error is not very significant  but I can't understand why it's coming up. the strangest part is that I wrote  if(prevsl<newsl && newsl<=Bid-stoplevel && prevsl!=newsl) which is now actually...
Good evening to everyone, I'm desperate. I need to take the color of the candle (heikin ashi), how can I do? Thank you in advance
  5 digits detection (56   1 2 3 4 5 6)
double pointsPerPip(){   string suffix = StringSubstr(Symbol(), 6);   int digits = MarketInfo("EURUSD" + suffix, MODE_DIGITS);   if (digits == 0){      digits = MarketInfo("EURUSD", MODE_DIGITS);   }   if (digits == 0){      return(1);   }else{      if (digits == 5){         return(10);      }   }...
hellomy order send func does not workplz help mesorry my english in not goodtnx extern int TimeFrame = 60;extern int MA_Price = 5;extern int MA_Length = 21;extern int MA_Mode = 1;extern int Atrlength = 14;extern double Kv = 4.0 ;extern double MoneyRisk = 1.0;extern bool ab = false;extern bool abc =...
  Close basket profit (28   1 2 3)
Can you help? Does anyone have an EXPERT that can close the positions at a given profit ($ 20) of a single currency on a portfolio of more than one currency? thanks Potete aiutarmi? Qualcuno ha un EXPERT che può chiudere le posizioni ad un dato profitto (20$) di una singola valuta su un portafoglio...
Any one could help me how can i parse this data to my mql4 {"respond":1,"paging":{"stillmore":0,"perpage":0,"callpage":0,"next":0,"previous":0,"pages":0,"result":0},"message":"","result":[{"user_id":"243","enddate":"2018-02-20 00:00:00","user_email":"teste@test.com","display_name":"Jonh Tester"...
In my EA I use the iMA, so now I put the ma_period inside optimization to do many test. I will want see in the chart the same Moving Average indicator with the same ma_period to the code. How I can change che chart indicator MA with the ma_period on code? Thanks
hi guys, im new to coding in mql4 but i need some help..... im trying to code in a way that would allow me to automatically draw fibo retracement lines between the last low/highs of a zigzag indicator line and an arrow indicators point... like for instance.... if a new sell arrow appears i would...
//Variable externasextern double Lote = 0.01;extern double StopLoss = 300;extern double TakeProfit = 400;extern int TrailingStop = 280;extern int Slipagge = 10;extern int MagicNumber = 12345;extern int PeriodoEMARapidaActual = 5;extern int PeriodoEMALentaActual = 21;extern int PeriodoEMARapidaPasada...
Hi guys! I'm facing an issue with all MT4 terminals . It is crashing on opening. When I run the MT4 they open, but keeps freezed on Journal page without connection and with "Not Responding" message over the top. I've uninstalled it and installed it in the same folder and the same error. I've...
My EA put an order with SL. the expected SL is $ 196, the value of the pip at the time of the stop is $ 9.39 But the tester puts me a loss of 219.85 instead of 196 $ why?
Hi folks, I'm completely new to MQL4 and C++ programming, but I've managed to piece together (butcher) an indi that produces an opening range box based on the highs and low of the session opening candle. My question (and problem) is, I'd like the range box to only be produced after the candle has...
how can I get previous bid and ask price in mql4?
Hello all, I could need some help with this modification. I am trying to change the OBJ_VLINE to a OBJ_TREND in order to stop it from drawing the line on the bottom indicator window and only drawing the line on the chart. But I am unsuccesful as my coding skills are basic at best. Any help would be...