MQL4 and MetaTrader 4 - page 77

Is it possible to export 1 year of 1 minute data from MT4? I checked history center but there is only 5 days of candle to download. Also is it possible to export tick data, which is more accurate than 1 minute
mt4 can't load Market Terminal
In data window we have Volume and Date that they are not double but for indicator buffer we have to define double but i want to show integer values but in data window it put 4 zero after floating point that i don't want it is it possible to show integer values without floating point and zero's
double Target; if(StringFind(AccountName(),"Smart") Target == 1; Is it possible to use the if function with the contains combination? Alternatively, I can ask for a formula correction
  50 MT4 terminals  (16   1 2)
Hello, happy Saturday! I wanted to ask you. I have a pc in which there are approximately 50 MT4 terminals. I do not use VPS in these terminals. I have noticed that from time to time some, or all of them close. I don't know what it is due to, I don't know if it's a ram problem or something. Since I
hi, I am writing an offline chart in which I get OHLC data from an API. I convert data to csv and convert the csv to MQLrates and then save it as hst. this is the first step which is working fine. now the issue is that sometimes because of network issues or latency or any unknow error there may be a
Good morning I find "Levels" particularly relevant but it cannot be superimposed on a graph! I do not understand why I managed to modify it to have Levels MN, Levels W1, etc;;; but superimposition is still impossible Thanks for your advices
Can anyone make the attached indicator appear as equal sized bars like in the picture? It appears as the slope (multicolored) line, and can even make it in a historgram look, but the bars are not all the same heigth, but some larger and some smaller. My coding is very limited, but it seemed like it
Before developing Neural Network systems for Metatrader we experimented with Volume Spread Analysis(VSA). What we've done with this trade assistant is taken the VSA trade setups that signal the largest movements in the market, simplified them for the non-VSA expert, and modified the VSA concepts...
Hello everyone, I cannot get email notifications in MT4 to work, even though it appears to be very straightforward. The journal tells me Mail: 'Test message' failed I use the newest version of MT4, v 4.00 build 1265. In MT5 it works perfectly with the same settings (see attachment). I followed the
Hello guys! I noticed today that if I put the mouse over the SL or TP of an order it shows the amount of loss or profit that would be made if achieved on a box, is there any function to return that value on MQL4? Image of the box is below: Thanks a lot:)
Hello, I would like to transfer some information to an MQTT server. Since this is not part of the standard functionality, I would like to use a library which is available as a DLL (links below). Unfortunately I don't have much experience with MQL4 or C and fail with the import block definition. I
Does anyone experience issue with MT4 notifications? For past few days I am getting below error message frequently and so some notifications are not send. It was working fine before. 2022.07.19 14:02:40.716 Notifications: 'Double Top for XAUUSD at 1714.58 in 1 M Arrow -1 OrderType 1' not sent to
Hello. I am looking for a code that will make an expert advisor work within a specific timeframe e.g. M_15 and also I need a code to make it work on only the chart I drop the EA. Currently, when I drop my EA (or scripts) on any chart in my MT4, it always attaches to AUDCAD . This happens even when
Does anyone use CMC MT4, it seems it only allow one order being placed on one tick. Is there anyway I can get around this
Do I need to use OrderStopLoss() and OrderLots() and do the math to get the profit/loss of the SL for an open trade or is there a single function that will fetch it for me? If there is I can't find it, but the fact that I can hover over the line and MT4 shows it to me has me wonder if I'm missing
Since the recent update to MT5 on IOS, the chart does no display properly when on zoomed mode on the device settings. Is there a fix
I have been all over the forum and read all the articles in Tester, but I can't seem to find much about how others may be achieving Walk Forward Analysis for their EA's with MT4. I know there is a tool by Easy expert forex, but this tool unfortunately has limitations. Essentially it only seems to...
Hello! Can anyone help me to code, how to count total number of running currency pair(s) with active order(s). In the picture, there are 4 active orders running with 3 different currency pairs. Here, I don't need to count total orders using OrdersTotal() function. Also I don't need to identify...
  Need help with coding please  (148   1 2 3 4 5 ... 14 15)
Hi i am trying to code a very simple EA but i'm not a programmer and i've never made an EA before. I took the MACD Sample from MT4 and edited some parts and deleted all the rest that i thought i don't need. I'm sure my code is really horrible I would like the EA to work like this: My custom
Hi Guys, Please help in correcting the following code in MQL4. While I am compiling following code in EA. I am encountering 2 errors of "unbalanced parenthesis" (highlited in Bold Red) and "unexpected end of program" (highlited in Bold Yellow) // declare global variables double lotSize = 0.01 ;
Hi, Say I run an MT4 optimization from 01.01.2016 to 31.12.2019 and then I want to test all strategies from previous optimization on the period 01.01.2020 to 31.12.2020 to eliminate those with poor results (on the basis that they were probably overfitted or not statistically significant enough so
ask for help For payment please check Order number: 919895545 [...]
I've created this so far, but for some reason the ObjectSet is not working properly. My comments are in [] #property indicator_chart_window #property indicator_buffers 0 #property indicator_plots 0 extern datetime ArrowDate1 = D' 2023.03 . 03 00 : 00 '; extern double ArrowPrice1 = 144.8730 ; extern
Hi every one I wrote an arbitrage expert advisor which is trade two pairs in same time. expert is working good in demo account but when I change account to real, it s working for some time and also open positions but after a while it s freezing. restarting the MT4 don't solve the problem. again when
below here we can see the last buy position should be opened when there are 3 supertrend in green, the problem is we can see on chart that shift 1 of these 3 supertrend doesnt have all 3 green, one of them is red, down 1.06397, up 1.06185 and up 1.06242, but in journal we see up 1.06127, up 1.06242
[Deleted]
Hello, I would like my indicator to save all ohlc values to csv file once loaded and then do not save anything more until manual reload of the indicator. This is what I did: int handle = FileOpen ( "export.csv" , FILE_READ | FILE_WRITE | FILE_CSV ); int OnInit ( void ) { if (handle> 0 ) {
I am growing very tired of going to each currency pair chart and setting the magic number each time I compile my code on the test (not talking about tester) I am running. Is there a code snippet out there where I can count all the currency pair charts open with an EA called "bob" (for example) and...
Hi, I would like to create a dashboard with 28 rows and 14 columns using classes. However, I am having trouble with the 12th and 13th columns as they are not displaying correctly on the chart (please refer to the attached photo). I would greatly appreciate your help in resolving this issue. Thank
Hello everyone, I've been struggling with a stupid problem for a few days now, and I've come to the realization that MetaTrader 4 simply doesn't offer a way to update .hst files so that functions like iClose() can always read the latest candlesticks from the file. Somehow, the iClose function keeps