All of the functions used in the Expert Advisor are found in the ImportantFunctions.mqh include file.
There are 2 Expert Advisors, both using the price crossing the moving average as their entry signal, with a simple difference: one uses Martingale when losses occur, and the other does not.
I don't recommend using any of the EAs with a live account, they are made for demonstration purposes only.
The code contains comments, and I've made a YouTube video explaining everything you need to understand.
Thanks for reading!
Delete all objects on chart (main window and sub window) with drag and drop
It will delete all objects on the chart when the compiled executable is dragged onto the chart
Trap News MT5
Script For Trap News High Impact
MovingAverages.mqh Part I
MovingAverages.mqh Part I A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.
Screenshots with keyboard key press
Capture widescreen screenshots by pressing the 's' hotkey on the keyboard