Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7339
As I recall, this indicator had been written by OlegVS for МТ3, for determining the flat. If the price is inside the dotted channel - flat. And MaksiGen redesigned it for МТ4.MaksiGen_KaHaJI_CkaJIneP
This indicator shows when to open and when to close by drawing 2 lines.