MQL4 and MetaTrader 4 - page 3

Hi all. I have recently used ChartSetInteger function to programmatically change sub window height (MT4 latest build 830). Once this code is applied to the chart, then I can't change sub window size manually afterwards. It seems the code fixes the sub window height and even if I drag my mouse...
  MT4 Purchases Not Showing Up  (14   1 2)
Hi, I am having trouble with the 'market' tab on MT4 after I login to community, I am unable to see all my purchases on my account to download my products I have purchased, and this started occurring after I reinstalled metatrader, but also checked a different installation I have on MT4 on a
Hello, I am trying to achieve two operation, On friday before market close, close all the open trade before X hour and On monday after market open, Start taking new trade after X hour. I am trying like this int MinuteToAvoid = 60 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
Hi All I would really appreciate some assistance. Fairly new to MT4. I have recently managed to code my strategy into an EA, which is mainly used on indices (DE40, NAS, US30). I ran a backtest on my NAS trading strategy using MetaTrader's Strategy Tester, set to the "Every Tick" model for maximum
How can I get MT4? Whenever I download the MT4 window setup and run it, it ends up installing MT5. This is confusing as I actually need MT4 to write EAs for my clients
Hello, what should i use along with OrderSelect? if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful return ; if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful break ; if (! OrderSelect (i, SELECT_BY_POS
  Triangular moving average (TMA) ...  (775   1 2 3 4 5 ... 77 78)
The purpose of this thread is more personal ... At some stage (some 4 years ago, posted it at this post : https://www.mql5.com/en/forum/175938/page17I ) coded one variation of an indicator that I named TMA centered. After that somebody shortened it's name to TMA and ever since I am receiving emails...
Hi All,   Working on a Multi Time frame stochastic oscillator tool that works well for me as a manual trading strategy ive integrated into part of my EA and it works fine forward testing it but I cant back test it using strategy tester.   Ive done a lot of modding of the code lately to really strip...
  Dolly new MT4  (51   1 2 3 4 5 6)
Dolly Graphics v16The Dolly indicator has been updated to reflect the new code available with the new 600 series MT4, hopefully when MetaQuotes release the next platform update everything continues to operate. The indicator is currently being tested and checked for any obvious bugs and will be...
I CANNOT DOWNLOAD or INSTALL new MT4 at my VPS, I think the IP of my server is banned by mql5 for this, anyone has any idea or how to contact mql5 offically, the support messaging system just direct me around and cant really even a message
Trades from 2022 and 2023 are archived in one of my MT4 accounts . Does anyone know the reason for this and if it is possible to unarchive these trades? All history show correctly in MyfxBook but not in the terminal. The broker, IC Markets, could not explain why this happens in only one of my
Hello, I want to close all opened or which open trade automatically except 2 most recently opened trade. My code extern int BlindClose = 2 ; void CloseOldOrder( int MagicNumber) { int OldOrderClose_totalOrders = OrdersTotal (); int OldOrderClose_count = 0 ; int
I had abandoned Strategy Tester for more than a year. Then I decided to try it again. Terrible experience just like in the old times. I write an EA that is an absolute winner in the backtests, then I put it to work on a live account (demo, of course) for three days and it loses money for three days
HI I am using Macbook air 2015 using BIG SUR version 11.7.10. on the app store it says my system is not compatible. i contacted the apple support and they told me to ask for a previous version of MT4 which is compatible with my system. hope someone can help on this
Hi coders, I'm learning programming now to develop a simple Stochastic indicator . I don't know what codes are lack of resulting the indicator wasn't updated automatically. Upon a New Bar is launched, there are 2 issues :- 1) Stochastic "< 80" or "> 20", the DotLine wasn't removed automatically 2)
[Deleted]
Hi I have seen If two object crossed with each other then the cross section get white or in other color. Is there any way to avoid that?   I don't want the white area, I want it to be full blue. How can I do that? One thing predicting object cross section are is not possible as its dynamic. Regards...
Why did you post your MT 4 question in the MT 5 Indicators section instead of the MQL 4 section , (bottom of the Root page )? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I have moved this thread. Hi guys
Can someone help me find the non-repainting version of the attached TMA Centered Bands. Thanks a lot
  Pattern  (24   1 2 3)
Pattern indicators.
Why did you post your MT4 question in the General section (a miscellaneous catch-all category) instead of the MQL4 section, (bottom of the Root page)? Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893 Moved to MQL4 and MetaTrader 4 How
Hi coders, need your advice for codes. I have a Multi-Symbols EA and for exit section, the codes are as follows :- bool SequenceBreak=false; if (OrderType()==OP_BUY && OrderMagicNumber()==mnBUY) { string ExitSequence= StringSubstr (ExitSig(sym,cTkt,cOpTm,cOpPx,cLot,cTPPx,cSLPx), 12 , 12 ); //
I've got a smiley face, a moving chart, and a preloaded strategy running on a 1 minute chart (should have plenty of signals)... but no trading. Ideas
Trying to place an arrow/text if there is three consecutive bearish or bullish candles formed. Tried a couple of options, but unable to handle Arrow's position. Either too many arrows got painted or the location was at the wrong place. Also tried place text but no luck. #property copyright ""
  Interesting and Humour  (49770   1 2 3 4 5 ... 4976 4977)
Members of the forum, don't forget to follow the rules
0 I'm trying to create a simple EA tool in MT4 so that I can drag and drop two lines on the chart, and based on input parameters it calculates lot size, and then when I press execute, it enters a limit order with the entry price and stop loss price. As you can see I'm consistently getting the error
Good morning everyone, Is someone can help me understand the difference between : bands_shift [in]  The indicator shift relative to the chart. shift [in]  Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Thanks a lot for...
  Coding help  (7912   1 2 3 4 5 ... 791 792)
Hi, Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick ? Tnx
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
  Traders joking, the beginning  (7329   1 2 3 4 5 ... 732 733)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
I am trying to make a Indicator based on the RSI + BollingerBands + MA My Indicator doing great job by creating Arrows and Vertical line for Signal when matching the conditions but the problem is it not showing RSI, Bollinger Bands and MA in Chart. Currently it showing like this : I want like this