Hi there, I have written an EA which I run on several charts simultaneously.In order to keep the margin usage within a reasonable level, I want to preventhaving more than 5 orders open at a given time. I use an order counter and compareits result with the value of OrdersTotal() before allowing a new...
hello everyone, I'm getting the array out of range error with my ea ... Can anyone help me out? Thanks in advance //+------------------------------------------------------------------+ //| FirstEA.mq4 | //| Copyright 2021
Hi , I am using an indicator (MQL4) which one of its input argument is mystery Enum! I could not figure out how to input its value I thinks it is something like this : enum ENUM_NAME{ item1 = 50 , item2 = 100 , . . . } as you can see items value are secret! second can I at list choose between items
Anyone knows how to do a more comprehensive and detailed backtest for EA testing in MT4? I wonder if it is possible to log the DD against time in graph and log the average holding time. Anyone please
[Deleted]
Hi I am a novice in MQL4 How can I select the last order opened ( in terms of orderopentime() ) when there are multiple orders opened. Any help will be much appreciated. Thanks Hamid
Good morning, I am still in the learning process so please dont be offended if I ask silly questions. I am working on an indicator and recently added some part of code which calculates a raff channel. The code was a bit enhanced by me so it can calculate the regression on another timeframe. This is
Any tips on keeping track of and managing multiple accounts at different brokers? So far I've been using myfxbook with ftp notifications which provide a good overall view of all my accounts as well as some analytics. It does not, however, provide realtime updates and does not allow me to execute...
Hi all, Hope all still well. Is it possible to GET the value of the fields in MT4 chart options for Script or EA building at all please? pls find att. Much appreciated
Hi guys. I have a strange phenomenom. I recently build a simple ea with multiple indicators. One of them gives a value (for a sell position). The strange thing now is, when I test the ea the trades get executet proberly but for some reason sometimes they get send for no apparent reason. When I check
Hi all, I have an issue with my MT4. The screen just keeps on flickering but when i switch to my other tabs such as google chrome, there is no issue. Surprisingly, when I am on my USDJPY tab, there is no flickering. May I know if anyone of you can help me out? It is impossible to trade with this
Hi, I have a very strange situation, the following code mt4 didn't place buy order with USA30, but did with oilusd or gold. pls help... thanks void OnTick () { if ( OrdersTotal ()< 1 ) { int buyticket= OrderSend ( Symbol (),OP_BUY, 1 ,Ask, 3 ,Ask- 100 * _Point ,Ask+ 100 * _Point
Hello, Do you know where I can get the last 10 years data on forex H1 unit for example. Because I can only backtest my 5 month moving averages on H1 Thanks in advance
Hi, why is AccountFreeMarginCheck() returning a negative number within this code? And hence not letting me place the trade? //+------------------------------------------------------------------+ //| Test 7.mq4 | //|
Hello, I need some help please for a function. I have an EA, and when the SL moves, it only moves at the bid or ask price, like you can see in picture. Below, i part of the code concern by the stop loss : Can you help me please for that the SL moves at for example 30 pips? Thanks. Best Regards, bool
Take a look at the picture. Here's the code: //+------------------------------------------------------------------+ //| HL Volitility.mq4 | //| Copyright 2016, MetaQuotes Software Corp. | //|
Hi, total noob here. I have an error and several warning s but I cant work out the issue. It says there is a '>=' - operand expected, but it is right there where it says the error is(marked in red background). What am I missing?? Also does anyone know of a tutor to help with learning MQL4? Happy to
I have this code // -------- This import a Windows DLL-function used to fetch your timezone ---------------------- #import "kernel32.dll" int GetTimeZoneInformation ( int & a0[]); #import //------------- //------------------------------- function to calculate timezone -------------------------
[Deleted]
Can someone please point out what's wrong with my logic? What I'm Trying To Do: I am trying to make the Indicator Draw Arrow based on these conditions: If there is a bullish candle then check if the arrow indicator had shown an arrow on the lower timeframe during the interval of current timeframes
Hi all, I'm currently messing around with Multi-Currency EAs and also a multi-currency strategy testing script. An obstacle I seem to be coming across is when trying to find symbol info for other symbols... Attached is a simple example of what I mean: void OnTick () { double Data =
I wanted to use iCustom to trade the arrows from the TrendIndi indicator. I can see the values from the Data Window for all the arrows on the indicator, but for some reason, iCustom is not picking up all of the data. For some trading pairs, it might miss a couple of arrows, but some might miss about
Hi Forum, running a test on an EA I get all trades grouped together, What could be the cause, still learning
Hi, long time listener, first time caller. Ok, so I'm used to an old iPhone 5S which would "ding" at me when a new trade notification appeared regardless of I had MT4 open in the foreground or not. I'd be staring at a trade, the SL would be adjusted as it went in my favor and I'd enjoy a chorus of
Hello am new in programing.I want to create lot fonction where if order is loss EA change initial lot to fix lot and after profit increase initial lot before return initial lot. For exemple initial lot is 0.10.I want that after every loss EA change lot to 0.01 and after 0.01 lot if order is profit
Hello, I'm trying to make my EA check every second if the price reached a certain price and if it does change it's T.P and S.L. The problem is I managed to make the EA do that every new candle and it doesn't work properly this way. I've tried to make an infinite while that exit when a new candle
Hello. How to do that after opening the buy position under the candle, an upward arrow will be drawn, and the other way around in the sell position
Dear Guys, My name is Mihajlo Tomic, I live in Serbia (a smaller country in Europe) and I started trading in CFDs. I have a little bit of knowledge and experience but I believe in myself and some of my good ideas! I need 2 small simple MT4 Expert Advisor programs to help me try something. The first
Hi all, I wonder if someone can shed light on the possible disadvantages of using an EA on one chart to manage a portfolio of instruments. Attached is a basic EA which allows the user to select which pairs they want to trade, and the EA will then trade the portfolio regardless of which chart the EA
Hello to the ones opening this topic, I am currently building an EA that will support my manual trading, however i'm stuck with one on the condition and i cannot come around with a solution. I have read and tried to use hints from 2 topics of this forum : https://www.mql5.com/en/forum/192802  ;
How can the opening/closing date & time be exactly the same for this order (see attachment)? Pips moved from 133.497 —> 132.414 But the opening/closing date and time is 2021.06.24 03:15:37
How can I access the properties of an object that is located on a non current chart? That is, how to access the properties of an object whose chart is different from the one upon which the EA is attached. Any function please

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.