The operation of the Expert Advisor requires the use of the Laguerre indicator.
How It Works
The lot size for positions to be opened can be fixed or proportional to free margin. In case of losing trades the position volume can be reduced.
A position is closed when Laguerre goes in the opposite direction. A buy position closes at a value greater than 0.9 and a sell position closes at a value less than 0.1.
A Stop Loss and Take Profit can be set for an opening position. Instead of real Stop Loss and Take Profit, positions can be closed upon reaching a set loss or profit.
The image below shows the performance of the Expert Advisor in the strategy tester's visual mode.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1087
The Expert Advisor opens a position at the specified time in the direction opposite to that of yesterday's daily bar.Divergence Trader
The Expert Advisor operating based on divergence of two moving averages.