Menu

Metatrader mql4 programming merit

5 Comments

MQL5 London Breakout Systems. Following the recent improvements to our MetaTrader 4 London Breakout expert advisor, we've taken programming next step and ported the system to MetaTrader 5, using the new object-oriented features available in the MQL5 language. Here's the source code of our latest metatrader Jim, it is interesting: We trade GBP here, remember? Have done some testing, however i don't think that parameters are optimisable and stable can be on forward testing. Hi Light, Welcome to the Trading Gurus community forum. If you'd like to introduce yourself more formally please feel free to start a thread over in our Introductions http: You seem to have mql4 at least metatrader answered your own question in your next post! However here's my 2 pence worth anyway. There are lots of "expert advisors" on sale at the moment supposedly based around the idea that a good time to be trading cable is when hordes of dealers in the City of London sit down in front of their banks of screens, typically at around 8 AM London time. A commonly used generic term for such things is "London Breakout Systems". If there is any validity in that theory then maybe there is also a "Frankfurt breakout" of the euro, a "New York breakout" of the dollar, or a "Tokyo breakout" of the yen? This example expert advisor provides a basic tool for exploring those sort of ideas, and many others too! Hi Light, Have done some testing, however i don't think that parameters are optimisable and stable can be on forward testing. Thanks very much for posting your own backtest results. It looks like you've been trying out some of the exciting new features of the MetaTrader 5 strategy tester, including the walk forward optimization feature. It also seems likely you've encountered one of the big drawbacks of MT5. It also sounds as though one of your criteria for a "stable system" is that it should be possible to come up with a single set programming input parameters for a system that work well across all currency pairs. However if we're exploring the premise that there is a "best" time of day for trading a country's currency, isn't it likely that at least the metatrader "Start Trading Session" setting would differ from country to country, and pair to pair? Maybe metatrader a "Basel breakout" that merits further investigation? Here is the source code for the merit object-oriented MetaTrader 5 version of our "London Breakout Robot": In particular money management has been added, along with a change to the input settings to allow for easier optimization. That should also make the code and all the input settings directly comparable to the latest MetaTrader 4 version of this expert advisor. Please let us know about any problems you come across using the new version, particularly if you discover any significant differences when compared to merit latest MetaTrader 4 version http: Here's a new version that fixes a bug http: Trading a "New York Breakout" instead of a "London Breakout" makes some sense for a pair with no European involvement. All that's required is changing an input setting or two. I tried that, and ran some tests to see if there might be any merit in the idea. I fired up the MT5 strategy tester and changed the "Start of Trading Session" to Then I let GurooEx06 loose on one minute bars of the Yen for the whole of All in all it looks like this one needs some more work. Maybe some entry filters would help? Maybe a merit exit strategy would too? More coding and testing would certainly be required before this admittedly still very simple system should be considered metatrader anyone's live portfolio. That will all have to wait for another day. Here's those test results, bundled up with our rechristened "Opening Breakout Robot" itself:. Pursuing the idea of a "New York Breakout" of the yen, I've been doing a bit more testing today to see if it's possible to improve on those results. I performed a 4 dimensional optimization run, varying the "Start of Trading Session" and the "Range Duration" in addition to target and stop. Here's what MT5 calls the "2D Graph" of the optimization results: Here's the first few lines of the table of results: Mql4 a single test on those numbers produces a rather better looking equity curve also: Note also that in the table of results there is something of a gap before the second best set of parameters, which only managed a PF of 1. It looks like there's still a lot more to be done to turn this into a tradeable system. Hi Jim, I seem to mql4 having problems getting this to only open trades in a 4 hour period starting at a given time. It seems from the parameters that is should be able to do this without any code changes? Hi David, Yes, you should be able to do that, barring any bugs programming course! The other side of the coin is then that any trades would be taken on a breakout of the preceding 20 hour "range", which may not be quite what you had in mind. Can you be any more specific about the problems you have encountered? Now I have my head in MQL a little more I have made a number of changes. I am trying to automate the angry metatrader strat. Its a basic london breakout strat that based on the midpoint of the last bar. And the range if that's what I mean? But these are the challenges that make this EA development "thing" appeal to me: If you have any thoughts please do share them. Hi David, This is the "Angry Bear" strategy from Programming Secker et. If so Merit reckon maybe half a dozen prior H1 bars should do the trick. Have you successfully traded the strategy manually, or is your aim to backtest it thoroughly first?! Haha - the one and only! I have on a demo account for about a week, its my second fav strat to price action although it is a kind of price action at the moment. My best mate actually trades it manually for a living, he is pretty good. Give the manual strat more definition, I don't like things to be too up in the air around these merit of things! If I achieve either one then I will be happy. Thanks for your input, programming mate has advised that I switch from MQL5 to MQL4 as MT5 is normally NDD and as such commission rather than spread. Would you agree that in the long run it is better to work against a spread than a commission? As I understand it at the moment with NDD accounts that you pay a commission on you also pay the spread mql4 so get hit twice for making the trade? Hi David, However Greg is not the one and only purveyor of imprecisely defined trading strategies! Whilst switching metatrader MT4 will certainly give you a much wider range of brokers to choose from, there are a variety of problems you might encounter along the way. If you're mql4 to programming in Cthen MQL4 is not object oriented, and MT4 doesn't possess a debugger. Getting vaguely sensible backtest results out of the MT4 strategy tester always was a trial, and at the moment historical data seems to be broken yet again. Whilst I agree that "NDD" is not necessarily best, I find these things are very much "horses for courses". There is no definitive answer, and ultimately it's best merit experiment with each particular strategy. If you're paying commission then you'd certainly expect to receive a reduced spread in return, and don't forget you get "hit" twice more for making your trades. There's "slippage" and possibly "swap" to account for also. If you're mql4 thinking in terms of developing a bar based MT4 breakout strategy, you may wish to take a look at Ray Robot II http: I have seen you mention in other posts that you are working with Java at the moment, what trading system allows you to use Java? And do you think any of the c platforms are any good? Ideally one that allows a free account as I don't want to pay anything while I am developing. I don't have a massive problem with mql4 not being OO, but I know c and although I have little exp of Java I'm sure I would pick it up faster than any mql lang. Hi David, There are no retail platforms along similar lines to MetaTrader metatrader MultiCharts that allow you to program once in Java then trade with a long list of brokers. I am working with AlgoTrader http: There is however a long list of brokers https: I experiment with Dukascopy http: They offer a free demo account with tick by tick historical data, and you can happily debug strategies whilst programming inside Eclipse if you're into that sort of thing! As regards CI know people who speak highly of NinjaTrader but I've never used it in anger personally. I'm afraid I'm something of a UNIX zealot! Having said that, I have just upgraded programming copy of Delphi to XE2 64 bit and they threw in a copy of Prism for free, so I might see if I merit combine Object Pascal with. NET and Ninja at some point in the not too distant future. Hi Jim, I wonder if there is a simple 'text' outline of the RayRobotII strategy anywhere that I could read? I had a look at breakout strategies a while ago, but couldn't find any statistically significant 'edge'. I'm not suggesting that there isn't an edge in this type mql4 trading anecdotal evidence suggests that there isjust that I didn't find merit. I'd be interested to learn what it is that I missed. T, There is indeed a very brief outline of RR2's modus operandi on page 3 of his 36 page user manual. The manual is included in the. ZIP file containing his most recent MT4 incarnation, which you can download here http: Most of that page is taken up with a large picture programming a mql4 candle, but there is some text as well.

Mql4 Lesson 2 Extern and Data Constants

Mql4 Lesson 2 Extern and Data Constants

5 thoughts on “Metatrader mql4 programming merit”

  1. alex-45 says:

    His research articles have appearedin journals such as the Academy of ManagementJournal, Journal of Applied Psychology, Organiza-tionalBehavior and Human Decision Process, Journalof Management, and Human Resource ManagementReview.

  2. Alshams2012 says:

    In it, Socrates and Euthyphro argue about the nature of morality outside of a court.

  3. akinak says:

    Dromund took the sword, at once raised it aloft and struck a blow at Angle.

  4. Anndy says:

    I have a situation where a client has exchanged contracts with completion conditional upon a grant of a retrospective planning consent.

  5. Alenkii says:

    A case in point is the controversy over the limited manner in which the Bloomberg administration administered the disaster SNAP (formerly food stamp) program.

Leave a Reply

Your email address will not be published. Required fields are marked *

inserted by FC2 system