MQL4 and MetaTrader 4 - page 2

The following statement in my code is resulting in Pending Order getting created but it somehow is not respecting ordertplvl. int
Hi coders, I need your help for my learning process. I'm using a Multi-Symbol EA which it can run sizeable pairs and it was written by someone else. My Mission :- 1) To get the 1st OrderOpenPrice 2) To get the 2nd OrderOpenPrice 3) Finally, get the difference MathAbs( 1 - 2 ) I have written the
For example, I have a BUY LIMIT position, But when the march has continued and the order is still not executed, I want to change the TP to the highest between the order placement date and the current date
  make a loop  (2)
I want that, in every 15 minute candle, the cobuffer value of the previous 26 candles will be added together Can someone help me in this case
Hi guys i try to create a indicator that calculate a CCI over the ratio of 2 instruments i code this //+------------------------------------------------------------------+ //| CCI_Ratio.mq4 | //| Expert Advisor created by
Hi bros, I have Expert Advisor and want to sell it, on the other hand i want to protect source code too. EA can be place at Metatrader market or user can be download .ex4 code website which to be ready later. Monthly subscribers for example must be paid 1000 usd for to use it. But if the subscriber
  Cannot load ea  (1)
Got the error “cannot load” and the path to the ea Tried everything Restarting,reinstalling still doesn’t work
  Elite indicators :)  (15189   1 2 3 4 5 ... 1518 1519)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert
Hey all! I'm working in an EA framework so I can spin strategies up for both MQL4 and MQL5, and I'd like to implement a HashMap, since there's an implementation already done for MQL5 in /Include/Generic/HashMap.mqh, I gave it a shot and moved the folder to MT4 to see what happens. To my surprise
[Deleted]
hi, i'm new to forex trading and to this forum. right now i'm studying technical analysis while forward testing FAPturbo on 15 minute charts on metatrader4 build 225. for the last two weeks i have wanted to backtest & optimize the forex robot on the strategy center - i follow the instructions...
Can't use MT4. I can login and see ma balance, but I can't make a trade. Does anybody have the same problem
Hi there! I can't log in to my demo account, the platform dosn't react on anything, it worked before but now it's completly dead, it says "No connection" Do I need a funded live account at MT4? Becouse today I took my ballance out of my 2 live accounts. Someone can help me? Thanks
Unable to connect my EA to MT4 all of a sudden yet its been working on the account. I am getting the below error; 2024.06.03 06:30:42.116 cannot load 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\9E1B7C64C22DC2B6AAD000B3A8AB1869\MQL4\Experts' Anyone who knows why it's not connecting
Dear All,   Is there a link for the above mentioned download? The MQL4 book format is in .chm which is not a file. Please help.   Regards 
Hello, Is there any way to send simple orders (just BUY, SELL, CLOSE) to MT4 from another computer (which is running a Java app) via IP? Don't need bi-directional communication; just uni-directional. Thanks in advance
  Is there MT4 technical support?  (41   1 2 3 4 5)
Is technical support for the MT4 trading platform available if I have a problem with it? If so, where? If not, what is the alternative
Hello I prepared a video so you can see how it can't connect. https://file.io/qBcf32Kdy58y I used its vpn. I never had this problem before. I can connect to my country's internet on my desktop computer, but I can't with my mobile phone
I am using MT4 and I have used mql5 marketplace from it. It was working well three months ago. Today when I am trying login I am getting the following message "MQL5.community authorization failed". The MT4 version I am using is download from "Octafx" broker website. Please help me solve this
  Ocean theory based indicators  (576   1 2 3 4 5 ... 57 58)
In this thread Jim Sloman's "Ocean theory" based indicators will be posted. _________________________________________ PS: this thread (as it stands right now) will have about 60 indicators posted here (metatrader 4 + metatrader 5 versions) Metatrader 4 versions are completed, but because I would...
Hi Guys I am trader with no coding experience. In the spirit GenAI I was attempting to automate a strategy I am working on into an EA using GPT. However whenever I compile it I run into trouble with the code due SL and TP variable declarations or something along those line. I am a novice trying to
Hello everybody, I have this code for "Expert Advisor", but it doeasn't work by my expectation. I want to open and close order by selected time. When the time is on the same date ex 15:00 to 16:00 it work. But when the close date is on next day it doesnt work ex. 23:50 to 0:30. The order open and
Hi I have a c# DLL which is working great when placed in MT4 (build 765) installation Folder. However, when trying to move the DLL to terminal_data_directory\MQL4\Libraries I'm getting "Unhandled exception 0xE0434352". I would like to emphasize that it's not a problem of calling managed code...
[Deleted]
The problem is that it's sending too many Alerts because the conditions are true for a long time. How can I get it to only send me one alert when it finds the conditions are true? Below is my code: total = OrdersTotal(); if(total < 1) { if(cnt_buy ==2) {...
Hi, I have old setup files, but whenever I install it, it gives me the latest version 1367. how can I get the older version? or avoid this update. I tried disconnecting my internet but it didn't install at all thank you
I want to make the buying process very easy for my customers. I want to make it after they pay they will download the EA instantly. After they download the EA they will need to enter a product key. Each product key will be allowed to be installed on x amount of platforms and can't be used by more...
Good evening, I can no longer download any indicators or eas purchased by me from the market to my mt4, how can I solve it? the mt4 diary says: MQL4 MQL4 MARKETS PRODUCT (115398) NOT FOUND IN THE DATABASE. Can you help me? Thank you
hi i have a simple indicator which draw a trend line horizontally and to the right , can we get the date of the t2 for that trend line using any code? (even if the trend line extended out the range of the trading bar)? as in the attached pic
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
Hello friends, I would like to recreate this indicator for MT4, or if someone already has it done for MT4, that would be even better :D. Here's a description of the indicator and what I know about it: It's an indicator used to understand when to enter and exit the market in spread trading