The Expert Advisor was created to test the profitability of the strategy described by one of the Forum members.
SPECIAL ATTENTION!!!
This Expert Advisor is not created to evaluate the quality of the code and programming style, but only to test the strategy!!!!
The essence of the algorithm of the Expert Advisor:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/47664
Simple_Price_EA
The simplest Expert Advisor that analyses the price movement on a given number of bars and opens a corresponding position.
Control_Trade_Sessions
Library for trading session control. At startup it counts the time of trading sessions for all 7 days of the week (on Sat and Sun there can be cryptocurrency trading), up to 10 sessions per day. Then in OnTick() you can do checks, and if a tick came in outside the trading session, you can exit further processing of it.
Input_Struct
Structure of input parameters
MA Price display
The indicator is written by request on the forum.