Regular visitors will have noticed ever increasing amounts of spam on the Trading Gurus Community Forum. On November 24th 2012 we implemented some changes:

1. New users will be moderated 2. Registered users who have a post count of zero will not be able to view attachments or download code. 3. Registered users who have a post count of zero will not be able to create a new thread

As an additional countermeasure we anticipate introducing a modest paywall in the near future.

If this is your first visit here our apologies for the inconvenience.

Existing users may wish to contribute their ideas to this thread.

Results 1 to 2 of 2

Thread: An Object Oriented MQL4 Version of Ray the Random Robot

  1. #1
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    494

    An Object Oriented MQL4 Version of Ray the Random Robot

    MetaQuotes have just announced the public beta testing of a new combined MQL4/MQL5 IDE. Unable to resist a challenge we've ported the object-oriented multi-currency MQL5 version of Ray the Random Robot to MetaTrader 4! That meant throwing away any bits of code that used MQL5's new order handling paradigm and replacing it with code that does things the old MT4 way, in this case hurriedly cut and pasted from the MetaTrader 4 multi-currency version of Ray. The end result still includes such MQL5 novelties as OnTick() and OnTimer() and it compiles OK. We've no idea if it runs OK though, because the .EX4 file produced doesn't run in currently available versions of the MetaTrader 4 terminal. Apparently a new version of the MT4 terminal that will run these new executables is due to arrive "next month".

    Here's the shiny new (and bug fixed!) source code:
    Attached Files Attached Files
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

  2. #2
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    494
    It is now possible to beta test object oriented MQL4 expert advisors on a MetaQuotes demo account. Here's the instructions on how to do so, translated from the original Russian by Ovo on the MQL4 forum:


    1. Create a new and clean MT4 installation in a new folder. You may need to Download MetaTrader 4 Terminal Installer (455 Kb)
    2. Try to login, with the server field set to demo.metaquotes.net:444 (which will not succeed)
    3. Apply for a new account, with the demo.metaquotes.net:444 server selected.
    4. Shut down the terminal. Reopen this installation of terminal. Update of beta commences and you'll get the new beta installed.


    I tried that, and it worked! It also revealed a couple of bugs in the original version of MQL4 object oriented Ray (OORay for short), so the .ZIP file in the first post has been updated.
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •