Codici

CDictionary per MetaTrader 5

An implementation of the dictionary (associative array) data structure in MQL5, based on CArrayObj and CList

СloseAll per MetaTrader 4

A collection of scripts for closing various types of orders

Indicator Tracer per MetaTrader 4

Traces the output of indicators by buffer. Output can be changed on the chart by moving the VL left or right

Articoli

Cross-Platform Expert Advisor: The CExpertAdvisor and CExpertAdvisors Classes per MetaTrader 5

This article deals primarily with the classes CExpertAdvisor and CExpertAdvisors, which serve as the container for all the other components described in this article-series regarding cross-platform expert advisors

Cross-Platform Expert Advisor: Custom Stops, Breakeven and Trailing per MetaTrader 5

This article discusses how custom stop levels can be set up in a cross-platform expert advisor. It also discusses a closely-related method by which the evolution of a stop level over time can be defined

Cross-Platform Expert Advisor: Stops per MetaTrader 5

This article discusses an implementation of stop levels in an expert advisor in order to make it compatible with the two platforms MetaTrader 4 and MetaTrader 5

Cross-Platform Expert Advisor: Time Filters per MetaTrader 5

This article discusses the implementation of various methods of time filtering a cross-platform expert advisor. The time filter classes are responsible for checking whether or not a given time falls under a certain time configuration setting

Cross-Platform Expert Advisor: Money Management per MetaTrader 5

This article discusses the implementation of money management method for a cross-platform expert advisor. The money management classes are responsible for the calculation of the lot size to be used for the next trade to be entered by the expert advisor

Cross-Platform Expert Advisor: Signals per MetaTrader 5

This article discusses the CSignal and CSignals classes which will be used in cross-platform expert advisors. It examines the differences between MQL4 and MQL5 on how particular data needed for evaluation of trade signals are accessed to ensure that the code written will be compatible with both

Cross-Platform Expert Advisor: Order Manager per MetaTrader 5

This article discusses the creation of an order manager for a cross-platform expert advisor. The order manager is responsible for the entry and exit of orders or positions entered by the expert, as well as for keeping an independent record of such trades that is usable for both versions

Cross-Platform Expert Advisor: Orders per MetaTrader 5

MetaTrader 4 and MetaTrader 5 uses different conventions in processing trade requests. This article discusses the possibility of using a class object that can be used to represent the trades processed by the server, in order for a cross-platform expert advisor to further work on them, regardless of

Cross-Platform Expert Advisor: Reuse of Components from the MQL5 Standard Library per MetaTrader 5

There exists some components in the MQL5 Standard Library that may prove to be useful in the MQL4 version of cross-platform expert advisors. This article deals with a method of making certain components of the MQL5 Standard Library compatible with the MQL4 compiler

Cross-Platform Expert Advisor: Introduction per MetaTrader 5

This article details a method by which cross-platform expert advisors can be developed faster and easier. The proposed method consolidates the features shared by both versions into a single class, and splits the implementation on derived classes for incompatible features