Download MetaTrader 5

MQL4 and MetaTrader 4 - page 225

To post a new topic, please log in or register
Hello house, my name Lucky (I hope I get Lucky with my humble request I have been  trying out a lot of things in forex. At the moment I am experimenting with CCI and I would like to build an EA (based on CCI using the iCustom function. I would really appreciate it if someone could help me out....
Hello MQL community,   I am trying to adjust the script PeriodConverter that is included in MT4 samples, to use multiple timeframe periods in one conversion script. The modified script works partially, but the modified part isn't updating on chart as original does. With this script can be generated...
Has anybody idea how to loss no more than 30% on global forex markets and earn more than 50% during one year? I would like to loss no more than 2% of the capital on single entrance with 15 entrances on whole year. Any MQL4 experience?
New article Plotting trend lines based on fractals using MQL4 and MQL5 has been published on mql5.com: The article describes the automation of trend lines plotting based on the Fractals indicator using MQL4 and MQL5. The article structure provides a comparative view of the solution for two languages...
Hi, I would like some help, or some comments about the strategy tester in MT4. The thing is that, I tested an strategy which resulted in "Total net profit = -345" and the "Modelling quiality" was around 41%, this was for the USD/CHF. So, I went to the History Center in MT4, and I downloaded the...
double Var1 = iMA(NULL, PERIOD_M15, 5, 0, MODE_LWMA, PRICE_HIGH, 0); double Var2 = iMA(NULL, PERIOD_M15, 5, 0, MODE_LWMA, PRICE_LOW, 0); Hi, from above code i want to execute Buy on this condition: The current open candle are same or just 1pips higher from  current Var2 iMA, and difference between...
TickStory suggested: "As mentioned, you could try asking thisquestion on the MT4 forums to see if anyone can assist.". So let me ask the questions here. You can see it's about 3 parameters in "Metatrader Info" settings in "Export to MT4" when you use TickStory.    GTC Pending: Difference between...
Hello, I am in some need of dire technical help. I have been trying to turn a few iCustom Indicators, into Signals that will notify when a condition exists an alert and visual alert will appear on the MT4 platform. Now, I have done this in the past with non-iCustom indicators without any issues with...
... is sadly misbehaving when using Google-Chrome (Linux). You move the mouse over the Icon (in case your profile has one), the menu pops up. As soon as you move the mouse to select one of the options it shows, the popup instantly disappears. Only with luck you can *grab* the option the one or other...
  Heeeeelp!!! (11   1 2)
Hi world, I need a favor, I need to put an alert for email. please help me, I know nothing about programming code:   #property indicator_chart_window #property indicator_buffers 6 #property indicator_color1 Red #property indicator_color2 MediumBlue #property indicator_color3 Red #property...
Hi, I'm looking for a simple martingale EA that would reverse the BUY and SELL signals using the martingale method and when it hits for example BUY take profit it would start with BUY signal. For examle it would BUY 0.1 lots, stop lose, SELL 0.2 lots, SL, BUY 0.4 lots, SL, SELL 0.8 lots, TP and then...
Hi, I'm trying to automate analizing charts and to develop some tools for that purpose. But I can't find a time (lets say an Hour) of High/Low of previous day on the H1 chart. I used iHigh and iLow functions to find extremes on a D1 chart, but I have no idea how to find a particular time of them. :(...
Hi, Guys! I need your help. I am trying to calculate how much did earn one currency pair for example GBPUSD whilst trading multiple pairs simultaneously in ONE account And OrderProfit() gives me incorrect data 2015.05.04 08:11:05.454 2012.06.18 20:00  Bounce_Back_MA_GBPUSD_SELL GBPAUD,H1: open #2...
Hi All, please, i can't find the articles where multitimeframe graphical objects are explained, with code examples, with little squares changing color with signals. Could you give the url of this articles published in mql4.com.   Regards. 
Respected sir, i am new baby in mql4, I need to design expert adviser  (ex4 file ) in  macd with buy and sell arrow , when every macd goes buy mode the up arrow must be displayed (in live and in historical data also ), when ever the macd goes sell, the down arrow have to be displayed (in live  and...
OrderCommission() is negative or 0, but never +positive value right?         double True_Profit = OrderProfit()+OrderSwap()+OrderCommission();      current_balance += True_Profit;     this is correct?  
Hi to all community, i'm a new member of big Forex world, in the last month i've been searching through the network about some strategy and i've learned that there a lot of them and i don't know which one to apply on demo account. I'd like to know which is the simpliest but effective strategy which...
Hi, I need to read The base currency. So I would like to read only first 3 chars of current Symbol() and paste it to the other string parameter in MQL4 code. For example if current Symbol() is EURUSD I need to read only EUR value (first 3 characters from left). Has anybody any idea how to resolve...
Dear 'Forumites', I've been backtesting this indicator called Symphonie_Extreme_Cycle_Indikator2 or Cycle identifier. And I noticed a very unique form of diversion that happens very rarely. I wonder if someone out there could help to modify the indicator so that it draws trendlines at these...
Is there such a tool to move my stop to BE at a given price ? I would ultimately like a line i can set like the take profit line, if price hits it stop is moved to entry price .......... can anyone help me out?   cheers onis  
  Demo Symbols (2)
I downloaded MQL4 demo account.  The symbol list is very limited and doesn't include the EUR/USD.  There's a tab for the EUR/USD below but when I click on it it only says "Waiting for update". Please advise how to get the EUR/USD for the demo account. 
Hello @all,   im looking to use a renko chart and want to run an expert on this chart. as far i understood, renko is running on an offline chart, this chart will be updated with every tick by the periode converter function with a normal 1M chart..    so now i want to use an EA on this chart, my...
Hi guys, I´ve programmed a very simple indicator. It should return the value a, which is previously defined. Here it is: //+------------------------------------------------------------------+//| EaTestEa.mq4 |//| Copyright...
hi all, Does anyone know of a way to program an EA to calculate the maximum or current drawdown in your trading account balance or equity? ie what your current ACCOUNT_EQUITY is relative to your 'account peak equity'. if there is no built in way to do this, could you trawl your order history pool...
Hi all, as you know, renko chart depended on price changes and is independent from Time. The Renkocharts are constructed as follows: the close price of the current period compared with minimal and maximal prices of the previous. In this thread you give the renko chart ea. Today i want to make some...
I run my developed EA from laptop. problom is when internet disconnected the EA placing order again and all trailing stops collapsed. How to solve this issues? Is there any method to avoid re orders when EA restatrs?
Very good, as I can modify this code so that only data download me a week ago? //+------------------------------------------------------------------+//|                                               output_history.mq4...
Hi forum, I have no idea why this script works sometimes and sometimes it doesn't. If I use it on NZDUSD H1 it looks fine but if I use it on EURUSD there are a lot of lines missing. Also when I change timeframes there a many lines missing. Additionally JPY-pairs cause some trouble. I have three...
Is it normal when compiling an EA while its on a live chart that all the arrows and dotted lines showing closed orders all delete? thx.
Does anyone know where I can get a bar counting script that will put a label under each bar of the session with the # of that bar? starting at the open with 1 and going to the end of the session? Just a very simple 1,2,3,4 ... etc till end of the day labeling. I've tried searching but can't find...