MQL4 and MetaTrader 4 - page 8

Hello,   I managed to change the default templates so every new chart I open I have the right colors, but when I'm testing my EA and custom indicators I still get the old default template.   How can I change that?   thanks, Giulio 
Hello, When i download Chart History it getting downloaded from MetaQuotes but i want a Data from my broker server?. How to download that using Metatrader 4
  Can't log in?  (1)
I have had an order open for the better part of a year that was on the Mt4 platform, Now I can't log in to get out of the program? I upgrade to Mt5 but I can't see anywhere to log in,,,, only to a demo account? Any help will greatly be appreciated. Steve
In MT4 using the Strategy tester, the data only allows a certain range of dates. Right now its from 8/9/2023 to 4/9/2024 in one installation and only a few days in another. There is a bug. I have found a work-around. Version2: 4.00 Build 1415 1 MAR 2024 (Oanda's version and the same for Forex.com)
Hello your help will be highly appreciated, I have coding a function that triggers opposite ordertype when a trade closses in loss but not working at all. That is if we have buy order active and the order closses either by sl or opposite close and it resulis in loss then sell order will open at the
Hello. Just playing with the strategy tester. Tester is running since minutes, but CPU gets very low usage. Is there anything I need to know? It seems it should at least utilize one core to 100%, not
Hello. I have installed and re-installed my MT4 but the period separators are not showing up even though it's already been checked in TOOLS > Options > Charts. It was working before but had to re-install. Anyone here had the same issue? How do I fix this? Thanks in advance. Dennis
  OrderClosePrice() or Bid/Ask?  (22   1 2 3)
Should i use Bid/Ask for closing trade void CloseOpenAndPendingTrades( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) { OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol () || OrderMagicNumber() !=
I am not able to access metatrader 5 VPS anymore after subscribing and cancelling multiple times within a day. I do admit that my actions definitely caused this but is there a way to restore it? Please help
  Refresh the chart window  (33   1 2 3 4)
Hi, Every time I want to refresh my chart window, I click in a different time frame. And then, I chick again in time frame I was. So I get two question: 1- there is any short key I could use to refresh my chart window? 2- there is any code I could use in MQL4 in order to refresh my chart window
Hi all, I developed a tradingview strategy that uses the heinken ashi candle patterns for entry with a vwap trend filter. The strategy can be 50% win ratio and profitable. I would like to convert it into an mt4 ea so that i can properly backtest it. Please does anyone have any advise. I\ve used chat
[Deleted]
I'm using MT4. I would like to display trading currency pair on the top right corner in chart as follows Is this kind of mq4 indicator available? Or would you please tell me the script for this? I found Currency.mq4. http://www.forex-ex.com/indicators/indicators/Currency.mq4 However, this displays...
Hello everyone, For the past few days I've been looking for a reliant solution for this issue as many of the solutions I found online have many drawbacks. Market Open or Close - how can I find it? - Day Trading Strategies - MQL4 and MetaTrader 4 - MQL4 programming forum (mql5.com) First of all, I
Hello I've used mainly MT5s and recently started to use several MT4s. However they are very slow. I asked the VPS provider and they answered as follows. Is it true? We need to use multiple single core servers instead of one big server? --- the answer from VPS provider --- For MT4, studies have
Hi everyone, I have this problem: the same Webrequest works in an EA written in MT5 but gives a 403 error in an EA for MT4. This is the code: string cookie= NULL ,headers; char post[],result[]; string url = " https://www.google.com " ; int res= WebRequest ( "GET" ,url,cookie, NULL , 500
Hi, I want to write an EA which works with the gradient (slope) of the EMA-Indicator. How can I do that? Do you have any examples? Thank you, sunshineh
Hello, I am trying to get a last order close price (most recently closed order) based on filter Magic number and Order symbol . Code : double LastOrderClosePrice( int magic) { double LastOrderClosePrice_Price = 0 ; for ( int ClosePrice_i = 0 ; ClosePrice_i < OrdersHistoryTotal();
As you know there is the "Symbol" you select at strategy tester and the "Symbol" you define in your EA. Normally they are both the same. Today all of a sudden my EA started to work really slow. (I only use Open Prices).. I could not find the answer and I just checked if it would work fine at other
windows 10 or windows 11, two or three terminals are ok, but then more i add more lagging i get, page faults, handles, etc what to do? 1 terminal is using only 1% of CPU why can't I run many mt4 instances? r9 5950x 128 gb ram windows 11 6 TB NVMe SSD, german hetzner 10GBit uplink i am running 13
The stupidity here is unbelievable at times, I have the following: enum MinRSQ{ RSQ10 = 10 , RSQ20 = 20 , RSQ30 = 30 , RSQ40 = 40 , RSQ50 =
Hello, I am making a code, If Buy Order reach above 30 Point from Entry price, close Sell Order If Sell Order reach below 30 Point from Entry Price, Close Buy Order. int gRangeClosing_Automatic = 30 ; if ((LastOrderPrice(OP_SELL, gSellMagic) - Ask) / Point > gRangeClosing_Automatic) {
i mean everything, settings, layout, windows charts, logins, passwords, favorites, experts, codes, etc ,etc not possible? have to reinstall
EDIT #1: I've set the max spread allowed to 0.0 in the input settings following the recommendation of @ Fernando Carreiro (thanks!). I've also added a function to close the trades I'm opening on every tick (I wasn't closing them before). Finally there was an issue in the "RunChecksBeforeOrderSend"
Hello I can check if the mouse wheel is moved when the cursor is in my interface area, but I didn't find a way to get the wheel moving direction. Sorry I'm not sure if what I said was clear in English or not. I mean I want to know if the user spins the wheel upside or downside. Both of them gives
Hello, The last weeks I have been struggling to get my strategy tester to run simulations in the way I want it to happen. Basically, I want to test an EA from the TFs M30 up to H4 but when strategy tester is loading the data it only takes the M1 and sometimes the M5 to do the simulations. Did anyone
Hi guys, i want convert some pine Script indicator code to MQL4 but im beginner in MQL pls help me that is some code i want use it in MQL but i dont know how ... ` float p= 0 float q= 0 float m= 0 T=close-open L=high-low k=math.abs(T)/(L) atr=ta.atr( 50 )
Hi coders, I'm learning coding now. Pertaining to this post that quoted by "nicholish en" : https://www.mql5.com/en/forum/305424#comment_10829666 for ( int i= 0 ; i<symbols.Total(); i++) Print (symbols[i]); From my understanding, the "symbols" is a buffer to store all the open trades symbols. Let's
[Deleted]
  Chart Axis Fonts  (21   1 2 3)
Hi, How can the x & y axis font sizes be changed? The default font size is too small. The other charting programs I use have options to easliy change them, but I can't find anything in the help section that addresses this. Thanks for your help, Geoff
Hi, I tried to get the BUY and SELL's Lowest Net Profit or Loss (LLNPL) for each symbol in my EA, but I cannot get the correct answers ... My codes are as follows :- string arTrSym[ 8 ]={ "AUDCAD" , "AUDCHF" , "AUDJPY" , "AUDNZD" , "AUDUSD" , "CADCHF" , "CADJPY" , "CHFJPY" }; double bLLNPL[]
Good day, All. When optimizing an EA I’m getting are out-of-array errors, erroneous results far out of line of what they should be, and terminals crashing altogether. When I run a backtest for any of the passes that are a result of these optimizations, the EA provides what I would assume to be