OnTrade() operates in mql4?
Accustomed to mql5, I see that does not work in mql4... It's like that?
#property strict#property script_show_inputsextern datetime TimeNowTest = D'2015.01.10';datetime DayLightShifts[9] = {D'2014.11.02 02:00', //0 D'2015.03.08 02:00', //1 D'2015.11.01 02:00', //0 D'2016.03.13 02:00',...
Hi friend , Is it possible to get High and Low of a candle by click on it? I need ti get information of a candle by click on it.
Have anyone here used the FindWindowA function yet, I passed the class name and window name parameters but couldn't get the hwnd from this window, someone help me please //-- #import "user32.dll" int FindWindowExA( int hwndParent, int hwndChildAfter, char &lpszClass[], char &lpszWindow[]); int
Improperly formatted code removed by moderator
Hi All , i have achieve when OrderTotal = 0 then OpenTrade at this Symbol (EUR/USD). But when there's opened trade , example : (GBP/USD). not EUR/USD, How shall i open a EUR/USD Trade. Files Attached. Thank you
I've tried to use MQL5 VPS in the past and it missed majority of trades or seemed slow, but obliviously it is appealing for automation. So recently I tested the VPS versus desktop speed, and I'm confused by the results. Both were running exactly the same then I migrated one to VPS. Trades on
Hello everyone, I am desperately going around in circles to debug my problem of validation of my new EA. Apparently the test does not want to open any position on 4 currency pairs (see attached screenshot) while on my side, when I test them, I have no worries, no errors and multiple positions open
Hello everyone, I'd like some help regarding a class declaration, I basically want to declare a new class on a global scope to be used in different functions, but this class uses variables as parameters that may not be correctly initialised until the OnInit() function, is there a way to declare a
Hi all expert, Would like to enquire a mq4 code question I have Opened a Buy trade. I'm trying to Open a 2nd Layer Grid trade after 50pips away from the first Trade entry price. No matter Profit or loss. And open Another 3rd Layer Grid trade after 50pips away from the first Trade entry price. No
Hello, I'm coding up an EA. In the EA, I get the following error while trying to modify an order: 0 12:35:41.007 Algorithm1 XAUUSD,H1: Failed. Order Modified 1.5To3 SLOrder #664704280, TPOrder #664695196, false 2025.94 2026.0. Error Code: 6 2 12:35:41.007 Algorithm1 XAUUSD,H1: ExpertRemove function
Hello! So I have this array of a struct: struct exmpl { double orderstoploss; int orderticket; string ordercomm; }; exmpl arr[]; And i have this function that i use for searching . Is not working on struct arrays. How can i search for a value in a array of a struct ? thanks
[Deleted]
Say, I have this code bool A = true ; Print (A); The print output is 1 How to get it to print true, instead
Who helps me? I'm using * removed by moderator * mt4 for the binaries and to set the closing time I insert the number of minutes in the comment field but I don't know how to insert it in the expert advisor to get the closing and I don't know if it is right to insert the amount in euros instead of
Hello, please anyone help me write code in Mql4 for trailing pending orders. For instance when I open a buy position, I want my stop loss to be the same as my pending sell stop and trail them as market moves in an uptrend. Same for opposite Thanks
Hi Everyone I'm stuck. I'm trying to write a simple EA that would increase the lot size incrementally by 1 microlot every time that the equity drops incrementally by $200. So if my starting equity is $1000 and it drops to $800, the lot size of the next trade should go from 0.01 to 0.02. Then if the
Hello, I am writing my first Expert Advisor. When i use the compiler I get this message:End_of_program - unbalanced left parenthesis. How gen I resolve this? Thanks, Dropje
Hello guys please help me i want a expert advisor for MT4 which is delete all pending orders if there is no open order. if any open order no pending order is closed
hello, Is there a way for me to search for a specific message in my telegram channel, when SL or TP hited , reply to it using telegram's 'Reply' fonction? i try this but it didnt work. 20= index msg on telegram manually. Thanks, have a great day!. bool ReplyTelegramMessage( string url, string
hi guys, i want write a copy trade EA. but i dont know how i should send/receive info from an mt4 account to another account/accounts . i can a little python too,if it helps. should i use api
I get unexpected end of program and unbalanced parentheses on the below code void OnTick ( void ) { double macdLine; double signalLine; double macdHist; 0 int start() { macdLine = iMACD ( "EURUSD" , PERIOD_M1 , 12 , 26 , 9 , PRICE_CLOSE , MODE_MAIN, 0 ); signalLine = iMACD ( "EURUSD"
I am searching something that would close all positions when a profit is targeted or a %, but without removing my robot that open positions. It can also be a % in the balance account to be targeted). Is it something possible on MT4? I search the net but I found only another Expert Advisor. So I have
[Deleted]
Hello, i have find a example at https://www.mql5.com/en/code/1998 wich allows to load a website with MetaTrader and this example is from MQL5 and should work also in the new MT4 build. But i am currently not enough experienced to make a simple working example, because the MQL5 language is still to...
I experience a very strange situation when I call TimeGMT(), it does not get executed on every tick although I have placed it in OnTick() event. For example, I placed the following code, it may have iterated hundreds of ticks times, and it will only sparingly print out the print statement containing
Hello! It is possible to integrate MetaTrader 4 with other payment system
hello there can anybody helps us code this strategy into a tradable ea it opens BUY/SELL trades based on the giving signals position as seems to be in the picture for TP and SL
I think time has come for this thread...Kindly place your repainters here...and...Voila!...they will become non - repainters, with my Magic touch and my programming skills... P.S.: You can place your decompiled, expired & ex files in here...makes no difference to me...the work will be done...that I...
I want to optimize my EA parameters to find the best set of parameters to trade. My computer is quite slow so it cannot be optimized on the Mt4 platform. Is there another way to optimize or is there a website to help optimize parameters? Introduce to me
This post is the continuation of a previous badly located https://www.mql5.com/en/forum/345284 Corrections have been made on the advice of coders. //+------------------------------------------------------------------+ //| eaxtwoependingaorders.5.volatility.mq4 | //|

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.