MQL4 and MetaTrader 4 - page 129

Hello There, OrdersHistoryTotal() always returns zero, even though there are trades on my terminal during back testing with the strategy tester, Are there any limitations of the Strategy Tester that we should know of. I am using the Latest Version of MT4
Hi Everyone,    Could someone please help, I have lost my list of currency pairs on all of my profiles it is the list that appears just above the profile name at the bottom of the screen.   Thanks in advance.   Roman  
Hi, Did everyone have the same problem with that picture of the curve of balance? The text format of the X-axis did not generate correctly! I have already tried to re-install the MT4 software, but the problem still can't solve. If you know how to fix this issue, please help me! Thanks a lot
I want to show automatically a template on the chart when I use my EA, So I used Alert(ChartApplyTemplate(0,"My_template.tpl"); When I run my EA, the Alert returns True, but my template is not applied. (I also tried without the "Alert") The template works fine when I add it manually. Any idea where
I want to build the ultimate pc/server for doing purely set file optimisations for my EA's and too run them super fast, I need your help from those who either do frequent optimisations or code EA's for a living! 1. is MT4 optimisation speed CPU dominate? 2. is MT4 optimisation speed GPU dominate? 3
Hello! I'm new to this and I'm testing my Robot inventions to make changes, etc. The problem arises when testing the Robots, is SUPER, but SUPER difficult to test them in an orderly way, since never, but I have never been able to test a robot in the range of dates that I want, always the graph does...
Hi, ive been trying to compare the current days open to yesturdays close but am a little stuck on the following. Can someone please explain to me that within the following code : //+------------------------------------------------------------------+ // Gap
can anybody who copying mql5 signals can share information regarding : what ratio of lot is been used when copying mql5 signals? for example if signal provider having and account balance of $200 and using 0.01 lot size in his routine trades and and investor who copying him is having $1000 in his
Hello I am trying to introduce a "circuit breaker" in my code to suspend EA operation if it detects unsual activity over a defined period of time, e.g. the "flash crash" of GBPUSD on Oct 6, 2016, and June 23 when the Cable fell off a cliff. Obviously with a major currency pair there will be times of...
I want to move the EA comment from left to right corner ? Ask for advice as well. Get help
[Deleted]
can anyone help me with my problem. strategy tester doesnt work due to error 130 and error 138. // Pivot now; double pivota; double s1a; double r1a; double s2a; double r2a; double higha = iHigh ( _Symbol , PERIOD_D1 , 1 ); double lowa = iLow ( _Symbol , PERIOD_D1 , 1
i am trying to get my indicator i made work but i have a lot of buffers 18 to be exact . with #property Strict everything compiles fine no errors and no warnings. but when i load into terminal i only see the first buffer i am still new to coding. #property indicator_chart_window #property
  iHigh iClose  (19   1 2)
Dear Friends I was using this codes to get todays high and yesterdays low values in MT4. double ToDayHigh=iHigh(NULL,1440,0); double YesterDayLow=iLow(NULL,1440,1); Whats the code in MQL5 for the same. Thanks Noufel
[Deleted]
Hello guys, can anyone help me with my code. It works fine while testing in demo but while testing in strategy tester it doesnot meet my entry criteris and open trades after one is closed. please help me
Hello everyone, I'm TC, a newbie here. I am currently trying out an EA called XM V2.5 on Exness MT4 real cent account. When I used this EA on MT4 demo standard account, it worked fine. But on real cent account, it doesn't open any trades and give these errors on 2 charts: EURUSD,H1: Error: 0 GBPUSD
I was once again thinking about the data that I collect from the History Center for my specific platform, and I was wondering if daylight savings times were automatically adjusted. For example, if the data I get is in GMT, does the summer time data stay in BST, or does it change to what it would be
MT4 mobile can't get MQID Does anyone experience the same thing? I have Internet connection and also I can use it for trade, but I can't get the MQID
I am increasing the lot size with each subsequent Limit transaction but my code/formula just keeps on returning my starting lot size. Here is the code to calculate the lot sizes with each subsequent limit trade that is generated: input double Start_LotSize = 0.01 input int LotMultiplier =
  PipSize  (2)
Hello! I have one doubt about computing PipSize I have This: double Pip() { // double pip = 0 ; int dig =( int )MarketInfo( _Symbol ,MODE_DIGITS); switch (dig) { case 2 : point= 0.1 ; break ; case 3 : point= 0.01 ; break ;
Strange behavior with ChartTimePriceToXY function. Please check the following code #property copyright "Copyright 2021, PuguForex." #property link "https://www.mql5.com/en/users/puguforex" #property version "1.00" #property strict #property indicator_chart_window #property indicator_buffers 0
I want to monitor the data indicators of multi currency and multi cycle. How to ensure the integrity of the data of multi cycle indicators? If I only run EA on one currency
Hi guys. Can an EA be programmed to recognize when a user manually opens or closes a trade from the chart
[Deleted]
Dear Everybody I want to cancel all of my orders on metatrader at once. and if there is an expertor program that does that at a certain profit the better. Can anybody help me inthis regard. Regards Mehdi
Hello! I have one question … lets say that I set pending order open price at 0.1234… and the price… from 0.1230 jumps to 0.1238… let’s say during High Volatility times like news or rollover or something. At what price will the pending order turn into a market order
  Simple BOOLEAN FUNCTION HELP  (22   1 2 3)
Hi Coders, I am struggling with this simple function.. All I want it to do is look back over the past 10 candles and return true if any of the candles where higher than the upper bollinger band.my error '}' Not all control paths return a value. I just can't see where I am going wrong here. bool
[Deleted]
  Time filter  (19   1 2)
Usually time filter is widely used. For those that need Hours time filter here it is: if (((Hour()>=StartHour && Hour()<EndHour && StartHour<EndHour) || (Hour()>=StartHour || Hour()<EndHour && StartHour>EndHour))) EAActivated= true ; else EAActivated= false ; Can somebody share
Hi I'd like to use both heiken ashi candle chart and candlestick chart. In MT4 there if I use the heiken ashi indicator on my chart it will displayed on top of the candlestick chart, the indicator will overlap the candlestick chart. Is there a way to display the heiken ashi chart on different
  Half Trend EA  (9)
help me for buy and sell condition based on half trend indicator #define _htCall(_buff,_ind) iCustom ( _Symbol , _Period , "half-trend nrp" ,inpHTPeriod,_buff,_ind) double _htCurr = _htCall( 7 ,inpHtBarTotest); double _htPrev = _htCall( 7 ,inpHtBarTotest+ 1 ); bool _canBuy =
I have been running the EA and did not notice the 4108 error before - but mow the code refuses to close my pending orders and give 4108 - invalid ticket errors. Here is t //Close Pending Orders when no trades open Count = 0 ; if (Sell == 0 ) { for (Count = OrdersTotal ()- 1 ; Count >= 0 ;
Hi all, my objects disappear & after a few seconds or so they reappear again. If you know the problem please help. void OnTick () { int Bottom= iLowest ( Symbol (), 0 , MODE_LOW , 75 , 1 + 40 ); ObjectDelete ( 0 , "Bottom" ); ObjectCreate ( 0 , "Bottom" , OBJ_RECTANGLE , 0 ,Time[ 0