MQL4 and MetaTrader 4 - page 1308

To post a new topic, please log in or register
  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
  Mq4 Broker With Max Pairs (12   1 2)
Guys, Anybody know which Mq4 Broker has the maximum amount of forex pairs ? I have Alpari and Fxdd, But I want more forex pairs e.g. aud/cad and aud/jpy etc. Oanda has loads, But its not mq4. Also, as a recommendation , I would go with Fxdd as opposed to interbankfx (I experienced an increase in...
Hello, where is define the sender name "Expert Advisor" of emails sends by EA? Is it possible to define an other sender name ? thanks
Greetings to all. I have a few questions regarding MetaTrader functionalities throughMQL4. I want to know if it is possible to programaticaly switch to a specific openedchart window, other than the currently showed one. Also I've been looking for a way to attach an Expert Advisor to a chart from...
I have an EA with parameter inputs and it's working fine. However, when I changedsome of the parameter inputs of the EA and run Strategy Tester again, StrategyTester keeps giving the same results. The report shows the same numbers, nothingchanged. Why? Changing the inputs should have affected the...
Hi there, my EA produces Error # 138 instead of sending an order (ca 10% of orders). Whatdoes this error mean? What can I do to solve this problem? Thanks
Hi ND Can you help here? The attached EA made one million from 1000 in a week, but it is working in demo only can you adjuste it to work in real. Thanks
Hi folks, As you can see I have created an Object "Close". I have used ObjectSetText()to output the ema price to the Main Chart Window (Win 0). This works except thatI actually have 3 ema's, w/objects, and the 3 text strings/price over lap eachother. I would really like to have the text/ema price...
We are starting upgrade of our servers today: IP addresses will be changed, websites and MT 4 Demo Server will be taken to the new hardware.The break in the МТ4 Server operation will not exceed 2 or 3 minutes. Users should not chnage any settings: The terminal will switch to the new server address...
If i use MarketInfo to place order, can i skip Refreshrate() ?
  Brokers discussion (74   1 2 3 4 5 ... 7 8)
Hi all, Anybody know of a data provider that gives an overall estimate of buyers vs sellers per symbol by MANY forex brokers? And, Anybody know of a place to scalp freely? - I think Dukascopy from Swiss is allowing this since they dont really have a desk, but I am not sure. All I do know is that...