MQL4 and MetaTrader 4 - page 1399

To post a new topic, please log in or register
I want to include a yellow dashed vertical line in my charts, it should be positioned30 bars prior to the current bar. Can somebody enlighting me on this? Many thanks Regards,
How to return the right AccountNmber if I use two accounts? When I use two accountsin one Mt? The AccountNumber is ever 16384.May be bug.
I want to send only one email when the new bar opens and then turn it of until thenext bar. Can anybody help me please? Thank you savr
On our website new updated client terminal MetaTrader 4 build 195 is released. What's new: Added visualization of testing. At testing the expert template <expert_name> .tpl is applied. If such templateis not found, tester.tpl is used.Improved drawing of balance at testing. Tester: the reopening...
Hi, I am new to MQL4, but desperately need a script to find the highest CLOSE and lowestCLOSE of a given period, let's say 30 bars? Would really appreciate your help. Many thanks in advance. Best regards, Colin
Is an expert advisor guaranteed to get control after every bid/ask change or cansituations occur where that does not happen. One possibility is that by the timeI attempt to execute at a given price, the rates have changed and by the time RefreshRates has executed the price is gone. These are market...
Hello everyone, Well, Unfortunately I am not a programmer but really like the MT4 platform. So,hopefully I can learn this stuff over as I continue to see / use the information.I would like to know how difficult it would be to build some very basic (I think)strategies in an effort to create an...
Hi, I am sorry, if it his has been asked many times before. I would like to know where can I download software or program to make EAs. I wouldlike to make some simple EAs using EA builder software. Thanks in advance. Mukesh
I downloaded 1m history file from alpari. When I try download it into a historywindow it works fine showing that some 697000 records were created. But after Ireopen the terminal, history file is cutoof to 32762 records. is there a way to download more records into history.
  Error Code #1 (7)
While running my EA, I occasionally get an error #1 when trying to make a buy orsell. After which, it fails to continue trading. What does this error mean, andhow do I go about fixing it? Thanks -Shane
The following code: extern datetime TradeTimeBegin = D'2006.08.12 08:28:00'; shows up in the property sheet dialog without the ability to specify seconds. Ineed to code an additional routine to have the user specify seconds via a secondinput which gets added to TradeTimeBegin. The datetime docs...
How to enter a user-defined input after initialization? For example, I need the datetime in the user input to represent CurTime() whichthen the user can edit. The app would then operate on the user-edited time. Is there a way to accomplish this? Thanks Bill P.S. I know I could just "force" the...
The following code: datetime SomeTime=D'08:28:00'; yields the following error: '08:28:00' - date literal string is incomplete Yet, the docs indicate you can specify a time constant as follows: D'12:30:27' //equal to D'[compilation date] 12:30:27' What's wrong here? Is it not possible to...
ND/Igorad, Please help to code the following simple medium term strategy. This strategy is from August '06, Technical Analysis of Stocks & Commodities magazine.The author is Jamie Saettele. He publishes a 3 1/2 year Tradestation back test that shows a $1,000 account growing to $71,300 in the 3 1/2...
Hi All, I'm trying to develop an EA however I can't seem to workout how to do oneof the most important parts... I'm trying to get the prices of another symbol,Using marketinfo I've been able to get the latest bar details, however there doesn'tseem to be a way to get historical prices? If anyone can...
Hi can anyone explain this part of the code in the "macd sample ea " ..... Important notice: to exclude insignificant changes of the MACD indicator (small'hillocks' on the chart) from our analysis, we introduce an additional measureof controlling the size of the plotted 'hillocks' as follows: the...
Is there a function in MQL that lets you see the open interest in a currency pair?
I just downloaded the "Fibo_Pivot_Lines_GMT" Indicator and i'm tryingto use it in an expert advisor. MY CODE: FIBO=iCustom(NULL,0,"Fibo_Pivot_Lines_GMT",MODE_?,0); Question: What "MODE" do i use in order to return FR3, FR2, FR1, PIVOT,FS1, FS2, FS3 (that are set by the indicator)? I'm using...
Does the chart periodicity have any effect on a running expert advisor?
Can someone tell me who created the "Daytrading" EA and where is therea thread that talks about it in depth!!! thnx
can anybody tell me how to create an arrow on a price chart when a particular conditionis met. for eg... if the ADX value isl less than +DI there should be an arrow on the pricechart at this particular price. I am tryin to use ObjectCreate("arrowi",OBJ_ARROW,0,timeofbar,0) but its of no use....
  Quick help (2)
//+------------------------------------------------------------------+ //| VlineTime. mq4 | //| | //| | //+------------------------------------------------------------------+ #property copyright "whodat" #property link "medat" #property indicator_chart_window int LonOpen=945;...
Hello, Would it be possible to get a better sample or at least more documentation on theDLL sample that you do provide? For instance: What the heck are the printf functions in the .cpp code doing? They don't seemto do anything... Can you debug custom DLL's while working with MT4? Maybe using...
Does any one know if it is possible to display two currency pair in the same chartwindow? Any help appreciated.
We are working on a new terminal for Smartphones. Here are the first pictures ofnew terminal.
Greetings, I am facing the following problem: I created an expert advisor and a custom indicator designed to work together. However,when I try to access the indicator's data from the expert by using the iCustom function, I am unable to get any values other than zero. Here's the headers for the...
I am new to MQL programming , I am in the process of creating an EA and I need tohave the following user defined variables i.e (Lots, StopLoss, TakeProfit3,TakeProfit1,TakeProfit2, TrailingStop) is it possible to have more variables than the fourstandard user-defined variables in MQL i.e (Lots,...
No, it doesn't exist yet, but I thought I would create it if no-one else has. The idea is this: any automatic system using 1M, 5M and 15M timeframes is ambushed by news events. If your system typically takes only 5 pips then its stoploss will be trampled by a 100 pip adverse move from payrolls! A...
In chart options, there is the ability to fix the scale as it currently is set orto fix the chart scale at 1 pip vertical for 1 bar horizontal. Certain tools, the ellipse, for example, work better on a chart with a fixed scale. The 1:1 setting is not very useful at higher time frames, as the...