MQL4 and MetaTrader 4 - page 2

  telegram.mqh reply to msg  (38   1 2 3 4)
Hello, I am currently coding an EA with telegram.mqh that send mt4 signals to my telegram. What I'm trying to do now is to make updates about my trades when they hit a TP and send a 'TP hit' message in telegram. This is no big deal but I was wondering if it was possible to link this 'TP hit' message
Several days trying to correct this fateful error, reading on the forum and following the recommendations of pre-publication checks on the Market at: https://www.mql5.com/en/articles/2555 . I have already implemented the following checks: 1.- Insufficient funds 2.- Invalid volumes 3.- Takeprofit
  US vs UK Keyboard  (19   1 2)
Does anyone know if there is a way to detect the keyboard or current language settings without using DLL calls ?
Hi All I want to increment my lot size by 0.1 but the first lot size has to be my default lot size calculation and then the 2nd lot just increment by 0.1 so on and so forth. I've tried to back test but the increment is incorrect, if there's any better way to do this your help will be appreciated
  Requests & Ideas  (7222   1 2 3 4 5 ... 722 723)
Hello , this EA is shwoing great result but i am sure that it needs some tuching tunning ( i guess playing around with its codes or adding others ) Please have a look at it i am sure it worth it - i hope so - attached is a forward test of this EA for just 5 houres or less ( when ever i get good...
Hello, What does the period value in Indicators? . If i set period = 5 , this means (for 1 min timeframe, Period = 5 min), (for 5 min timeframe period equal to 25 min) , (for 15 min timeframe period = 75 min) and so on?. Period me number of candles in past from current candle
The code below finds breakeven of multiple trades which is at $0 how can find $10 breakeven point string eq; string Sym[]; double Equity[]; double Lots[]; double sum = 0 ; string level0 = "" ; ArrayResize (Sym, 0 ); ArrayResize (Equity, 0
I am trying to use DELETE method for WebRequest function , but it seems to always return error -1. There are not much discussion about this issue after some searching, besides using some windows function as workaround? Some suggest X-HTTP-method-override: DELETE but I don't think that works. Just
Greetings, I would like to inquire about displaying dots in a histogram. When the Shape style of an indicator is set to DRAW_HISTOGRAM and the line style is set to STYLE_DOT, changing the chart scale to 4 or 5 causes the line width to become STYLE_SOLID, even when the width is set to 1. Is there a
Hi guys, I have an issue with an indicator, specifically on JForex. I have an indicator called Fractal. Setting the Fractal to 1, the indicator creates an arrow (when the conditions are met) immediately as the new candle opens. However, with this script I'm trying to modify for MT4, the arrow
Hello, I copied myOrderClose and adjusted it to look like below. Why? because trying to use myOrderClose for one order just closes the whole lot. Problem is that when I call myCloseOneOrder() it completes, verified with Print() and then something else goes and closes everything else anyway. The wish
Hello, Code to count orders : int trade_count_ordertype( int trade_count_ordertype_value, int trade_count_ordertype_magic) { int count_4 = 0 ; for ( int pos_8 = 0 ; pos_8 < OrdersTotal (); pos_8++) { OrderSelect (pos_8, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol
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