Keltner Channel built relative to the average value of the OsMACandle oscillator as a sequence of candlesticks.
Fig1. The OsMACandleKeltner indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/17577
An example of using HistorySelectByPosition (based on the HistoryDealGetTicket use example).SupportResistTrade
Support\resistance levels, trend direction — bullish\bearish.