Hello, I have the need to download MetaTrader 4 for development purposes.... I tried this link https://www.metatrader4.com/en/automated-trading/mql4-ide, where I got the file mt4-setup.exe; but once clicked on it, and finished the installation procedure, I found MT5 instead of MT4. Why ?
Hello everybody, I just wanna ask some help in coding this strategy: {If candle 3 close and the RSI crosses below level 20 and candle 2 close below RSI level 20 and candle 1 close below RSI level 20}; open SELL position and opposite with the BUY position Thank you very much. I hope that somebody...
Hi, I'm trying to code a stochastic for M1 which take the data of M15. Somehow it doesn't works. been trying to figure out. Any senior could help me. thank you!! Here's my code iMA ( _Symbol , PERIOD_M15 , 50 , 0 , MODE_EMA , PRICE_CLOSE ,i)> iMA ( _Symbol , PERIOD_M15 , 100 , 0 , MODE_EMA
Hi, can someone help me out how i can get the number of total trades make of an ea based of magicnumber ? Is there a function i can use and than i will show the number as an comment? Like this: Total trades: <<number of total trades made by the ea>>
hi, please help me i have probleme with weekend when i draw line after specific time and i want exluding weekend from my range i have 2 datetime extern datetime StartTime=D'2018.05.29 15:20'; extern datetime EndingTime =D'2018.07.23 03:45'; i want to calculate time between 2 datetime starting and...
Hi there As i am not a programmer, even though it s an easy "task",i will be grateful for you guys to help me. I need help for making the arrow appears on the chart above/below the candle everytime 2 of my indicators meet the requirements. I will speak in detail after i will be contacted. A simple...
Hi Mentors, Would greatly appreciate if anyone could help me to add alert to my indicator //---------------------------------------------------------------------------------------- input string __________1__________= "xxxxxxxxxxxxxxxxxxxxx" ; input string __________2__________= "=ARROW CODE=" ;
i would like to add a new step-mode like if last candle was bullish or bearish open new buy position / new sell position something like: addposmode==5 && Bid>=highestshort+pipstep && last-candle (1h timeframe) was bearsih addposmode==5 && Bid<=lowestshort-pipstep && last-candle (1h timeframe) was...
hello, please in MT4, (i.) can multiple indicators(4) be coded within another Indicator, Is it possible . Any specific examples. example , BB, MACD, RSI , MA CCI.(All in one). (II.)In indicators can the syntax, 'indicator_chart_window' and 'indicator_separate_window' be used in the same Indicator...
My script looks for a couple of trendlines with specific names and draws another line on top of it, which can then be seen by an alert function. I am able to execute that script on the current chart, but I want this to do that on every chart. How do I do that? #property copyright "Copyright...
Good afternoon, I would like to ask for several guestions. For example I have actual Bid price=1.0050 and I set sell limit order for price=1.0090. In Ordersend() function I adjusted slippage for 3 pips (broker has 4 and 2 points). Prices will go up from actual price 1.0080 subsequently: 1.0080->1...
Hi I am writing an indicator that draws lines on a separate window, also should draw arrows to indicator buy/sell on the main price chart. So I write the following code, but it doesn't draw, any idea why please? double CrossUp[]; GoUp[i] = Low[i] - Range*0.75;DrawBuyArrow(Time[i],GoUp[i],Red...
Hello all:) I've been working on several systems and I want to implement a function that would require a rounding process but not approximation, so far I've been using normalize double but I can't reach my goal with this function. Any ideas? Example: Turning 5.19 into 5.1 (Not rounding to the...
[Deleted]
if i move the mouse on the chart, the index of the specific bar is shown like the picture, how can i get this index ? i means get the index of bar depends on the location of mouse.... i would like to express by comment() function. Thanks a lot your help ~
Good morning everyone, My EA works when I use it on the EURUSD but not for the indices such as the Dow Jones or the DAX30. Here is the code I use to send an order to buy: int buy = OrderSend(Symbol(), OP_BUY, lots, Ask, 4, Ask - (stop * Point), Ask + (profit * Point), "Ordre Achat Scalping", magic
Hello I've searched around and I've not found a script for MT4 specifically which closes all trades on all charts immediately at whatever price. Has anyone got one? This will help with testing EAs which work in strategies which work across multiple charts per terminal. Thanks
When i code this for USDTRY on an account that leverage 1000 MarketInfo ( Symbol (), MODE_MARGINREQUIRED ) the result on the screen is 100 . But when i open 1 Lot USDTRY on this account, i see margin value 20000 on the MT4. why there is different between code margin value and metatrader4 margin
In my strategy I have the following code: void OnTick() { // Stuff if(signal() && OrdersTotal() < 1) { OrderSend(Symbol(), OP_BUY, calculatedLotSize, Ask, calculatedSlippageRisk, Ask - stopLoss * Point...
Hello, I want to close order on next day certain time, I have a mql4 files which close on the same day certain time. Which part I must change? How to change to next day certain time. Thank you if(istradinghours(close_time_hour,24,0,0))...
Hello Programmers I am looking for the EA to do a very simple thing. Just open Buy + Sell after every new candlestick. That's all i need Thanks
Hi friends, I'm going to show the lasterror both on the terminal using the Print function and export it to the file. First I used GetLastError() on the Print function and then again use it on the procedure of exporting it on the file when I found out that the GetLastError return zero on my file and...
Hi, The big oldlumbering tortoise has poked his head out occasionally to check out the terrain for quite some time now and has finally acceptedthe inevitable! At this time of the year at least I can now claim that ‘molassesdoesn’t flow very fast in the cold weather and barely moves at all!’ So I’ve...
Hi there, I am trying to get indicator data from a chart other than the one that I have my EA/Indicator/Script active on. The problem is, if that chart is currently open, the data is accurate. However if that chart is closed, the data is more often than not inaccurate. I am testing this using the
Hello everybody, can anyone help me to know how to get the Actaul value of the currency, at the time of the economic calendar event? Thanks a lot in advance
Hi I tried many ways to calculate the stopLoss and takeProfit but could not get it write. say I want the stop loss to be 40 pips away and the take profit to be 20 pips away. the below code failed and many variation could not fix it either, I need to consider the forex pairs when jpy is present as...
Hello friends, I need that mi indicator close operations. I don´t where ir the error
Hello! I'm working on several projects and for some of those I require to be restricted without having to buy/rent a server to make kind of a every 6 hours check for license numbers or something like that. I came up with a fairly simple idea, and I just wanted to get opinions on that and other...
Hi, I want to know information for open orders by currency in all charts. I have running the same EA in several charts 1. EU chart (TF=M1) 2.GJ chart (TF=M15) 3.UJ chart (TF=H1) 4. EU chart (TF=H1) 5. GJ chart (TF=H4) I can use OrderSelect(cnt,SELECT_BY_POS); if(OrderSymbol() ==Symbol())...
[Deleted]
I tried all of the objects listed: https://docs.mql4.com/constants/objects and even tried a triangle with 2 points in the same spot but it doesn't work. The code looks like this: for(int z = 0; z < OrdersHistoryTotal(); z++) { OrderSelect(z, SELECT_BY_POS, MODE_HISTORY); if (OrderSymbol()...
[Deleted]
Hi, I have written an EA. But I don't know how to restrict the EA only work on a specific computer? I don't want people to pass my EA to other people without getting permission from me. Is there a way to achieve that goal? Thank you very much.

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.