Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1228

To post a new topic, please log in or register
I have this function in start...IT DOES NOT FIRE !!! - Its on a EA, with all common EA properties clicked on ! - Tick action from chart occured during this time frame. Why does it not send an email. The OK Variable is there to make sure it ony sends an email once, and not on everytick ! void...
Hi,,, how r u every body?? i want a code for encoding indicator?? and making expired date for use it?? thank u,, Kind Regards,, GMO,,
  MASS index (7)
Hello ! Where I can get this indicator ? Mass Index. Thanks in advance. PipeTrader Trade to live and Live to trade!
Hi all traders! Hope everyone is ok. I have been looking and researching the Forex Market now for about 5 years and i am still learning. Throughout this time i have been developing systems and ways of gaining tose lovely pips. So over the matter of time i have found three indicators; 1. EMA @ 75 2...
Why does the following INDICATOR CODE draw only a horizontal line on the main CHARTwindow. If I change the price registers CODE (O,H,L,C)for example e.g. From Low[7] to Low[pos+7] it draws a graph, However it shifts the indicator forwardapprox 16 bars Regards Peterg int start() { int...
  Forum help (1)
Frustration does not begin to explain a beginner position I gather this Forum Is for ("Experts" to impress other "Experts").There's no ego trip in helping a beginner. I have asked 2 questions (1) How to plot beyond the current bar. The reply is 6 words or so. No explanationsno guidance, just use...
Is there a simple EA available that would allow me to enter all my orders, any currencypair (long & short) and also allow me to set either/or a profit target, trailstart and trail amount? It would also be good if it had an alert that could be generated after the profithad been taken. Thanks fxgrm
I am trying to test multiple pairs and once a signal occurred on one pair, an orderis sent. I use MA as entry signal, so instead of writing iMA (which I need 5 MAs for onepair) on each individual pair, I use this code to switch between pairs. string currency;int ss; if(ss == 0) currency =...
When I run the following code within an EA on the MT4 Strategy Tester, it worksOK. But, if I use Visual Mode, Error 4059 on ordersend attempts. 4059 is "Functionis not allowed in testing mode". Why does this code run OK in normal Strategy Test, but not in visual mode. Buy code:...
With 3 Bar TrailingStop, I need ideas to code this: 1. Buy Trailing Stop - Set 1 pip below lowest bar in previous 3 bars excludingInner Bars. Inner Bar is when one bar's high and low are within previous bar highand low. If this happens, exclude this bar and go back 1 more bar. Wackena
We resume the development of MetaTrader 4 Mobile Smartphone Edition (SE). Let us remind you that MetaTrader 4 Mobile - a mobile terminal for PDA Pocket PC - is being used at the moment in MetaTrader 4 Platform. For it to operate, a PDA+mobile phone with GPRS or a communicator are usuallyutilized....
I want to have a variable that I can tell the EA to only put 1 Pending or 10 Pendingsin at 1 time. I am talking about positions NOT Lots. Right now it puts 1 pendingin But if the Current Price is at the High or Low it puts about 8 positions in.I want ONLY the number I program to be put in. This EA...
Please help to modify this Indicator . I'm blind about programing, so please helpme out . I need to have alert whenever the line of RSI hit 90 or hit 10 from fix scale 0- 100 or it could be an option. The point just having alert without anycombinewith other indicator. I try to delete the rest of...
Hi, I wondered if those of you out there regularly programming EA's would mind sharingwhat your opinion is on the above topic heading? Is C or C++ more useful to you to know before starting to code mql? Benefits and disadvantages of both? If you were going to start coding mql and did not know C...
Hello could someone please help me with this. I can't understand. I'm developing a expert working with MA but I only want to open a trade if theADX is above a certain level. I tried several ways to put that condition for entering trades and all of themsomehow make that the expert never opens any...
I have purchased tick data and am using your csv2fxt conversion script, 2 issueshave arisen. 1. Once I converted the 1st tick data file I placed the resultant 1 minute hstfile into the history directory to view the visual results of the conversion -Each 1 minute tick was a flat line whereby O H L C...
On the 19th of March 2007, MetaQuotes Software Corp. opened its fourth office, in Shanghai. After the office inSingapore, the Shanghai office will be the second company’s office in the Asian and Pacific region. The localstaff hired to work in the office will perform the following duties: make...
Hi, When You go F7, you see the input box for the EA showing all the extern variables. How does one place in those input box EA extern variables a text message to remindme what some of the inputs are for variables/ Like extern int Period = 1; extern string Test 1 = daily, 2 = weekly, 3 =...
  Pivot Points (like a Dots) (25   1 2 3)
Hello. I have used by some time the VTtrader due to the facility that it has for people with little knowledge on programming, as it is my case. But because that platform is much very slow, at the moment I am migrating my chart configurations towards the MT4, that of step is saying, seems to me an...
  RSI R2, 84% accurate (17   1 2)
Hi, All, I quite new to this forum and would like assitance in programing this concept taken from http://www.tradingmarkets.com/.site/stocks/commentary/editorial/The-Improved-R2-Strategy.cfm Apparently its 84% accurate when applied to stocks but Iam sure this concept is universal Please reply to...
Hello, I thinks my problem must already many before me have had. I rent at present a Windows V-servers with approx. 320 MB main memories, but itpasses that ever more frequently the program MetaTrader 4 brings the server forfalls. I do not point as I it to change can, but I point that it because...
  ASCII DATA (7)
Hi MQL4 and fellow traders, I am about to purchase Tick data that I wish to import into MT4 for back testing. The supplier I wish to purchase from is offering the data in ASCII data formatwhich they feel is compatable with MT4. I have ensured that the timestamp of the data will be the same as...
  Placing Stops (1)
Hi, Probably a stupid question,but............ Could somebody tell me how to define Stoploss as 2/3 of the 7 day average dailyrange. Thanks, Ed.
It really exist ?
Metaquotes, Take a look at an output of my log file during today's NFP. All you can see is tradecontext is busy. Can you program something that does nothang orders up this way? A few of my buy stop orders did not get triggered becauseby the time the orders were placed the price had too close to the...
  Magic Number (6)
HI ppl, Can someone help me please put a magic number in my EA.. is because for only one chart the EA works well .. but when i try to use more than one chart for the ea the ea don't work well. Can someone tell me what is the settings i have to put in the EA Thanks Fast_cris
Is there a way to find server's timezone in MQL? So far I couldn't ifnd a way todo this. I know that if I "tell" my program what my own timezone is (i.e. by meansof an input parameter, e.g. extern int MyTimeZone=8 for GMT +8) then I can comparelocal time to server time and calculate server's time...
The screenshots function is documentated the following way bool WindowScreenShot(string filename, int size_x, int size_y, int start_bar=-1, int chart_scale=-1, intchart_mode=-1)but here I need to use the current scale of screenshoted window. So the questionhow to get it in the program this one of...
Hi, Dooes anyone know of any reason that my stoploss and takeprofit are no longer working?I have been testing this a system for weeks and all of a sudden it stopped trading and the log indicates error 130 which I researched as improper stoplossand takeprofit settings. If I remove the stoploss and...
May be this question is stupid but I've found no answer in all helps. The questionis because there is a menu point Add breakpoint. But I've not understand how canI use these breakpoints. If I've just add a breakpoint in MetaEditor and then runthe script from MetaTrader the breakpoint makes no effect...