MQL4 and MetaTrader 4 - page 45

Hi i build a function for remove one day or add one day but when i use it return me always epoch linux time , whats wrong ? t1 = StrToTime( "2023.09.12 14:00:00" ); nuovaData = _TimeDateCalcolate(t1, "-" , 1 ); Print ( "Nuova data: " , TimeToString (nuovaData, TIME_DATE | TIME_MINUTES |
Hi i have a script this , script read a file ini with mql4 code , i notice is very slow to load , therefore i try to create DLL for see a difference of velocity i create a dll this a code #include "pch.h" #include "myfunctions.h" #include < string > #include <Windows.h> // Funzione per leggere il
I have a multi-currency MT4 EA, before September 15 2023 the EA runs well and normally on the demo account, can open BUY or SELL orders on various pairs according to signal calculations . But since September 15 2023, when the EA is attached to the chart the EA only opens all BUY orders on pairs with
Hi guys i want higlight a candel that have >= 6 pips i create this script , but not mark all candel that respect this parameter , why ?? //+------------------------------------------------------------------+ //| 6pip.mq4 | //|
  MT4 CMC Markets  (1)
Hi just wanted to know if others had come across this I cannot download full currency pair history in CMC markets MT4 only goes back to January 2022 and when i download it says there is not more to download it is a demo account has that some thing to do with it
  MT4 Alarm BRT  (1)
I just got an alarm for a trade. But I do not recognise this alarm can someone maybe explain to me what is could be? And if it is something I should be looking into. Alarm: (Time) BRT: 0.08 1.06874 15.0 false 1
I set up a new VM with MT4 and on this when I use Comment("something") the lines are overlapping, e.g. below. I have a workaround which is to change Windows 10 trying to "fix" blurry displays. It does make the RDP session look very crisp and lovely, *but*, MT4 ends up looking garbled as per this
how do you change the time zones on your charts and how do you delete drawings on charts please
As in the subject - I'm trying to rent a VPS to run some automation tests on my broker's demo account. When I go tot he payment, I'm picking PayPal, then e-mail and password, all gets accepted. When it's supposed to go to Paypal's page where I pick verification method, it gets stuck on infinite
Hi guys, could anyone please assist me with this. I keep getting a "No Connection" error when I log into my MT4 account on my phone. Please help me
The Problem, When coding in MQL4 with setting "Auto list names" enabled MQL4 will reverse the caps lock settings.  For Example, If normally characters are typed in lowercase when caps lock is off and uppercase when caps lock is on it will be reversed to typing uppercase characters when capslock is...
Help: In a code for chart window indicator, is possible to change the size of an arrow ?
Where is the best place to put this code? Now I put in the OnTick() function but if disconnected(internet) calling OnTick() does not occur! Which function mql4 call every 1 second? if(!IsConnected(){     Print("No connection!");}
Hi all, I had to restore MT4 from a Time Machine backup however it is missing all my expert advisors. As far as I know, MT4 runs under Wine on a Mac. Do you have any idea where these file may be or perhaps they are lost forever…? Thank you for your help
Steps to recreate crash: 1- file > open an account > scan servers > will crash while scanning, if I click 'next' it will go to the login screen without crash 2- file > open an account > next > open a demo account > fill out form > crashes while load bar is increasing 3- click bottom taskbar > login
[Deleted]
Hi, How can I find market Open or Close? dunction GetLastError()? What value return function? Or other function/way? Other solution? Thank you.
Just added an ea and clicked auto trade but when I check the journal tab, its just a wall of placed and cancelled trades. Says it can't open file , any fixes for this? Any help is appreciated, thanks in advance
Am trying to convert an mt4 indicator to pine script but am having issue understanding the interpretation of this code. double ArrayClose[][ 240 ]; double ArrayHi[][ 240 ]; double ArrayLo[][ 240 ]; ArrayClose[i][cnt] = iClose ( NULL , TF1, j); if (ModeHL)
Halo guys pls help my english is not too good but i new to trading and to code. i want to make simple code like this but i get invalid price inside the error int start() { double price1= Bid()-Ask(); // An price value // Attempt to open a pending order int ticket = OrderSend ( Symbol
Hello, this message is translated by AI. I hope my communication makes you understand. A month ago, I encountered a problem. When I opened MT4, without running any EA or anything else, the Desktop Manager Service of Windows used an unusually high CPU. However, when I minimized MT4, the CPU usage of
I have a bool code Can i use a single operator like this Bool a >b && b<a && c>d && d<c; Will this work? Thanks in advance
Hi, I have the following code.. orderS = OrderSelect (buyTicket,SELECT_BY_TICKET); bCount++; // B2 bPrice[bCount] = OrderOpenPrice(); // bPrice[2] bTicket[bCount] = buyTicket; // bTicket[2] buyAvgPrice = (bPrice[ 1 ] + bPrice[ 2 ]) / 2 ; orderM =
Hi try to create a dll and import it , i store the dll inside a folderlibrary , the dll i have created with visualbasic.net and i call it with this code //+------------------------------------------------------------------+ //| da_cancellare.mq4 | //|
Hello, can someone enlighten me about the difference with the following: 1. Period () vs _Period Digits () vs _Digits etc 2. If I used this code: Correct me with this one please ExampleBB = iBands ( Symbol (), PERIOD_M15 , 25 , 1.618 , 0 , PRICE_TYPICAL ,MODE_MAIN, 1 ); //Do I get the values of the
Hi, I create this simple script i notice in some cross return many decimal and if i normalize double not normalize nothing how is possible?? i do some error ?? return 2023.09.09 11:11:35.465 da_cancellare AUDCAD,H1: FirstPriceVCFirstPriceVCFirstPriceVCFirstPriceVCFirstPriceVC---> 86.52200000000001
I have downloaded MT4 platform on my new laptop and when I try to install it asks for "Please specify the proxy server options". OS:- Windows 10 Please let me know how to resolve this issue
I'm reading through some of the threads here and on other forums. Some things sound astonishingly promising, other things sound totally discouraging. I see that Newdigital has posted a fantastic amount of data here. Must spend much time, very appreciated. Looking at the EA results, some fantastic...
Hello everyone, Every time I try to backtest a strategy with already downloaded history data, or trying to download history data of a new Index, an error message is popping up: Anyone could help? Thanks
Hi, I am unable to install broker provided MT4 on windows 11 and getting error " The application was unable to start correctly(0xc0000017)." i have tried every fix provided here on MQL5 website and over internet, youtube but still the problem remains unresolved. if anyone can help, please provide
I having a problem bringing up my acc balance info on the mt4 platform. When I login to my acc/platform, my acc balance is not shown. How do I have my funds transfered back to my Forex.com Acc?