MQL4 and MetaTrader 4 - page 423

  mql4 chart  (1)
hello. how can I drawing line in a single pip a smooth line in chart which kind of chart operation can help me I don't know how can I show massages or chart in window char in mql4 if can help me I'm rly happy tnq ;).
Hi, I'm trying to create a custom indicator that displays certain levels on a chart. Based on a few custom indicators I've created. The idea (picture below): when price moves above HighLine (the green line) and forms a newHIGH (red dotted horizontal line), it needs to display three levels based on...
Hi, I have been programming in MT4 for a couple of months now so forgive my silly question. when I test a strategy I notice that occasionally there is a slippage when opening some positions (long or short) and they coincidentally are equal to the current spread I set in the tester. I know the...
I am working an a indicator that gives me certain information about the currencies I trade. One part of this is the amount of Margin Used to open a trade. Market Info(NULL,MODE_MARGIN REQUIRED) works just fine as long as the "quote" part of the symbol is USD but it does nothing if USD is the "base"...
I am going step by step through the manual and have become a bit confused at this page - https://book.mql4.com/operators/continue. My question should be pretty simple for anyone who understands these loops and where control should/shouldn't be passed to next. Here's the full code
I'm trying to make sure I have the right coding to check and execute a possible close of position After a new bar from opening a position. Can anyone confirm if this code is good. It seems as if each time it checks for close, it would set the "currentbar" again to datetime? void CheckForClose() {
I have some long strings of data that cannot fit in mql4 or would be needed to be imported after it is compiled.  Is it possible to have ex4 read data that is encrypted?    The idea is to have the data read from external source and then stored in an array such that no intellectual property would be...
  hello.mql4  (3)
hi when I use this #property description I see an error 'description' - expression expected firstone.mq4 10 11 its can for lib and if I must download any things where I must give them? I'm sure for mybad typing I'm not engilish :D
Good day to all, I've coded an EA that checks the trend on daily timeframe using a 200 sma  and enters trades on H4. Trend checking logic contains the following code: string CheckDailyTrend(){   // Moving average   double DailyMA = iMA(Symbol(),PERIOD_D1,Daily_MAPeriod,0,MODE_SMA,PRICE_CLOSE,0);...
Dear All, Couldanybody tell me if it is possible to input own data manually twice a day intoMT4 and display them as a line either in the main window, or beneath it? Iwould like to do it for several currency pairs. The data has nothing in commonwith the exchange rate of any currency. Will be input at...
Can I use a gmail address to receive alerts from MT4?  Does anyone know the server info? I tried looking for it but there are many options.  Thanks everyone
[Deleted]
Hi Can anyone explain me the difference between .ex4 and .mq4, except the fact that the mq.4 is redable and not the ex.4. When I create a new EA, it is registered as a .mq4 file, and doubled by a .ex4 file automatically created when the mq4 is compiled. I personnally use a professionnal EA on my...
Hi, Im trying to make an arrow indicator , but its not showing in the chart. Can anyone help ? //----#property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_color2 Green//----double CrossUp[];double CrossDown[];double prevtime;double Range...
Hi, I am preparing my first "simple" strategy, but for me it wasn´t that simple... I created this code:    //Global Variables extern int slow =  9, fast = 3; // for subsequent optimization process ** extern int z= 150, w = 150;   int start() {...
Hello, I want to develop an Expert Advisor for my trading system, it's not perfect so there will be several modifications along the way before it gives consistent profit. I can easily order that EA and it won't cost me much but the system is not perfect so I want to develop and make it better myself...
Please contact me if you are capable on doin this wok. 
  .ex4
Hi  I am looking for the.mq4 file to make modifications with this Indicator : master_macd_1.58  Please share this indicator if anyone have it ?
Please help, I want to make reversal order,       double Op = iOpen(Symbol(),0,0);      double Cl = iClose(Symbol(),0,0);      double Lowest = iLow(Symbol(),0,0);      double Highest = iHigh(Symbol(),0,0);                                 if(OrdersTotal()==0 && Ask >...
Hello, have someone an idea or codes snippet for me that an ea only open so much trades that i have define in an input value. Now i use this if(OrdersTotal() >= maxOrders) {Print("Maximum Orders");        return;} but it looks like it is not working very well. 
hi, how can i fix this? int _GetLastError=0, _OrdersTotal=OrdersTotal();      for (int z=_OrdersTotal-1; z>=0; z--)    {             if ( !OrderSelect( z, SELECT_BY_POS ) )        {            _GetLastError=GetLastError();            Alert("OrderSelect ",z," SELECT_BY_POS - Error: ",...
i want to put my indicator in the market but i have a comment from moderator .  how can i fix it ? 
Can you please help me to create just one line of code that tell the first appearance of a signal for example, I am creating an indicator through EA builder to alert me about overbought/oversold areas and it is simple, sell arrow at first appearance of RSI >80 after CCI>10 whether that was next,...
  OrdersTotal()  (3)
does this function return the total orders of all symbols or the particular symbol of the chart where the ea is attached?
Hello, I'm a bit confused when it comes about calculating lot value as long as I have a fixed profit target per transaction. Supposing I have following: double tp = Bid +  (80 + spread)* Point;double profit= AccountBalance() * 0.1 / 100.0;double lot = (profit/(spread +80) /(SymbolInfoDouble(Symbol()...
So I have built my own custom currency strength meter. Here is an extract from the code //--- input parametersinput int      Delta=8;extern ENUM_BASE_CORNER Corner=3;  // Panel side//--- global variables//--- indicator buffersdouble         EURBuffer[];double         GBPBuffer[];double...
im having a problem with an indicator that shows arrow(buy and sell) on macd crosses, stoch signals and MA cross. The code seems ok, but when i use the indicator only sell arrows show .  This is the code.   double Macd0,Macd1,ma[10],stoch[10],stoch2[10];  //-----------------------  bool mabuy=false...
Hello, I am Oliver.I try to program my firtstEA. I want to place an order at an certain time. Is it possible to doit easier. I did it like this: int res;int counter = 0;int s = 0;int m1 = 59;int s1 = 00;int h1 = 15;void OnTick(){int STC=TimeSeconds(TimeCurrent());int m=TimeMinute(TimeCurrent());int...
Hi fellas, Im want to ask if any of you previously had to combine indicators in 1chart in one mq file. Im combining macd and stoch, but the chart window get all wrong. Any ideas?   limit=rates_total-prev_calculated;   if(prev_calculated>0)      limit++;//--- macd counted in the 1-st buffer...
  Bad Bars reading  (2)
I'm using an Expert Advisor which is attached to a chart. Every new bar it has to real the last 5 bars of ALL timeframes of the same symbol. It comes that sometimes, on the other timeframes, the last bar ( index=1 ) results equal to its preceding bar ( index=2 ), which is a bad reading of chart
I am very new in MQL4 coding. I downloaded this EA  online. I am trying to modify it such that if I load it on say about 15 different pairs, I do not want trade to open in more than 3 pairs at any particular time even if the conditions for opening trade in the other pairs are met. Thank you all for...