Download MetaTrader 5

MQL4 and MetaTrader 4 - page 18

To post a new topic, please log in or register
Hello, I am backtesting to see whether my understanding in time is correct in MT4. So I started backtesting with Tick data suite an EA called robotron using different timezones, but with same default setting. The only difference is the trading time is adjusted to the timezones respectively. I tested...
everytime i start the mt4 terminal ,there will apear a process named "DJ音乐盒 " in task manager .it use many memory resouce. when close mt4 terminal  the process disappears too. when teminate the process ,the mt4  teminal disappear too. i reload the windows oprate system several times ,the problem...
Hello, EA code is to open Buy Limit order if Open Buy Orders > 0.And close any Limit order when Open Buy Orders = 0 It does but it closes it after seconds and repeats this How could we fix this? Thanks in advance! Code: int count_sellLIMITorder()  {   int countsellLIMIT=0;   for(int...
this is my first EA to do  i want to know is this indicator function that i use is right or wrong.so if wrong what is the right ? //MA bool MA() { double ma5= iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double ma10=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,0); double ma20=iMA(NULL,0,20,0,MODE_EMA,PRICE_CLOSE...
not sure why anyone know how to down load an ea and save it like in the old days,and intall it yourself ?
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
I have been learning the MQL4 and so far I have made some progress however, I have this challenge I encountered while trying to code the below: "Generally, the area above 80 indicates an overbought region, while the area below 20 is considered an oversold region. A sell signal is given when the...
Hi, Can anyone help with this issue? Cant install mt4. Ive tried with several different brokers but nothing. Thank you!
Hello folks, I'm going around the lotsize calculation and I'm having trouble coming up with a function that works fine for different denominated accounts and 2,3,4 and 5 digit symbols. The following lotsize calculation works, but will it work for accounts denominated in other currencies? I've read...
Hi, I am programming an indicator which must shown an arrow on every day the conditions are met for all available days there are in my chart. I've got it working when I met all the conditions with price. When I will met a condiont with pricetp, it doesn't work anymore and show every day an arrow....
Hello, this is the first indicator I have written and it hast some flaws. I would be happy I someone could help. What it should do: A: Draw 3 candle long line and and arrow on candle which's close crosses the small EMA (10) from below, if it is above the big EMA (200), B: Contrary draw 3 candle long...
Hi everyone! I want to read this text file : 237     DC      8.9     12.5217     DC      7.5     10.6316     DJ      5.9     8.4257     DN      10.0    12.7355     DU      4.6     6.6190     DC      8.6     12.1267     DJ      7.2     9.7222     FJ      8.5     11.8 Each column is separated by a tab...
  Forex data converters (93   1 2 3 4 5 ... 9 10)
MT4 script to convert csv to hst
//+------------------------------------------------------------------+//|                                                          new.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
Hi, nice work you are doing here. I have a small job (I guess).  If you can modify this Stochastic do give me alert when it leaves the 80 oversold and 20 overbought. Currently it's setup to give alert when it enters 80 oversold and 20 overbought. Thank you.
//+------------------------------------------------------------------+//|                                                 Pinbarsiraj2.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
What do I need to delete or reset to get the current build of metatrader to save all it current display settings so that when I close and open MT4 I still see all the toolbars and navigator windows setting I had when I closed MT4?
Is there any way to close all buy/sell trades at once? There is a "Multiple Close By" feature in N2Trader which can close all buys/sells alternatively until all trades be closed or just one trade (which there are no pair trade for closing it) remains: At first, i thought N2Trader uses the "Close...
Hi everyone,  I found a great indicator for binary options 60 seconds. Unfortunately the indicator only paints when I attach it to the chart, then  I can wait for days and no signal. I either switch the timeframe to 5 min and back to 1 min, or I remove the indicator from the chart and add it again...
Hello everyone, I think that I have looked at this before. void ShutDown_Order() {   if(OrderSelect(0,SELECT_BY_POS)==true)      bool Order_Closing=OrderClose(OrderTicket(),OrderLots(),Bid,0,clrRed);   bool TradeClose = true;   bool TradeOpen = false;   Alert("Closing Order failed "...
Hi, I am currently programming an indicator multi currencies and mmulti timeframes by using mql4 language and I am not able to retrieve past data from broker server. For example I am trying to retrieve 200 last past prices on EURUSD H4 via CopyRates function  while the  indicator is attached...
I am trying to develop forex arbitrage engine between 2 or more platforms. So far without successes. I do not know if my code is wrong or computer is not fast enough to handle the arbitrage in real time. Here is my 2 version of the code (timer is set to EventSetMillisecondTimer(1);
Hi guys, I have an annoying error that causes my EA to place multiple (sometimes as many as 100) trades and then close them straight away because the fast moving average that I use as a close signal has not yet caught up with the price and fallen below the buy signal. So essentially both conditions...
Hello there, I've just about completed my first MQ4 OOP application that is triggered by an EA and comprises of various different .mqh files, each containing individual class definitions. So far, I'm just running it locally on a demo account. I'm unsure as to how the MetaEditor handles compilation?...
MT4 fails to sync executed pending Orders during fast moving market and recognizes it a pending order that cant be deleted. It occurs occasionally during fast moving market. Sometimes I notice an open pending order that could't be deleted by EA and the market have passed that price. If i try...
Hi all, could you indicate the mistakes in this indicator monitor? I'm trying to write this indicator to monitor the global variables in my expert, but I don't find the errors... Thank you! #property indicator_chart_windowextern int mCorn = 0, mTextSize = 10;extern color mTextCol = White ;extern int...
Comments that do not relate to the "HistoryOrderSelect not working for executed pending order", have been moved into this topic.
Hello, Need someone to build a romob/auto trader which will: - Choose a pair  - Choose a TimeFrame - Choose Buy or Sell - Choose an RSI value when to enter (with option to trigger on first touch or when crossed once and then crossed back) - Choose an RSI value when to exit (with option to trigger...
Dear All: In MetaTrader 4 platform, in the terminal tab "expert", all the messages are also automatically saved in expert/logs/20110825.log (suppose today is 2011-08-25). But recently, I found that is not the case any more: the new messages which show up in termianl tab "expert" are not appended to...