MQL4 and MetaTrader 4 - page 1097

Hi Programmers! Can we send signs from an EA of one MetaTrader to the another EA of another MetaTrader platform? The two MetaTrader run on the same computer. Relative
Hi, I am trying to run optimization on my laptop with 2.4 Ghz and 2 GB RAM I have 8 parameters to test and running against 8 months history data After 6 hours it progresses 43 / 10 496 Is this expected to be this slow? Above speed shows I have to wait for 65 days !!!! If i run this in a high speed
hi forum! i use 6 moving averages and i want to know if the current price is over or under them. therefore i have to know the highest value of the mas and the lowest. i thought there is something like: double maximum = highest(ma1,ma2,ma3,ma4,ma5,ma6); double minimum = lowest(ma1,m2....); but that...
[Deleted]
I am working on coding a breakout strategy on an hourly chart. I want to check on the new opening candle if there is a 3 pip break of prior close. I do i go about doing this on an hourly chart. I was thinking about using MarketInfo(Symbol(),Minute,High[i]) or something like that but how do I know if
[Deleted]
hello i'm quite new with metatrader. i moved from ninjatrader and i miss a very nice feature: drag & drop support of an existing stop loss or not filled buy/sell order. for those your do not know ninjatrader: a line with a (X) symbol including size of contract/lot will be printed. then you can...
Здравствуйте. Раньше я работал с MT5, сейчас возникла необходимость работы с MT4. Мне нужно протестировать советника на временном периоде 2000 - 2005 гг. У меня ничего не выходит, вот почему: Сначала я пытался просто запустить тестирование, была ошибка " TestGenerator : no history data ". Потом я
Hi, I have below positions Long-1 lot - @1.34 Short-2 lot - @1.35 Long-5 lot - @1.33 Can someone please tell me the formula to calcuate the break even price when LONG profits (bcz total LONG lot size is bigger that SHORT so at some point it breaks even) thanks in advance
[Deleted]
I'm trying to write a custom indicator to send me an email when a certain pattern paints on my charts. I'm calling sendMail() from start(), but it isn't firing every time. I had the indicator running on 15 charts with 5 other indicators so I thought that might be the problem. I removed all...
[Deleted]
Hi there, i want to ask simple question, i've been searching through this error for quite a long time my code is if(iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_UPPER,0)<=Close[0]) // hit upper bollinger or pass         {            ticket=OrderSend(Symbol(),OP_SELL,0.1,Bid,3,0,0,"Open Sell");...
I will not speculate on my own opinion. The main question is this: where in life did this sacred platitude come from? A simple analysis of the reasons for this harsh truth can lead to unexpected conclusions
on eurusd. #property copyright "Copyright © 2009, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #define MAGICMA 20050610 double cutlevel= 10 , totalprofit= 0 , volume= 0.1 ; int CalculateCurrentOrders( string symbol) { int buys= 0 ,sells= 0 ; //---- for ( int i= 0
I have a couple of small commercial EAs that will add or overrides some settings in another EA on a chart. Some of them such as a 2 stage TSL that I have can select numerous different pairs to act upon when attached to just one chart. I want to make some EAs that utilize this technique, but I don't...
[Deleted]
  Tickdata  (1)
Hi, I have a file .txt with tickdata of DAX30, the datas are drawing like this. I can´t it import (in data history center(F2)) to MT4. If somebody can help me to make with this tickdata a 1 min chart that would be fine. thank you 01 / 03 / 2011 , 09 : 02 : 57 , 6973.39 01 / 03 / 2011 , 09 : 02 : 58
[Deleted]
Hi there, i am fairly new to writing EAs, so i wanted to start of small and let the EA grow over the time. At the moment i am stuck with exporting values from the ZigZag2_R_ indicator to my EA. As stated on the page of the indicator ( https://www.mql5.com/en/code/7762 ) you can read out the peaks...
Hi, I'm new to mql4 and I need some help: is possible convert pixel coordinates to time/price coordinates? I'll do code for get mouse pointer coordinate at left mouse click, now, I'll want use that pixel coordinates to "select" a bar on my chart, but bars are only selected by time or index and I...
Say you have 10 buffers: buf1[i] =icustom(0,0,"someIndicator",10,0,i); buf2[i] =icustom(0,0,"someIndicator",20,0,i); buf3[i] =icustom(0,0,"someIndicator",30,0,i); ... buf10[i] =icustom(0,0,"someIndicator",100,0,i); So it's the same custom indicator, but only its window length is changing from 10...
I need to update mt4 with additional fonts, because i run an advisor that outputs an error written with characters that i don't understant. Like this Ñîâåòíèê áóäåò çàïóùåí ñëåäóþùèì
  Pesky Error 138  (4)
I am busy back testing an EA and keep on getting an "error 138 - Requote" although I have never before had this problem in back testing or in live usage since I always build in a healthy slippage in all my OrderSend() commands. I have changed the Price from the one in the OrderSend command line as...
[Deleted]
can some one add tgts & sl basis ATR (x) of 5min/15min/H1/H4/D1 (y) in the bollinger band stop logic. i.e. once the bollinger band stop reverses direction the tgt and sl is calculated on the close of the candle. there should be an option of width of the lines getting generated along with the type i...
  Need help!  (5)
////this is only use in instaforex, because its spreed is 0/////// extern int takeprofit= 0 ; extern int stoplost= 5 ; extern double initiallot= 1.0 ; extern int magic.number= 19802 ; extern int trailpoint= 10 ; extern int averagelot= 15 ; double buylot; double totallost; int barcount; int init()
Hello, What would be the command for this : If EUR/USD 4-8H Candle close = LOW... and if GBP/USD 4-8H Candle close = LOW then sell EUR/USD Thats mean if the EUR/USD Last candle was LOW and the same with GBP/USD --> sell EUR/USD .. *4-8H = this mean the candle from 4 till 8 AM (one candle) Thanks
New article Custom Graphical Controls. Part 2. Control Library is published at mql5.com: The second article of the "Custom Graphical Controls" series introduces a control library for handling the main problems arising in interaction between a program (Expert Advisor, script, indicator) and a user....
[Deleted]
Hi I have been trying to figure if this can be done. For example if the current candle close[0] had and RSI value of say 39.000, is it possible to work out how much the RSI value would be if the close[0] fell by 10pips? I have tried experimenting with little success: double r =...
[Deleted]
All i want to do is change on terminal mt4 to my local time ( gmt+7) is there any script or tips, trik to accommodate it. Because it much easier working with local time. the time on terminal is connected and synchronize with broker server Thanks All
[Deleted]
I am currently using the Oanda and an expert advisor.(EA) To test the EA I need the historical trading information. The EA tester has only from November 2011. I need to have at least one year of historical data to test the EA. Can anyone help by showing me how I can obtain that?
[Deleted]
Dear members, I used ADX(14) on USDCAD , daily in MT4 for Forex.com and Alpari UK. Their time difference is only 1 hour. I noticed, by coincidence, the daily ADX numbers differ so significantly between them by more than 20%. If you use ADX(14) just like me, who would you choose? Thank you
Hi, Can you help solve this issue: Suppose that exist a signal to close ALL open market orders in terminal. EA must close all orders in following order: first close order with biggest LOSS, last order with biggest PROFIT? Thank you.
[Deleted]
Hi Pros, Suppose in my EA, I set a global variable's initial value as 1, and after some condition happens it changes to 2. Now I shut down my computer and then restart my computer and start the mt4 platform. Would the global variable be 1 or 2? Thanks a lot!
[Deleted]
  lookback limits in init?  (17   1 2)
Dear friends, first time here, due to a "strange case". Simple testing EA: //+------------------------------------------------------------------+//| expert initialization function                                   |//+------------------------------------------------------------------+int...
[Deleted]
Good day to everyone! I'm looking URGENTLY for someone who can write me a simple EA with 6-digit number. Terms: 1) Conducting the buy-sell mode automatically 2) Moving Average (5,10) 3) No need SL, TP and others That's all. The problem that I'm experiencing now is I have a EA( written by myself)