Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1013

To post a new topic, please log in or register
Hello freinds, I write an Expert which is running in EURCAD chart, and it uses the bid price of USDJPY? I wrote the folowing lines: RefreshRates(); double B_UJ = MarketInfo("USDJPY",MODE_BID); And It still compute the veriable B_UJ as 0.0, WHY? Can somebody help me? Thankes
Hello I have had an idea of setting a yearly percentage increase on my account. one where the loses are spread accross the year and turned into a TP example account open $300 Percentage increase 300% Target $900 Tick Value GBPJPY 1.022 Yearly pip target 881 monthly 73 weekly 17 Daily 4 If the first...
I like this expert advisors but need to know what is the best way to use. Should I have any indicators along with this? Should I change some settings within the file to make it run better. Any help would be great.
Is there anyway to get better performance out of MQL4?  Because of this languagebeing single thread, it sometimes misses trades that are trying to be executedat the same time in my expert.  How do you do it?
I am working on preserving my trades through catastrophic platform event. Each trade event is documented in a csv file. The intent is that if the EA is restarted for any reason, it can load the order details at initialization to be able to operate on existing trades What I need to know is the magic...
hi I have an EA and I'd like to make it works with a cycle. I've got 5 variables double ma1 = iMA(NULL, 0, 1, 0, MODE_EMA, PRICE_CLOSE, Current + 0); double sar = iSAR(NULL, 0, 0.02, 0.2, Current + 0); double Macd=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,Current + 0); double...
Hi there, Does anyone know how can I export the trades history (account history) to ms excel? It would be very helpful since will allow me to separate the trades by currency pair and better analise the data. Thank you very much Regards Paulo
Bars in test 125169 Ticks modelled 21792507 Modelling quality 89.93% Mismatched charts errors 0 Initial deposit 500000.00 Total net profit 89041.04 Gross profit 274756.43 Gross loss -185715.39 Profit factor 1.48 Expected payoff 215.07 Absolute drawdown 8249.14...
Hi all, trying to figure out how to convert pip to dollar amount if I open a 0.1 lot size trade for example? Thanks.
Hello all, When you test an EA with Tester, after it finish, you can open the graphic of the test (not the balance acount graphic but the other with the symbol you have tested and open/close position). So normaly you can see on this graphic all indicators used in your EA but it seems that indicator...
Hi, Guys, I just got into coding 2 days ago and now adapted an easy ea to my own strategy but it dosn't want to do what I'm telling it to. So here is what it should do: Entry 1.It shall only open one order per bar. 1. Go short if the Extrapolator falls the next bar and the Price gets above the...
Hi Forum, I need to know how much up and down movement in a given period happend. in my case its important to know if the price went up or down mor or less straight or if the price was moving up and down and up and so on... Im sure the muste be a API indikator but i dont know all these names of...
I have just begun to get to grips with learning the mql4 language from the downloaded tutorial when mql5 rears its head. Not much point in continuing with 4. When and where will the mql5 tutorial be available? Thanks
If I set PT to be 20 pips, why does the platform PT at much less than that (eg: 8 pips in some cases)? No SL was used. Major pair traded (eurusd) so no issues with spread (spread fixed to 2 pips). Also roll over allowed, so no time stops or anything like that.
i have custom indicator gives me alert when signal is happen. i dont have source code for this indicator i want to send mail when the alert is coming is any way to write code in mql to check the alerts and read it then send the information by email ?? Thank you
Hi All, When running in demo mode, or with the tester sometimes the log files get pretty big. Usually what I am interested in is just at the last part of the log file. To delete the log file so it starts new I need to close the terminal and reopen. I'm wondering if anyone has a better solution...
Please help, anyone... I've successfully coded 1 EA last week after spending 3 days flat trying to learn MQL4. I don't have much programming background so it was not easy. Anyway, I based my 2nd EA on the 1st one, with only changing the Trading Criteria in terms of indicators used, and when I try to...
Hi everyone. I know there are some of you that need help creating your trading idea into an EA or indicator. I will be offering my services for a promotional rate of just $25 for your EA! Just e-mail me at eacoder@hotmail.com with your 1) entry rules, 2) exit rules, and any other information you'd...
Hi All, Anyone can provide the example code for : 1) calculate the total Profit as Points Not currency? Thanks in advance:)
Hi Guys, I am appreciate if anyone can give me a hand. I have an indicator here and I would like on the screen to diskplay the (price/ $) of the tip of the (light blue line/middle line), I am trying to build an EA eventually, but due to I have zero knowledge, may need some hand from time to time....
I finally get a EA, it perform brilliantly but I found the history data for m1 is very limited (begin at April,2009) and very poor (quality:25%). I tried to download history data from TOOLS->HISTORY CENTER. then I tested form JAN,2007 -JUN.2009,the result is terrible. but I found a strange situation...
Hi, I would really appreciate some help as I am completely new to mql. I programmed a basic strategy, but I need to include a time based exit (eg: Close order if time from entry exceeds or equals to 2 days). Like an inactivity stop in a way. I spent ages trying to figure out the time thing but no...
I noticed that comments are not included when saving a Backtesting report in html file. I always record indicator values in trade comments to help me analyze trades, and I want to export backtesting reports in Excel but I need the comments included. Is there a way to include this feature in future...
Hi everyone, I have to send information (a string of text, or at least some doubles) between two separate instances of MetaTrader4, each one holding one of my accounts. I saw here on the forum some topics about PostMessageA to send mt4 internal messages, but this is not what I need because there is...
Could anyone help to modify this EA to add one more function to sound alert trader when the first loss target reached, but not close all the open trade. and trader can set second loss target to close all open trade. Thank in advance
Hi, I don´t find mql code for drawing tlb charts in the price window (no as indicator). My idea / inspiration is this picture: http://www.topgunsoftware.com/3pointbreakchart.html Thank you very much for links to this code!
I was wondering if this can be made. for a trailing stop EA. What I want this EA to do is for example I have a open order and I set my trailing stop at 20 here is the interesting part. Lets say the order hit’s the trailing stop above 20 and the starts heading the opposite direction, I want the EA to...
Hello, in my EA I open an Order sucessfully with OpenOrder(...); If I call OrdersTotal() immediately after the OpenOrder(), I get a 1 returned which is correct. But as soon as I get to the beginning of "start()" by the next tick, OrdersTotal() returns a 0. I don't know why. Any clue? Thanks a lot!...
Hey Guys, Wondering if someone can help me on this: In my code i try to generagte a random number and store it as a variable like this: rannum=MathRand(); Print ("A: ", rannum); <I then have lots of other code > Later on i try to print that exact same number in another print statement... Print ("B:...
Hey guys, I'm looking for people to help me develop widgets for my website. If anyone is willing to help, please email me at jeffrey.lever at gmail.com My website is www.ForexBallot.com, and it is meant to guage investor sentiments about how currency pairs will move in the market over specific time...