Almazov Trade: Opening Range

Almazov Trade: Opening Range
Almazov Trade: Opening Range is an open-source indicator for the first confirmed close outside the 09:30–10:00 New York opening range. It builds the range from chart candles, displays hypothetical entry/SL/TP levels, and counts completed outcomes without placing orders.
Range and supported timeframes
The reference window is 09:30–10:00, Monday–Friday, in America/New_York time (including daylight-saving changes). Its high and low are accumulated from current-chart OHLC bars, without request.security(). A usable range requires correctly aligned, consecutive candles covering the full window, ending at 10:00. Missing data invalidate the range; incompatible alignment or candle duration can trigger a runtime error.
Supported timeframes: 1, 2, 3, 5, 6, 10, 15 and 30 minutes, provided actual bar boundaries match the session. Other intervals and non-standard charts (including Heikin Ashi and Renko) are rejected.
Signal and risk rules
Display and outcome markers
The blue opening-range box and high/low lines show the reference period. LONG/SHORT labels appear below/above entry candles; optional entry dots and candle highlighting assist visual inspection. An active trade uses a light entry line, red SL/risk area and green TP/reward area. Historical drawings are subject to TradingView's object limits.
Exit markers identify the event candle, not the execution price: LONG SL and SHORT TP appear at its low (label pointing up); LONG TP and SHORT SL at its high (label pointing down). The underlying SL and TP prices do not change.
Statistics and alerts
The upper-right table reports completed hypothetical trades: closed trades, TP count, SL count, TP rate (TP / closed × 100%), and gross Total R. Each TP adds the selected RR; each SL subtracts 1R. The active trade is excluded. Four alerts are available: LONG, SHORT, TP and SL. Use “Once Per Bar Close”.
Implementation and settings
Opening-range breakouts are an established concept. This implementation combines complete-bar validation on eight timeframes, first-close-breakout-only selection, breakout-candle risk, fixed RR targets, one-position tracking and a compact R-based outcome table. Default values are not claimed optimal. The script uses confirmed closes for signals; live range drawings can develop intrabar.
The interface contains Russian labels; their English equivalents are listed here:
РУССКАЯ ВЕРСИЯ
Almazov Trade: Opening Range
Индикатор с открытым кодом для поиска первого подтверждённого пробоя диапазона 09:30–10:00 по Нью-Йорку. Самостоятельно строит диапазон из свечей графика, показывает условные вход, стоп и тейк и ведёт статистику завершённых сигналов.
Диапазон и сигналы
Работает на стандартных графиках 1, 2, 3, 5, 6, 10, 15 и 30 минут, если свечи точно укладываются в интервал 09:30–10:00 America/New_York. Учитывается переход на летнее время. Неполный диапазон не используется; несовместимый таймфрейм, синтетический график или неправильные границы свечей могут вызвать ошибку.
Метки и статистика
Синий прямоугольник и линии показывают границы диапазона. Светлая линия — Entry, красная зона — риск/SL, зелёная — потенциальная прибыль/TP. LONG подписан под свечой входа, SHORT — над ней. Метки выхода размещаются на экстремумах свечи события: LONG SL и SHORT TP — на Low (label up); LONG TP и SHORT SL — на High (label down). Место метки не является ценой исполнения.
Таблица справа показывает закрытые сделки, число TP и SL, долю тейков и сумму R: тейк добавляет заданный RR, стоп вычитает 1R. Доступны четыре алерта: LONG, SHORT, TP, SL, с подтверждением на закрытии бара.
Особенности и настройки
Opening Range Breakout — известная концепция. Здесь реализованы проверка полноты диапазона на восьми ТФ, вход только по первому закрытию за границей, стоп по пробойной свече, фиксированный RR, одна активная сделка и таблица результатов. Это аналитический индикатор, а не торговый робот. Настройки разделены на «Opening Range», «Сигнал» и «Сделка»: оформление диапазона, отображение сигналов, RR (3,0), цвета и прозрачность сетки. Полный перевод элементов интерфейса и сообщений об ошибках приведён в английской части выше.
Almazov Trade: Opening Range is an open-source indicator for the first confirmed close outside the 09:30–10:00 New York opening range. It builds the range from chart candles, displays hypothetical entry/SL/TP levels, and counts completed outcomes without placing orders.
Range and supported timeframes
The reference window is 09:30–10:00, Monday–Friday, in America/New_York time (including daylight-saving changes). Its high and low are accumulated from current-chart OHLC bars, without request.security(). A usable range requires correctly aligned, consecutive candles covering the full window, ending at 10:00. Missing data invalidate the range; incompatible alignment or candle duration can trigger a runtime error.
Supported timeframes: 1, 2, 3, 5, 6, 10, 15 and 30 minutes, provided actual bar boundaries match the session. Other intervals and non-standard charts (including Heikin Ashi and Renko) are rejected.
Signal and risk rules
- Once a valid range is complete, LONG requires a candle to close strictly above its high; SHORT requires a close strictly below its low. A wick break or equality is insufficient.
- Only the first qualifying closing breakout per range is considered, even if no trade can open. Entry requires no active position, no exit on the same bar, and positive risk.
- Hypothetical entry = breakout candle close. LONG SL = its low; SHORT SL = its high. Risk = absolute entry-to-SL distance (1R).
- LONG TP = entry + risk × RR; SHORT TP = entry − risk × RR. Default RR is 3.0. Levels remain fixed; only one position is tracked, potentially across sessions.
- SL/TP checks start on the bar after entry and are confirmed at bar close. Touching both on one candle counts as SL because their intrabar sequence is unknown. No trailing, partial or end-of-day exits are implemented.
Display and outcome markers
The blue opening-range box and high/low lines show the reference period. LONG/SHORT labels appear below/above entry candles; optional entry dots and candle highlighting assist visual inspection. An active trade uses a light entry line, red SL/risk area and green TP/reward area. Historical drawings are subject to TradingView's object limits.
Exit markers identify the event candle, not the execution price: LONG SL and SHORT TP appear at its low (label pointing up); LONG TP and SHORT SL at its high (label pointing down). The underlying SL and TP prices do not change.
Statistics and alerts
The upper-right table reports completed hypothetical trades: closed trades, TP count, SL count, TP rate (TP / closed × 100%), and gross Total R. Each TP adds the selected RR; each SL subtracts 1R. The active trade is excluded. Four alerts are available: LONG, SHORT, TP and SL. Use “Once Per Bar Close”.
This is not a Strategy Tester report or actual execution history. Fees, spread, slippage, funding, leverage, liquidity, position sizing and gap fills are not modeled. Total R is not account return; historical outcomes do not imply future profitability. Results depend on available history, timeframe and session settings.
Implementation and settings
Opening-range breakouts are an established concept. This implementation combines complete-bar validation on eight timeframes, first-close-breakout-only selection, breakout-candle risk, fixed RR targets, one-position tracking and a compact R-based outcome table. Default values are not claimed optimal. The script uses confirmed closes for signals; live range drawings can develop intrabar.
The interface contains Russian labels; their English equivalents are listed here:
- Opening Range: «Цвет диапазона» = Range color (blue); «Прозрачность диапазона» = Range transparency (88, 0–100); «Толщина рамки» = Border width (2, 1–4); «Толщина уровней» = Level width (2, 1–4); «Подпись Opening Range» = Show caption (on).
- Сигнал = Signal: «Цвет LONG» / «Цвет SHORT» = Long / Short color (green/red); «Подсвечивать пробойную свечу» = Highlight breakout candle (on); «Показывать LONG / SHORT» = Show entry labels (on); «Показывать точку входа» = Show entry dot (on).
- Сделка = Trade: «Risk / Reward» = RR multiple (3.0; min 0.1); «Показывать сетку сделки» = Show trade grid (on); «Цвет зоны риска» = Risk color (red); «Цвет зоны прибыли» = Reward color (green); «Цвет Entry» = Entry-line color (light grey); «Прозрачность зон» = Zone transparency (78, 0–100).
- Table: «СТАТИСТИКА» / «РЕЗУЛЬТАТ» = Statistics / Result; «Закрытые сделки» = Closed trades; «Тейк-профиты» / «Стоп-лоссы» = TP / SL count; «Доля тейков» = TP rate; «Сумма R» = Total R.
- Alerts: «первый пробой NY Opening Range» = first NY range breakout; «Take Profit достигнут» / «Stop Loss достигнут» = TP / SL reached.
- Errors: «Неподходящий таймфрейм» = Unsupported timeframe; «Выберите обычный график» = Use standard OHLC chart; «Свечи графика не совпадают с началом Opening Range» = Bars do not align with 09:30 NY; «Свеча пересекает границу Opening Range ... или имеет неверную длительность» = Bar crosses window boundary or has incorrect duration.
РУССКАЯ ВЕРСИЯ
Almazov Trade: Opening Range
Индикатор с открытым кодом для поиска первого подтверждённого пробоя диапазона 09:30–10:00 по Нью-Йорку. Самостоятельно строит диапазон из свечей графика, показывает условные вход, стоп и тейк и ведёт статистику завершённых сигналов.
Диапазон и сигналы
Работает на стандартных графиках 1, 2, 3, 5, 6, 10, 15 и 30 минут, если свечи точно укладываются в интервал 09:30–10:00 America/New_York. Учитывается переход на летнее время. Неполный диапазон не используется; несовместимый таймфрейм, синтетический график или неправильные границы свечей могут вызвать ошибку.
- После завершения диапазона LONG возникает при закрытии строго выше его High, SHORT — строго ниже Low. Прокол тенью не считается.
- Используется только первый пробой диапазона, даже если вход был невозможен. Одновременно сопровождается не более одной условной сделки.
- Entry — Close пробойной свечи; SL лонга — её Low, SL шорта — её High. TP = Entry ± риск × RR (по умолчанию 3,0). Уровни фиксируются.
- Со следующей свечи проверяются касания SL/TP; результат подтверждается на закрытии. Если свеча затронула оба уровня, засчитывается SL. Переноса стопа, частичных и принудительных дневных выходов нет.
Метки и статистика
Синий прямоугольник и линии показывают границы диапазона. Светлая линия — Entry, красная зона — риск/SL, зелёная — потенциальная прибыль/TP. LONG подписан под свечой входа, SHORT — над ней. Метки выхода размещаются на экстремумах свечи события: LONG SL и SHORT TP — на Low (label up); LONG TP и SHORT SL — на High (label down). Место метки не является ценой исполнения.
Таблица справа показывает закрытые сделки, число TP и SL, долю тейков и сумму R: тейк добавляет заданный RR, стоп вычитает 1R. Доступны четыре алерта: LONG, SHORT, TP, SL, с подтверждением на закрытии бара.
Статистика условная, не является отчётом Strategy Tester. Комиссии, спред, проскальзывание, ликвидность, гэпы и размер позиции не моделируются. Сумма R — не доходность счёта; история не гарантирует будущих результатов.
Особенности и настройки
Opening Range Breakout — известная концепция. Здесь реализованы проверка полноты диапазона на восьми ТФ, вход только по первому закрытию за границей, стоп по пробойной свече, фиксированный RR, одна активная сделка и таблица результатов. Это аналитический индикатор, а не торговый робот. Настройки разделены на «Opening Range», «Сигнал» и «Сделка»: оформление диапазона, отображение сигналов, RR (3,0), цвета и прозрачность сетки. Полный перевод элементов интерфейса и сообщений об ошибках приведён в английской части выше.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.