MQL5 Tutorial - Simple Moving Average Crossover Robot

Аватар автора
Python: Изменение в практике программирования
Introduction to Creating an EMA Crossover Expert Advisor (00:00 - 00:13) Introduction to the tutorial on creating an Expert Advisor for two exponential moving averages (EMAs) crossing, as requested by a YouTube subscriber. Explanation of EMA Crossover Strategy (00:13 - 00:44) Explaining the strategy where a buy signal is generated when a 20-candle EMA crosses a 50-candle EMA from below, and a sell signal when it crosses from above. Demonstration of EMA Crossover on Chart (00:44 - 01:36) Showing examples of EMA crossover on the chart and discussing potential buy and sell points, as well as the occurrence of false signals in sideways markets. Creating the EMA Crossover Expert Advisor in MetaEditor (01:36 - 02:38) Starting the creation of the EMA crossover Expert Advisor in MetaEditor, including setting up the basic structure and removing unnecessary lines. Defining EMA Properties and Arrays in Code (02:38 - 03:40) Coding the properties for the two EMAs and creating arrays to store their values. Sorting Arrays and Filling with EMA Data (03:40 - 04:14) Using ArraySetAsSeries and CopyBuffer functions to sort the arrays and fill them with EMA data. Calculating Entry Signals for EMA Crossover (04:14 - 04:53) Writing the logic to calculate entry signals based on the crossover of the two EMAs. Outputting Buy and Sell Signals on Chart (04:53 - 05:26) Using the Comment function to output buy and sell signals on the chart based on the EMA crossover. Compiling and Testing the...

0/0


0/0

0/0

0/0