MQL4 and MetaTrader 4 - page 4

I have about four MT4s opened on a dedicated PC with Win 10 OS (no any other programs opened/running on the PC). For some inexplicable reason, the MT4s keep closing after a while without my intervention (I also do not have any EA that is coded to close the MT4 running on the MT4s), and I have to
hi am using a code to draw a horizontal trend line from t1, p1 to t2,p1 (which will draw it horizontally and to the right) . some time i tried to draw the trend line for example : over 90 bars but because of the holidays the trend line will not cover 90 bars.. how to solve this
Hi, since today my mt4 version doesn't work anymore with a EA i purchased from this site. Friday all was working normally, now I'm getting the message : 2023.03.19 22:34:38.360 CAP Strategy Builder EA XAUUSD,M1: array out of range in 'Calendar.mqh' (617,11) It doesn't matter, if I try it on my local
When I select orders with OrderSelect(), the manual says, "Sorting of the resulting list of orders cannot be guaranteed." OK. But can I at least rely on their opening times or ticket numbers? Is it guaranteed that newer ones will always have larger OrderOpenTime() and OrderTicket() values
Hi, I'm trying to build my own EA using EMA. When the program starts it will buy/sell according to the relative position of slow and fast EMA. Then the program should close the trade at the next EMA crossover. My first obstacle was to find a way to calculate EMA at the closing of candlestick, so I
I am hoping you can help fix my code. I am trying to code a MT4 indicator to indicate a powerful downward bar. No matter what I do, I still get :1 errors, 1 warnings OnCalculate function declared with wrong type or/and parameters line 42 column 6 OnCalculate function not found in custom indicator
  Good Indis =)  (23   1 2 3)
Hi, some good indis found in the internet (4shared) in this topic! First, a smoothed non-repaint version of macd indicator coded by igorad and mladen. Cheer´s
  News Trader EA  (1269   1 2 3 4 5 ... 126 127)
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the
Hello, the shortcut for commenting (blocks of) code in MetaEditor is "Ctrl + ' " (both on PC and Mac) However, the PC-shortcut for uncommenting is "Ctrl + ; ", but that doesn't work on my Mac. Does anybody know the shortcut for uncommenting (blocks of) code on Mac? Many thanks!
Hi There, I am using for the first time Zomro as VPS for forex trading pupose. I have installed well MT4 plateform and my trading account is live HOWEVER, i can not dowload my EA purchased in MQL market and the journal says the following " Cannot load'C\User\xxxx whereas I am able to use it in my
Just recently around February 25, 2024 I began getting the above message and now I no longer have access to my EAs; as they won't work without being logged into my MQL5 Community account (they won't load up on the chart) . I have no problem going to my Browser and being able to Login to my MQL5
Good day or night to my fellow coders, I would the clear help of someone to check these codes I think i have a few errors in them and can't find them myself. So I would like the clear Assistance, I do thank you all for your time and pleas DM me, if you're willing to help me on them
  double order  (12   1 2)
While testing my EA on a demo account, I noticed that I got an order executed twice in the same second. Although I have a check before using OrderSend to make sure that I do not currently have an order open. What would you suggest I do to prevent this?    total=OrdersTotal();      if(total<1)...
Greetings, I am new to metatrader and I am wondering if its possible to place manual test orders in strategy tester? This feature have to exist but I can not find it =(
Good evening everyone, I'm looking for an indicator that shows me all open positions + Long/Short + Magic No. in MT4. Similar to the attached image (unfortunately the indicator shown doesn't work for me). Does anyone know something like that? Would be grateful for any help ;) Thank you very much
Hello There I I am new to coding ! I`ve been developing my EA But I`m geting this error 'Ask' - function not defined ! The code is This if(OrderSelect(s,SELECT_BY_POS,MODE_TRADES)) if(OrderMagicNumber()== MagicNumber) if(OrderType()==OP_SELL) if(OrderOpenPrice()-Ask> MoveToBreakeven*pips)
HH = iHigh ( Symbol (), TimeFrame, iHighest ( NULL , 0 , MODE_HIGH ,NoOfBars,StartingBar)); LL = iLow ( Symbol (), TimeFrame, iLowest ( NULL , 0 , MODE_LOW ,NoOfBars,StartingBar)); Please, is it possible to use a formula to find out which bar had highest high and lowest low or the time when it
Goor afternoon guys, I am currently coding an Expert Advisor to automagically trade for me. I already got the indicators, their respective buffers, the names and all of them are on the correct folder. I am using the iCustom() function to read out the buffer values and perform calculations. So far so
Hi all, I'm new to MT5/trading in general, still using a demo account. I was entering a trade into my trading log and looking at the the history tab it reads "Price: 153.837" on the left, then further along it states "Price: 154.475", now I went short on this trade so I understand it moved against
Hello, Anyone knows the location of MT4's data folder for build 1417 released on 1 May 2024 ? For a M1 MacBook Thanks
Hello, I've got a problem. I created an EA which trades the data of a range bar EA. Everything is working fine when I have both of the EAs operating on my computer MT4 terminal. I basically open up a M1 chart and place the range bar EA on it. After that I open up the offline chart which was created...
Been working on an EA based on the 5-13-62 trading system. need help trying to get the EA completed and working. Would appreciate any assistance in helping to get this EA completed. I've attached file that I have developed thus far.
I am writing an EA that uses crossing moving averages . I tell the crossing of moving averages in the following way: // if shift5MA > shift0MA if (shift5MAArray[ 1 ] > shift0MAArray[ 1 ]) { //if shift5MA < shift0MA VALID SELL if (shift5MAArray[ 2 ] < shift0MAArray[ 2 ]) {
  there are no trading operations  (66   1 2 3 4 5 6 7)
I test me EA on my own broker it works okay. But when I send in for validation I get the following : test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no...
Hi, I would like to have the following structure: template < typename T> class RingBuffer { public : class AccessResult { public : bool valid; T item; }; AccessResult getAt(idx i) const; }; With this, I can declare a RingBuffer like this: RingBuffer<SomeFancyElement> elems; and
Hi all, i have developed a forex trading strategy that works on a daily pattern of events as well as signals, yes it is true!!, the problem is is that windows 10 does not like offline charts in a simulator and simply freezes when advancing backtesting speed. Windows 7 on the other hand will run the
Hello community, unfortunately, I'm too stupid to find out whether, and if so, how, I can achieve the following: Suppose I have a basket of positions: - USDCAD, Sell, 0.05 lots @1.36300 - USDCAD, Sell, 0.08 lots @1.36600 - USDCAD, Buy, 0.05 lots @1.36900 Is there a way to calculate at what price
Hi everyone, I'm Matteo, I have a question about backtesting on MT4. I need to backtest an EA on different cross at the same time... ...for example an EA on EURUSD and the same EA on USDCHF starting from 01.01.2024 to 01.02.2024 with the same capital. Is it possible? Or, maybe, is possible make two
I'm got a C# DLL that calculates my trades for MT4. It is compiled as x86 and uses RGiesecke.DllExport for unmanaged code. So far so good, but I'm not able to call any other class libraries from it. As soon as I instantiate a class in an external dll file (which I manually copy into the Libraries...
Hi, I am trying to write code which determines which chart is currently on top, in MT4. For example, if an EA or indicator is running on a particular chart, how to determine whether the EA/indicator's chart is currently on top? I know that you can bring chart to top: ChartSetInteger(chartID,...