Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1250

To post a new topic, please log in or register
MetaEditor Help contents are the same as those of the MQL4.Community Documentation? To get references about MQL4, there is no need to download megabytes from internet.Everything you need is in your PC already. You just have to open the "Help"tab in the "Toolbox" window of MetaEditor....
I've been trying to code an expert that buys when the faster MA crosses above theslower MA and sells when it crosses below. The expert enters trades correctly butit won't close a trade and start a new one when the MA's cross. Can someone tellme what I'm doing wrong? int start() { double MA5C,MA20C...
Hi somebody out there pls help me to evaluate the following EA , as of whyit perform good result on backtest for model :control point and not model :everytickand also the EA on demo acct did not tele EA with backtest on control point   attachis the...
I have written a few custom indicators in MetaEditor and cannot seem to find a wayto make the Y-Axis auto scale... I keep having to go back into the program to changethe scale manualy as the indicator output value changes... below is my code...what would I change to make this indicator auto-scale...
Hi, I'm not able to find a solution for this, so I'm asking for help. I'm using Heikin-Ashicandles for my charts and I want to create a moving average line for the last 10bars in the same way we can use iMA. So my HA indicator uses this call: iCustom( NULL, 0, "Heiken Ashi v2",0, 0 ) how can find...
Hi , Do our brokers know which ea's or tactics we use? I think that they do, and they even know our names, how? 1) I have a friend who owns a forex brokerage - and he told me outfront that thebrokerage is following the best traders , and when the best traders open a positionthey(the brokerage)...
Hello moderators and friends, I posted a question under this heading, but it might have been overlooked, (sincethe original author had their part answered) so I'm reposting it as a new subject. How can I write an EA to open multiple orders and close them independantly. Ex:go in on a buy, then a...
  Help Need (1)
Hello everyone I'm working in this Adx Arrow Alert, the thing is it works but it only work 1 time,let me expleand, when the arrow (Red or Green) shows-up it send me the alert ashas to be, but when the next arrow apper it don't do nothing, can someone can helpme whit this.. i'am new in this things...
After some backtesting, I almost always get a HUGE /tester/logs folder. That sucksso much. There one HUGE log file. After I delete it I have to defragement my hddevery once in a while just because of that one BT logfile. :( Anybody else experiencingthis? How can I make MT not logging all these...
I'd like to know exactly what means "Last part of the comment may be changedby server." I need to know how much of this comment is modifyable by the server,cause I want to use the comments for the EA to know when to close an order: forexample: "1.2756 M1 9 26" meaning that the order has taken by the...
  Question.... (1)
how i can see the price right now??? and where i can see a StopLoss example???
Is there any way to pass by reference?
Is it possible for me to get the open, high, low, and close, for a specific tradingtimeframe of my choosing? For instance, if I want to know what the OHLC is, for the 6 trading hours between4am and 9am, is there a code that can do this? I was thinking that I could load up the last day of 1hour...
  Date Question (3)
I've done a search through the site and the documentation, but can't find any informationon how to concatenate date parts. What I'd like to do is to create a dynamic magicnumber based on today's date, formated as 20060712. The closest I've come is usingthe StrToTime function: string...
I'm a newbee: does anyone have an example of using existing indicators, like theAlligator or Fractals?  Suppose I wanted to trade on logic like "the high and loware outside the range of the alligator and this bar represents an up fractal"? I guess I'dt copy the indicators in as functions, modify...
Hi all, Do our brokers know which ea's or tactics we use? I think that they do, and they even know our names, how? 1) I have a friend who owns a forex brokerage - and he told me outfront that the brokerage is following the best traders , and when the best traders open a position they(the brokerage)...
To show the activity of the members of our Community, we added total rating forparticipants. The rating can be seen both in the forum topics and in the user's profile. Ratingand status of moderator are shown just below the avatar. The rating is calculated according to the formula below:...
  iTime problem (1)
Hi all. I've having a problem with iTime returning 0 most of the time. Sometimes it works,but usually it will simply return 0. The help page says it will return 0 if the local history is empty (not loaded).My History Center for the pair I'm using the strategy tester for says I have historyin all...
My MT just write the HST(history file) to hard disk while the MT quit. But sometime the PC was hanged and the data were lost. So can MT write the HST on-demand? or how can code the MQL to write the HST fileto hard disk? Thanks very much
In FOREX, if it properly does not exist sessions with beginning and ending time,how the opening, maximum, minimum and closes prices are determined?, Some indicators/Oscilator are structured in function of sessions/periods (for example.MACD is 26-12-9). If the time Chart context is one hour, it...
Hi, I entered in the start function the following code: if (Hour()==10 && Minute()== 0) Print(iClose(NULL,PERIOD_H1,0)); When I start the expert for the date 2006.06.01 - 2006.06.03 I get 16 differentvalues for the 2006.06.1 and no data for the 2nd and 3rd of June. As far as I understand, the...
Is MaCurrent really current to the second? or to the beginning of the bar? For instance: MaCurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0); MaPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1); If I were to do //---- sell conditions if(MaCurrent<MaPrevious) 1) Would it...
Can I use iHighest in custom indikator for higher and lower period without previouslyopened chart, does the data indicator is colecting is from history folder or it is updated inthis case from incoming data. Sample for using this code in indicator: int start() {//æ= Period() = 240 ( H4 ) =æ//...
I wanted to know how to change the size of the arrows...for example, here is mycode to draw a BUY arrow on the chart.. SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,108); SetIndexBuffer(0,ExtMapBuffer1); SetIndexLabel(0,"BUY"); SetIndexEmptyValue(0,0.0); See the GIF attached..(small red...
Ellipse disappears when the center of the ellipse is "offscreen" To Reproduce the problem: 1. Draw an Ellipse 2. Rotate the ellipse so that the Price values are the same, but the time valuesare different (left and right side of ellipse are defined by TIME) 3. Resize the chart so that the...
  Server Time (2)
Hi, I'm getting this error Error!!! Server_Local_TimeDiff Do not match! If Server is active. You need to change Server_Local_TimeDiff! Or you may have to change the Friday_Close_Hour. Do I need to change one of these lines? extern int Server_Local_TimeDiff = 10; extern string...
How can I open a box, ask a value, and get this value in a variable ? thanks !
I've poked around but I cannot seem to find any place to download history data fortesting purposes. Does anybody know where I could get such a file? Perhaps a yearof data? GBPUSD, EURUSD, and USDJPY data would be especially good. Thank you inadvance! Lance...
Do any of you have any routines for checking to ensure the integrity of data? Forexample, I noticed last night a hole in my daily bar data from FXDD on June 22nd(incomplete data for that day) which completely threw off the pivot levels forthe next day. Fixing that made the levels work perfectly. I...
We are running an external program that generates a trigger number for trade execution.We want to import that trigger number into an Expert Adviser. How can we go aboutdoing this? Is anybody else trying to do something similar? Thanks