MQL4 and MetaTrader 4 - page 30

Hey, as the subject says, I would like to change an Expert Advisor's parameters according to my account drawdown and market conditions. I do not have the EA code as it is one developed by a third party and I added on my account with an *.ex4 file. Is that even possible with MQL4? Thanks for helping
Hi guys i have this code //+------------------------------------------------------------------+ //| OCOea.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //|
[Deleted]
I have MT4 chart which has some chart history, I want to export this history to MT5. how can i do that
hi guys ,is possible set bold a write inside at editbox ? i have create the esditbox with insede a text , but i not find how is possible set a bold EditCreate( 0 , // chart's ID "Cross_1" , // object name 0
Good morning Forum, I have an EA that currently has two variables: buyOrders and sellOrders which increase by 1 each time a new trade is made. I have a maximum number limit which is currently set at 10 buys and 10 sells simultaneously. If a trade closes, then I would like these variables to decrease
I did a Buy Order in USDCAD at Price 1.36141 and Sold at 1.36241 with lot size 0.02 but I only got 1.47$ in profit instead of 2.00$. As per my research Take Profit will only close when Bid price reach the take profit price. Can Anyone help Me Here is the image of order from Account History
Hello guys, i am going crazy with a strange issue using iCustom call to have value result from this mq4 indicator https://www.mql5.com/en/code/7376 Code is really simple and it works fine if, for example, in backtest i execute code with a different symbol from where i call iCustom. I give you an
How can I make chart selection exclusive per account
This is just some information, rather than a question, but I thought I'd share it since I've been wondering how to do this for some time. The standard BITMAP and BITMAP_LABEL objects allow us to load bitmap images on to the chart, but do not support 32-bit images (with alpha channel). This means if...
When I download the demo- version-indicator from the Market it always goes to my live Mt4 account. Now I want to buy the indicator but I want to put it into my demo Mt4 and not the live Mt4. Is that possible?...Thanks
Hi; I am curious to know: presuming I have a global variable assigned the value of Symbol(). Which expression (see below) would be better to use and what are the differences? Thank you. string Currency= Symbol (); // global variable MarketInfo(OrderSymbol(), MODE_POINT); MarketInfo( Symbol
Hi. I have bought the [ product name] licence and I am unable to paste the .ex4 file in the experts folder In MT4. It just doesn't let me paste the file in it. Any suggestions? I have a Macbook Sonoma, don't know if it has anything to do with this. Thanks Product name redacted by moderator
I am trying to code for to identify engulfing bars but I am getting the wrong open, close, high, low values. This is the snippet of code: int currentBar = Bars - 1 ; // Get the high,low,open and close prices of the current and previous bars double currentHigh = High[currentBar];
I am trying to do a trade for lot size I use 0.05 for the lot which should be 50 cents per pip and I am doing 20 pip stop lose and 30 pip take profit so if I win the trade I should get $15.00 but mt4 is only paying me $1.50 which works out to be 5 cents per pip If I put it like this 0.50 which is
I'm trying to decode and convert HST files from MetaTrader 4 (MT4) into CSV format. However, I've encountered issues with the buffer size and struct.unpack errors. I suspect that the file format or data structure may have changed in the latest version of MT4. How can I find information about the
The MetaTrader 4 platform update will be released on Friday , March 24, 2023. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
is it possible to convert EX4 file to MQ4 file.
Hello, I put text label on the chart and also put label (white painted) on the chart. But yellow text label is under the label and I can not read it. How to move the text above the white label? Is it z-order to solve the issue
  Pending orders  (3)
Is it possible to make a pending order on MT4, seem like the only thing that I can place is a market order? I'm switching platforms because of this
Hi. I have an indicator based on supply and demand zones that I try to upload to indicator marketplace The indicator is compiled with no errors, but as to be able to upload it on MQL5 marketplace, I need to add "property strict" function. After I add it, the file gives multiple errors. Can anyone
Hi all, Been a while since I have done this sort of coding, so I'm a little rusty... I need to get the computername and am trying: #import "kernel32.dll"string GetComputerNameA(string lpBuffer, int nSize);#importint start(){   string name;         GetComputerNameA(name,32767);      Print(name);...
  continue?  (2)
hi guys i always see codes with continue at the end. what exactly it does? i coded some not complicated EA but i dont used it. I try to read in google but i cant really understand why you have to put it. What help will it add on my EA? Here is an example if ( ( OrderMagicNumber() != magic25 ) || (
Hi, I'm having a new problem with an old function that gets the Computer Name on Build 646. #import "kernel32.dll" int GetComputerNameW(string lpBuffer, int nSize);int GetEnvironmentVariableW(string lpName, string lpBuffer, int nSize);#import string GetComputerName()  {   string...
I'm aware that the subject of point value, delta lot value, and related calculations has been extensively discussed on this forum. Until recently, none of my customers had encountered issues with point value calculations when using my products. However, I've encountered a unique problem for a client
Is there a limit in MT4 for how many files or "trees" (folders , files) can be in the experts folder ? i have a subfolder with 4 source codes and i can only have 2 compiled max
Hello everybody, I need to retrieve the ComputerName from the local machine and I found some (older) posts regarding this question from 2011 and 2014, but actual NOT ONLY ONE of these exchanged solutions are working with MT4 running on Win7 (neither 32 nor 64-Bit OS). Either I get EmptyStrings as...
[Deleted]
Hi,   I'm pretty new to MT4 , and using Win 8.1 . It seems that I have problem seeing the symbols in Market Watch and in order window(see added pic) . in Market Watch I can see it only when I select it. In order window I can't even select and place an order. (I guess the problem is related because I...
Hey guys, I was hoping can point me in the right direction: I'm trying to code a very simple indicator that loads at a specified time a specified template. But somehow mt4 is keep telling me that the template file is not found, even though I made sure its there and that it's spelled out correctly. I
  MTF RSI Bar Indicators  (64   1 2 3 4 5 6 7)
I have had these RSI indicators for a while and thought someone might find them useful, you can load 2 different RSI Periods on 1 chart as shown on the screenshot. rsi_bars.ex4 rsi_bars_2.ex4 24/06/2007 I have recoded this indicator and added a Multi Number so that you can now load as many of the...