MQL4 and MetaTrader 4 - page 60

double redMa = iMA ( _Symbol ,indicatorTimeFrameRed,maPeriodRed, 0 ,maMethodRed,appliedPriceRed,redMaShift); redMa= NormalizeDouble (redMa, _Digits ); double blueMa = iMA ( _Symbol ,indicatorTimeFrameBlue,maPeriodBlue, 0 ,maMethodBlue,appliedPriceBlue,blueMaShift); blueMa= NormalizeDouble
Hi, I use web requests to validate my EAs. I noticed that on Windows Server 2012 and older Web Requests always give error 5203, and do not work at all. This problem is not encountered in Windows Server 2016 or 2019. It seems like there is a sort of firewall blocking Mt4 Web requests. Do you know if
I am creating a radio button group in a separate indicator window on my charts but having difficulty with some of the settings. My code so far: #property indicator_chart_window #include <stderror.mqh> #include <stdlib.mqh> #include <Controls\Dialog.mqh> #include <Controls\RadioButton.mqh> #include
Hello coders I was able to modify a dashboard indicator to display CCI values accross pairs and timeframes. I am struggling to add alert when a +/- 100 level is crossed Can anyone help. Thank you Gerald
Hi! I am logged into MT4 desktop version, and want to set an investor password. I follow the instructions: Tools/Options/change password - and fill in main-password for confirmation + choose an investor password that contains 2small letters 2big letters 2 numbers, I also try to add other signs that
Hello everyone! I'm currently making an EA to feed a MySQL database with trading data. My current issue is when pointing out to an external database. //=====Connection To Database string host = ""; int port = ""; string socket = ""; string user = ""; string
Could someone please provide more information about the " license failed " error message? This is a free indicator downloaded from the MT4 market, and I am the developer of the indicator. I did not intentionally add this type error messages to the application. When my user change the time frame
How to toggle or make a blinking Object or to oscillate colors or something ? Is this possible or does the code just read so fast that it wouldn't be noticed ? I can see doing a counter of some type but I don't want to hold up reading of the rest of the code either. Is there such a thing ? Or has
Good evening everyone. I have a question to ask about sending the e-mail from Metatrader4. I installed the Metatrader4 application on my pc; I opened a demo account; I opened charts of currencies on which I am interested in operating; I downloaded a free robot trading which I then applied to each...
please help me with this warning.. i've tried so hard to fix it but still no use.. the warning is expression on the global scope not allowed... :-( also 1 more question what are: *unbalanced left or right parentheses? *end program/unbalanced parentheses? *unbalanced parentheses? if(OrderSelect(0...
i have battled with the below code to send a screenshot and a message on the fulfillment of certain conditions from mt4 to telegram. i was able to send just a message but the screenshot has not worked as i keep having numerous and countless errors. some errors INVALID ARRAY ACCESS , STRUCTURE TYPE
Does MT4 DESKTOP version run on AMD processor ? For example: AMD Ryzen 7 5700U On Windows 11 ? Thanks for your answer. After my search here below, i assume yes, MT4 runs on AMD processors on Windows11
Background I am current trying to use MQL4's AlgLib library made by MetaQuotes, albeit with some slight edits. I am making some changes to the CMatrixDouble Class to in the matrix.mqh file to make the CMatrixDouble class easier to use. Current Changes to class declaration
I would like the req.body to be formatted as key value pairs like so: req.body: { emailAddress: exampleemail@gmail.com, accessKey: 123456789 , accountNumber: 12345 } Improperly formatted code removed by moderator. ... I'm used to javascript and axios where you can just pass an object as the payload
  Closing order issue  (14   1 2)
Hi, i am very new to mql. I was trying to code a basic ma crossover, but i could open the order but not close it. Can someone help me where i am going wrong. input double lot_size = 0.1 ; input int slippage = 50 ; input double stoploss = 5000 ; input double takeprofit = 5000 ; input int ma_period =
In MQL4, consider code below: class CObject { private : int m_state; public : void SetState( int state) { m_state = state; } } CObject A, B; A.SetState( 0 ); B.SetState( 1 ); B = A; A.SetState(3); After this, I assume that B's m_state value will be 0
I use the built-in ZigZag indicatior of MT4 with settings shown in the image attached. Although 'depth' is set to 4, but the indicator draws two minima with only one bar in between. Isn't it a bug? I thought if depth is set to 4, the indicator should draw a minimum with at least 4 candles between
guys i need some help kinda new to forex am playing around with a few strategies i have this MA EA that opens orders after MA cross and candle close but the problem it closes the order only on MA cross with out waiting for the candle to close need help changing that i want the EA to close orders
Hi everybody! Is that possible to use the data of another currency in an expert advisor? For exaple I would like to create an expert advisor which I would use for the EURUSD, but I need data for the prediction from anothor currencys? Ergo I wouldn't use the Close[i] prices of EURUSD but for examle...
//+------------------------------------------------------------------+ //| find the gap.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com |
//+------------------------------------------------------------------+ //| gap_finder.mq4| //| Copyright 2023, MetaQuotes| //| https://www.mql5.com |
Hi Coders, I have issues with this compile error,   'if' - expressions are not allowed on a global scope   see attachment added    can any one help?
I have 4 copies of an expert advisor running in 4 MT4 installations. One of them is performing frankly well above the other ones. How do I save the settings from that expert advisor instance? I can't find it in the menus. To be clear, I mean the input settings, not the chart settings or the profile
Hi, I have FFCal.mql4 indicator (file attached) and I would like to use it into a mt4 EA to filter open trade from impact high and medium news economic. To use this indicator into EA it is necesary to put this code below into EA code: // EA Setting variables extern int MinsBeforeNews = 120 ; //
Hello, I have an EA for MT4 which causes occasionally my CPU to jump to 100% and to make MT4 unresponsive which stops all trading. Let's not discuss if the EA is poorly written or not, since I do not have access to the code. There is something else that bothers me. I am running this EA on 3
[Deleted]
Does anyone know the format of the downloaded history files locatedin the <MetaTrader>/history/downloads folder? These are not theusual .hst files but are .dat files. They are put there when you usethe "Download" button in the history center. Since they are alreadygrouped by month/year, I would...
  Heikin Ashi (better formula)  (104   1 2 3 4 5 ... 10 11)
Can someone do this program? From an article made by BNP-Paribas it seems that we can have better representation with Heikin Ashi if we made the following modified Heikin-Ashi candlesticks as follows: a. haOpen, haHigh and haLow according to Dan Valcu formulas. b. haClose is calculated first
I have rented MQL5 VPS with my free minutes included in my account and now I can not cancel or stop it anymore. I am logged into the same IC Markets account and same MQL5 account on terminal ... but I can not do any modifications to it. Help anyone
hello i am using the start.ini file to open the mt4 with Different account details the content of the ini file is : ; common settings Login= 2102179493 Password=f5secbf EnableNews= false ; experts settings ExpertsEnable= true ExpertsDllImport= true ExpertsExpImport= true ExpertsTrades= true and then
Hi; I want to perform a number of calculations that use double variables (Open[], Close[], Ma Value, iHighest, iLowest, etc.) My problem is that no matter which conversion function I use (NormalizeDouble, MathAbs, MathRound, (int), etc.) I can not get whole numbers (integers) on a continuous basis