MQL4 and MetaTrader 4 - page 454

Hello mates I am new at MT4 I made some orders on MT4 but now I can't close my orders. Please help me. I want to know how to close an order on MT4. thank you. Asad Jamal
Hi, Firstly I would like to emphasize being aware that possible solutions are hiring a developer in Freelancer section of your forum or looking at Marketplace of available custom tools. I already reviewed everything in Marketplace, however needed giant tool is not there. Would like to enquire about...
I'm looking for a very good web host who offers MT4 hosting on a VPS any suggestions?   
Hi, I am curious to find out: Those indicators / EAs that display text and lines which are not clickable or draggable, not the standard MT4 text labels that you can right click for properties or drag them around, how do they code those?  Thanks!
I want the code to ensure all trades are closed.  Will this while loop function?  Do I run the risk of becoming stuck? bool result=false;   while(!result && !IsStopped())   {      result=true;      for(int cnt=OrdersTotal()-1; cnt>=0; cnt--)      {         if(!OrderSelect(cnt,SELECT_BY_POS))...
Hello, I just coded an EA and I'd like to add a Trailing SL to it but I'm not sure if MQL4 includes a function for that.
  Help with my EA.  (33   1 2 3 4)
I just ended up a MQL4 course and started to mess around with Meta Editor, just a simple MA crossover EA, but I'm having a few problems: 1- I want the EA to open a trade on the next crossover, not on the current one. 2- I can't get the EA to close the first order and then open another one. The...
hi, i want to access next values inside a loop. As an example i = 100, 90, 80, 70, 60, 50, 40 for(int j=i; j>=i; --j)            {} inside this for loop i want to use, get 100 and 90, get 100 and 80, get 100 and 70, get 100 and 60, get 100 and 50, get 100 and 40 etc.... Next i want to use it like...
//+------------------------------------------------------------------+datetime send_ha_order_bartime;//+------------------------------------------------------------------+void send_ha_order(ENUM_TIMEFRAMES ha_TF, double lots,int magic)  //{int stop_level=(int)SymbolInfoInteger(_Symbol...
  Trend look back  (4)
Hello everyone, I just started this code today, but I'm having some problems understanding the error message. "could be one of 3 function(s)"  isn't particularly helpful.  Some ideas please. void Draw_Trendline()  {   datetime StartDate=TimeLocal();   datetime FinishDate=TimeLocal();   PriceClose =...
Hi! I would like to create an indicator which can show two line of two different currency pair in the same time. I've created the two timeseries, adjusted them togehter, but the indicator show only one of them. What can be the problem? #property copyright "Copyright 2017, Roland Szarka."#property...
  Volume  (4)
What is this volume here?
Hi friends, Is there any indicator in the market which is free... that shows a Bar close at how many % of the whole body?  When my mouse point at that bar, it will review at the right top side of the Chart. Very small with number percentage showing in colour Setting. Red = Bear  Example 40% Green =...
Please, I have a little problem on my MetaTrader 4 app on my android phone. I mistakenly removed my indicator window on the chart section of my MetaTrader 4 Platform on my android phone, now only the main chart window displays on the chart section. I want to bring the indicator window back. Where do
All my experts do not work under 600 Compilation... what did you do? What should I do in order to work under my old mq4 files? I need Meta Trader 4 editor not Meta Trader 5 editor.
Im getting this 1 error after compiling, I am new with MQL4 coding, Can anyone see the problem so I can correct it ? Thanks 'interval' - undeclared identifier Test 1.mq4 81 38 see attatched picture
  Trailing Stop  (5)
Hi All, Any suggestions and/or criticism for why my trailing stop isn't working? void TrailingStop(){      if (OrdersTotal() == 1)   {      for (int i = OrdersTotal() - 1; i >=0; i--)      {         if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == True)         {            if (OrderType() ==...
Hello I recently developed my first EA the code is all looking fine it compiles with no errors or warnings. However, when I try to run a backtest on strategy tester it's either it runs for some time then pauses with no errors being logged anywhere, one time I left it thinking it may be running in...
  Forex  (1)
Hello,  Is there any Indian who is making money in Forex? The money I mean to give you a decent living? #TIA
Hi friends, Is there any indicator in the market which is free... that shows a Bar close at how many % of the whole body?  When my mouse point at that bar, it will review at the right top side of the Chart. Very small with number percentage showing in colour Setting. Red = Bear  Example 40% Green =...
  Hide subwindow  (10)
Hi there, Me again to ask your help. I found this indicator in mql5 website : https://www.mql5.com/en/code/13586 And, i want to add a hotkey to hide subwindows. But i failed ... case KEY_HIDESUB:           {            bool isFixed=ChartGetInteger(0,CHART_WINDOW_IS_VISIBLE,true);            if(...
Hello, I wrote an indicator text based, no lines, no graph, a separate window like iExposure.mq4 using  #property indicator_separate_window , in fact I started from that indicator to build mine and I noticed that iExposure does the same thing, nothing appear until i change time frame. My problem is...
Hi all, I have this problem since I tried to set up an email alert. error: 4066 or/and 4058. The mail function worked good until I have done a mistake so EA has sent too many mails. I guess my problem is that the client terminal queue mail is full and every mail is from now rejected/failed. I have...
  offline chart  (5)
I had imported M1 data from 2000 to current in the history center but I cannot get that data to show up on an off line chart.  Screen shots below show history center with all of the data but the open offline chart screen does not show that data being available
Why meta trader calculates EURUSD from 1970 ? Physical euro coins and banknotes entered into circulation on 1 January 2002. How does it calculate price for those years, when there was no data
Hi, I need help to get Ask and Bid prices for 5 digits broker. double vbid = MarketInfo(Symbol(),MODE_BID); double vask = MarketInfo(Symbol(),MODE_ASK); This code return just the 0.0000 value, but my rates are at 5 digits. Please help.
I'm trying to speed up and light up my Indicator calculations, so I'm searching some ways for that. I wonder if there is a speed difference between Math functions formats and the regular/basic formats. For Example: MathMod() vs fmod() MathCeil() vs ceil() MathFloor() vs floor() MathAbs() vs fabs()...
Hi, I notice my MT4 is giving this exception when I try to send test message How can I purge the pending message on MT4 ? Is there any limitation of sending email ? Currently I'm sending email in 4-5 minutes intervals Please advice
[Deleted]
Hi All, Myself and my friend are new toMT4 and would like the forums best opinions on what broker we should be usingand some further help on getting the best out of MT4, We are going to be spreadbettingso can anyone give us the best advice on what is the best broker to use withMT4, Also we would...
Hi, Is this possible to open multi orders for different pairs using single EA? eg: I would like to sell all USD pairs so when EA runs it must open Sell/SellStop/SellLimit USDJPY ,USDCHF,USDCAD,etc... if possible please give me suggetions to start coding myself? I never coded for multi pair orders in