MQL

EA Questions and Answers

EA Questions and Answers

Recently Asked Questions (RAQ) When it comes to building and executing Expert Advisors, most traders have a few questions.  I’ve found through the years that many of the questions are the same. These questions are easily supported using a FAQ (Frequently Asked Questions). However, some questions are unique and are […]

by August 23, 2015 0 comments EA Builders, MQL
Magic Number Parameter on fnOpenOrder (OrderSened)

MetaTrader Magic Number

MetaTrader Magic Number A magic number is used to identify a trade. When a trade is opened by an Expert Advisor, a magic number can be associated with the trade. The MQL function used to open a trade is called OrderSend.  (The OrderSend function can be difficult to configure) OrderSend […]

by October 11, 2013 3 comments EA Builders, MQL
MetaTrader init and deinit functions on main system drawing of VTS

Special MetaTrader Functions: init, deinit and start

Special MetaTrader Functions: init, deinit and start If you have ever used the MetaEditor to build an Expert Advisor, you may have noticed that the editor automatically builds 3 functions for you: init, deinit and start. This is what they mean: init: This function is called when the Expert Advisor is […]

by September 26, 2013 2 comments MQL, Using VTS
Running an Alert-Only Expert Advisor

Running an Alert-Only Expert Advisor

Running an “Alert-Only” Expert Advisor on your MetaTrader Platform There are several ways to build and run an Alert-Only Expert Advisor on your MetaTrader platform. An Alert-Only Expert Advisor is an EA that does not open or close trades when a trade signal is detected, but instead generates an alert. […]

by September 6, 2013 0 comments MQL, Using VTS
How to Debug Expert Advisors (MetaTrader 4)

How to Debug Expert Advisors (MetaTrader 4)

Debug Expert Advisors Using VTS The MetaTrader platform does not have any built-in functionality for debugging. So, we do what we programmers have always done: add lots of print statements to figure out how the program is executing. This is easy to do in VTS. Just use the Message tab […]

by August 9, 2013 1 comment EA Builders, MQL, Using VTS