MQL4 and MetaTrader 4 - page 172

Hi everyone. I've been trying a different strategy recently, however been having issues with the EA not updating as I thought it would. I'm running the update part of the EA on a timer like so: void OnTimer () { double bbMid = iBands ( NULL , 0 ,bbPeriod, 0 , 0 , PRICE_CLOSE , 0 , 0 ); if (
[Deleted]
Hello to the MQL community, I'm using the ZigZag indicator for my strategy and building an EA for that porpuse. Is there a way for getting info. from this indicator? The info. that i need, is the price at the last top "zigzag", and the price at the last bottom "zigzag". I enclose a picture...
  metatrader 4  (10)
Hi, I have been using metatrader 5 for the last week or two, and I wanted to demo a couple indicators on metatrader 4 but when ever I download the program from this site I only get metatrader 5 for some reason? any idea what I am doing wrong? Thanks for any help on this matter!
Hi everybody! This is my very first message on this board, so I thank you in advance for the help you will kindly provide me with. I would like to have some hints about the best way to make mql4 interact with external programs, written in a different language as it may be Python. The task I'd like...
Hi all. I need to calculate the lot size based on a fixed amount of the account base currency and a StopLoss. But I need to remove the amount charged by the commission on ECN brokers. For EURUSD 5 Digit works fine... but  not for other pair like USDJPY   Then i do this: extern double InvestMoney = 5...
Hi I am considering trading for someone who only provides MT4, not MT5 at this time. Can my MT5 code run in MT4? thank you
Hi guys. Please I would like to know if the objects that I placed on my charts are also migrated to VPS. In other words, are chart objects such as VLINE, HLINE etc. migratable
Hi. I need to create some label & some arrow, but when i use ObjectCreate() command, this object will appear in chart window object list. Is there any way to create an object, but the object itself will not appear in object list? so user will not remove of move it by accident. Thank you.
  Magic Number  (2)
I'd like to create a function which returns the number of trades using a specific magic number. Does anyone have ideas as to how that could be achieved? Not necessarily asking for specific code but possibly ways I could use existing mql4 functions. Thanks in advance
//+------------------------------------------------------------------+ //| KM-Strength Arrow v1.mq4 | //| Khurram Mustafa | //| https://www.mql5.com/en/users/kc1981 |
Hi community! I have coded this system and i keep having the error of zero divide in 'my code name' could you please review my coding, what is the problem here? int magic = 100222 ; int OrderID; double CurrentSpread = NormalizeDouble ((Ask-Bid), Digits );
Like many other users I would really appreciate it if the Metaquotes staff would implement some features that would rise the quality of this forum. Introducing categories would be a first step. I want to help a little by asking the forum users, which categories you think, would make sense. This is...
MetaTrader 4 MultiTerminal, as a new component of the MetaTrader 4 Online Trading Platform, is intended for simultaneous management of multiple accounts. MetaTrader 4 MultiTerminalwill be helpful for those managing investors' accounts and for traders that usemultiple accounts simultaneously....
[Deleted]
Hello Guys, pls kindly see attached screen - I would like to see in a Comment() the last (current) values of the gravity lines. Tried different ways but can not get to the buffer data - kindly askig for your help! Indicator's mq4 is attached.
Hi, So I've done a basic script that sends me an alert when the price crosses the ichimoku cloud but it only seems to work on the M1 Chart. Any other chart leads to no comment appearing and no alerts, I've tried changing period_current to PERIOD_H1 but that doesn't work. Just starting to learn and
Hello Everyone, First I just want to say thanks a lot for your advice in advanced.. :) So I have the following issue. I created an indicator using custom indicators by importing them through iCustom. If I simply put the iCustom = IndicatorBuffer I get a Value in my Buffer which is acurate and works
  MQL4 vs MQL5  (66   1 2 3 4 5 6 7)
Good day! I would like to get an expert opinion.... Could you please advise on the level of MQL5? Is it worth upgrading from MQL4 to MQL5
Hi! I would like to know if the functions related to global variables (for example GlobalVariableSet () and so ) work correctly on a VPS server If so, when I do a new migration will the existing variables be deleted or will they remain in place? Thanks
  stop limit order  (1)
Hello, I am looking for an EA able to open buy and stop limit order on MT4 which is by default availble on MT5. My broker wont support MT5 so I am in lookout for such EA on MT5. Can anyone assist on the same? Thank You
Since 12th December, 2021, the above function has been disable? I am using MT4 Version 4.0 build 1350
Hi all, I am new to the forum and this is my first post. I am having quite a lot of fun learning mql and I am a 3 month newbie at it. I am at a point where I am wondering if using the database functionality in MT4 would be of benefit to me... it appears to be in the current version of metatrader 4
  Buy Limit  (1)
Hi, I'm trying to execute a OrderSend using a limit order, however neither the buy or sell limit executes when I try to run my test script. This is how I wrote my code, did i do something incorrect. int ordeID = OrderSend(NULL,OP_BUYLIMIT,0.01,Ask + 0.0001,10,Ask - 0.01,Ask + 0.01);
Hi, I was developing an indicator that needs to read data from a csv file This is the initialization function and below is the csv file that i'm reading I was testing the functionality of the fileSeek function. In particular the aim of this experiment was to print a value, then going back to the top
[Deleted]
How would I setting the take profit at daily pivot point ranges? OrderSend(Symbol(),OP_SELL,0.01,Bid,3,Bid+200*_Point,Ask-100*Point,NULL,0,0,Red);
I'm trying to get the price of the latest opened order in mql4. Plz help
I placed "AAPL.csv" into the MetaTrader terminal folder's Files subfolder (MQL4/Files) to be accessible by the EA. The structure of this csv is as follows: Date,Open,High,Low,Close,Adj Close,Volume 1980 - 12 - 12 , 0.1283479928970337 , 0.1289059966802597 , 0.1283479928970337 , 0.1283479928970337
Hey guys, I just downloaded another MT4 terminal for my newest account. When I go to open a Gold chart I can't fine one?? The only options are Fx pairs?? All my other MT4 terminals have XAUUSD under metals. Why not this one? Br, Patrick
I have this function which checks whether there are open trades using a certain magic number. The problem is I intend on using this EA for multiple currencies at once. Each order using a certain magic number depends on certain criteria being met but other criteria could appear in other currency
Hi all, I'm trying to collect the return values from a function a put them into array. I've the doubt if it make sense to collect the values in the function itself or outside? On the other hand once the values are collected they can be used in array function (as arraymax) right? this is the function
Hi, How the stop out function works on back testing MT4? See attached = seems Equity is more than 50% down from balance and brokers SO is 50% = tester has not closed the test ... Thnx, L