MQL5: Writing an Expert Advisor for MetaTrader 5 on an external indicator
Dear friends, colleagues Forex traders - hello!
Today's lesson will be two in one. Today we will write an indicator in MQL5 + expert advisor on this indicator. Those. Today's topic is “How to write an Expert Advisor for MetaTrader 5 on an external indicator.”
We use the classes and libraries of the MT5 platform for this, thanks to which the development of robots will pass as quickly as possible. Well, how to do it - you will learn from our today's video tutorial!
It is clear that in this lesson we did not pursue the goal of writing a profitable adviser, so this task will fall on you. So let's try:
- Since the indicator, and, accordingly, the trend adviser, it is clear that it is necessary to exclude night time from trading - flat time. Add a time limit to the advisor - we do not trade at night.
- I suggest adding a trailing stop - what if it will be better? Weak?
Previous MQL5 Lessons: