MQL4 and MetaTrader 4 - page 158

<Deleted> a drag n drop approach to price alerts for MT4. <Deleted> <ex4 file deleted - post mq4 if you want to share>
Hey everyone, I'm fairly new to coding EA's and im just learning all of the workings of indicators and i've hit a roadblock with an indicator that i found and was tinkering with.. I was just hoping someone could point me in the right direction (been spinning my wheels for a couple days now). All i'm
Kedves Mesterek! Dear masters! My question is: Would it be possible for an EA to only trade (open positions) between 12 and 20 every weekday. BUT he would bring stop orders 24 hours a day (Buy stop, Sell stop). So you could only open them at that time. Do you think it can be solved? Thanks for your
[Deleted]
So is there any particular valid reason as to why my EA is doing the very opposite to what I have told it do to? Any valid reason as to why It's returning known OrderSelect() error messages when I have set my EA to ignore certain error codes. I know why the EA is retuning these error codes and is
Hi, I want to ask you how can I use and trades only one trade. I used ontick this code: switch (EA_ModeStrategy) { case Trade1: { UpdateComment= "TRADE1" ; Trade1(); } } I have selected Trade1 in my dropdownlist in expert settings and
[Deleted]
Hello I'm writing my first EA and it includes and SMA. If it crosses, I just want it to close the old order(if there is one) and open the new order in the right direction. I tested it and improved it, but the EA opens the new position and doesn't close the old one. Here my codes: The one to close...
does any one can help me to do  i have two array , array A & array B  if i want to save array A data to csv then read from csv and to write to array B how can i code it,thank you! that is my code blow  thank you!  "writefile"handle=FileOpen(filename,FILE_CSV|FILE_READ|FILE_WRITE);...
Half of candlesticks are missing on charts
  Supertrend -> Icustom  (16   1 2)
Hi I have read many threads about this, but i still can find a solution... I wanted to try this common and very popular indicator, the "supertrend"...but still not finding the right way... actually I'm in stall with this code... double val_super_trend_up = iCustom(NULL, 5, "SuperTrend_plus", 10, 3...
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