MQL4 and MetaTrader 4 - page 71

  How to get backtesting faster ?  (33   1 2 3 4)
Need help to run backtesting using MT4 faster, What do I need for doing it ?
The new released version of the mobile trading platform MetaTrader 4 Android has fixed issues found in the previous versions and features the Crosshair mode. The updated application now allows users to easily view the date, price and indicator value at any chart point selected. This makes for more...
[Deleted]
High[0] Low[0] Close[0] all return the open value of the bar... am I missing something here? Doesn't make sense why if I do the following: Print("Open = ", Open[0]); Print("High = ", High[0]); Print("Low = ", Low[0]); Print("Close = ", Close[0]); They...
{ // Get the current fast and slow moving averages double fastMA = iMA ( _Symbol , 0 , FastMA, 0 , MODE_SMA , PRICE_CLOSE , 0 ); double slowMA = iMA ( _Symbol , 0 , SlowMA, 0 , MODE_SMA , PRICE_CLOSE , 0 ); // Determine the trade type based on the moving averages if (fastMA >
I'm Italian but I need an mt4 terminal in English to be able to make video explanations to my customers, I just don't understand how I can change the language of the platform. Can you help me
// Declare global variables extern double LotSize = 0.01 ; // initial lot size double MaxLotSize = 0.05 ; // maximum lot size double MinLotSize = 0.01 ; // minimum lot size double RiskPercentage = 2.0 ; // risk percentage per trade double TakeProfit = 0.0 ; // take profit level double StopLoss =
  This week profit  (6)
//This Week Profit int WeekTime= iTime ( NULL , PERIOD_W1 , 0 ); int WeekTimeLast= iTime ( NULL , PERIOD_W1 , 1 ); double ProfitWeek= 0 ; int WeekTrades= 0 ; for ( int z=(OrdersHistoryTotal()- 1 ); z>= 0 ; z--) { if ( OrderSelect (z
Hi, After updating/installing the latest MT4 Android Build 1357 yesterday (09MAR2023) from Google Play Store, my MT4 Android app didn't work anymore (the phone just didn't wanna load the app), so I had to uninstall my MT4 Android app and download/install the latest Android Build 1357 again. However
[Deleted]
How to remove the dotted line that shows your opened buy/sell positions in the chart? It just gets too crowded on the chart when I add other lines and indicators and drawings and I can't see what's most important for me - the trend line.
Hello there, I have downloaded a program called Closing all open Orders on MT4, it was working until yesterday like a charm, now it stopped. I can't see how to fix that, any help would be much appreciated
Trying to find the cross over between the two RSI's, then the Price at the crossover. This is what I've tried to do but comes with a 0 value, i am looking for a price value. Also i need a tolerance so that the difference could be close to 0 which is good enough. int RSI() { double
  Swap Calculation issues  (12   1 2)
Hi, I know this has come up many times before but I still cannot work out a generic way to calculate the account currency swap (typically USD) for ANY symbol (whether currency, commodity, equity, etc.) See below for example code which leaves a lot of questions. Here are some: (1) why is Tick Value...
Hi all, I encountered a problem that my indicator arrow didn't show properly. When I first added indicator to chart, it showed correctly. But if I scroll to the earlier date , the position of arrow was totally a mess. Please check chart below which is normal Please check the chart below which is not
Hi i want to define some conditions to remove indicator and i want to put this check that conditions on OnCalculate() function suppose after expired time So for use ChartIndicatorDelete() function i need the name of current indicator name but __FILE__ just return compiled indicator name so if
hi , i was wondering if anyone knew the code/logic on how the MT4 creates its backtest testers 'every tick' modelling. if you compare the real life tick vs the 'every tick ' model , it can be very different. so wanted to know what the code was as used in the testers backtest. i saw the article below
Hello, Can you give me this mql4 Script? Delete the Pending Order when the Spread is high
Sometimes this indicator works, and other times it show up blank or returns 2147483647. Any ideas how to fix it? Thanks! #property indicator_separate_window #property indicator_minimum 1 #property indicator_maximum 99 #property indicator_buffers 1 #property indicator_color1 SkyBlue //---- input
How do I update the bot
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