Fernando Carreiro / Publications
Codes
Detecting the start of a new bar or candle for MetaTrader 5
Detecting the start of a new bar or candle in an Expert Advisor's OnTick() event handler
Heikin Ashi Lines for MetaTrader 5
A simpler way to display Heikin Ashi
Heikin Ashi Lines for MetaTrader 4
A simpler way to display Heikin Ashi
Exponential Commodity Channel Index for MetaTrader 5
Commodity Channel Index using exponential moving averages
Exponential Commodity Channel Index for MetaTrader 4
Commodity Channel Index using exponential moving averages
Wilder's Relative Strength Index for MetaTrader 5
An implementation of the Relative Strength Index indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978]
Wilder's Relative Strength Index for MetaTrader 4
An implementation of the Relative Strength Index indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978]
Wilder's Average True Range (ATR) for MetaTrader 5
An implementation of the original Average True Range indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978]
Wilder's Average True Range (ATR) for MetaTrader 4
An implementation of the original Average True Range indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978]
Time Segmented Volume (TSV) for MetaTrader 5
Based on the original “Time Segmented Volume (TSV)” developed by Worden Brothers, Inc
Articles
Take a few lessons from Prop Firms (Part 1) — An introduction for MetaTrader 5
In this introductory article, I address a few of the lessons one can take from the challenge rules that proprietary trading firms implement. This is especially relevant for beginners and those who struggle to find their footing in this world of trading. The subsequent article will address the code
Forum
Don't limit the functionality of Market products based on the programme name or path.
To all users that seem to want to ask questions in private instead of the forum, please don't. Ask your questions in the forum, not in private. Reserve the private messages for truly private interactions only, not generalised questions about MetaTrader , MQL or other generalised queries. Anyway, I
Request for website functionality: List of Blog publications on the user’s profile.
When visiting a user’s profile , there is a “Publications” section. There one can view a list of publications by the users in the “CodeBase”, “Articles” and “Forum”. However, there is no listing for “Blog” publications. This is very annoying, as we cannot track or follow blog posts by the user
Request to moderators: Please prohibit “ChatGPT” help requests on the forum.
Please add a forum rule prohibiting requests for help with ChatGPT code. We cannot help them and it is becoming an epidemic. Such threads should be deleted and a PM sent to the OP, with a boilerplate template message informing them of the rule and few thread links for beginner coders. to read
Website bug: After declining a “Friend Request”, the user was still able to message me, even with privacy settings set to “Friends only”.
Today I received a friend request from an unknown user with whom I have never before exchanged private messages . I rejected the request, due to personal reasons. However, after declining, the user was still able to text me, even though my privacy settings option is set to only allow receiving
How to publish an MQL4/5 Script or MQL5 Service program on the Market section?
How to publish an MQL4/5 Script or MQL5 Service program on the Market section? I’m looking for information from anyone who has successfully published an MQL4/5 Script or MQL5 Service program in the Market section. I will assume that they need to be classified as “Utilities”. However, will scripts or
MetaTrader 5 API for use with other languages, besides Python.
Based on my investigations of the MetaTrader 5 Python API , the interprocess communications seem to be via a named pipe “\\.\pipe\MT5.Terminal.“. It is a pity, however, that the protocol used over this pipe is not publicly documented. It would make it possible to develop APIs for other systems or
[Solved] Probable bug when compiling Services from a Shared Project, they get transfered to the Scripts category folder.
EDIT: Solved! It was my mistake. See next post! Normally when compiling MQL programs from a Shared Project , MetaEditor will automatically transfer the compiled executable to the necessary category of the standard folders for "Experts", "Indicators" and "Scripts". However, when compiling "Services"
Reporting problems with MQL5 Storage
A few minutes ago, when I open MetaEditor and tried to work with the Shared Projects , it reported that I need to activate my MQL5 storage , which was strange as it was activate a long time ago. So, I activated it again and it disabled one of my folders on storage and reported several files that
MQL language feature request: a more compact and generalised "OnCalulate()" function format type.
Currently, the OnCalculate() event handling function offers two format types for MQL5—one type is for applied price data, and the other for handling time series data. They are both clunky and don't fully cater for more generalised requirements. One supplies only applied price data making it
FYI: Push Notifications on iOS devices — "MQL5 Channels" app.
This is just an informative post for those of you with iOS devices that can no longer install the MetaTrader app, but still wish to receive push notifications. There is another MetaQuotes app that is still allowed on the Apple iOS store, and can receive push notifications. I am referring to the MQL5

