← К каталогу
Исходный код · ID 4089

Stoch RSI and RSI Buy/Sell Signals with MACD Trend Filter, Candle Close Confirmation, and S/R Zones

free tradingview indicator v3.pine

Похожие материалы по тегам

xauusd_gold_perfect.mq4MQL4 / MetaTrader 4 · 2 общих теговtm sniper pro.pineTradingView · 2 общих теговsniper pro.mq5MQL5 / MetaTrader 5 · 2 общих теговpro +.pineTradingView · 2 общих теговofada_gold_trader_v230.mq5MQL5 / MetaTrader 5 · 2 общих теговmulti strategy algo combined by enigma mode.pineTradingView · 2 общих тегов
Вы автор или правообладатель?

Сообщите нам, если считаете, что материал размещён без разрешения.

Краткий обзор

О программе

Этот индикатор для TradingView написан на Pine Script v6 и предназначен для анализа рынка с помощью нескольких технических осцилляторов. Он рассчитывает стохастический RSI, RSI, MACD и ADX, формирует сигналы на покупку и продажу и отображает их на графике в виде меток и цветовых маркеров. Индикатор позволяет настраивать условия фильтрации сигналов и предоставляет таблицу с сигналами по нескольким таймфреймам.

Настройки программы

НастройкаОписание
stochLength Длина стохастического RSI — Период расчёта RSI, используемого внутри стохастического RSI. Определяет чувствительность осциллятора к изменениям цены.
stochSmoothing Сглаживание стохастического RSI — Период сглаживания линии Slow K стохастического RSI для снижения шума и уменьшения количества ложных сигналов.
stochOverbought Уровень перекупленности стохастического RSI — Порог, выше которого стохастический RSI считается перекупленным и может указывать на потенциальный сигнал продажи.
stochOversold Уровень перепроданности стохастического RSI — Порог, ниже которого стохастический RSI считается перепроданным и может указывать на потенциальный сигнал покупки.
rsiLength Длина RSI — Период расчёта индикатора RSI. Влияет на чувствительность RSI к изменениям цены.
rsiOverbought Уровень перекупленности RSI — Порог, выше которого RSI считается перекупленным и может указывать на сигнал продажи.
rsiNeutral Нейтральный уровень RSI — Среднее значение RSI, разделяющее зоны перекупленности и перепроданности.
rsiOversold Уровень перепроданности RSI — Порог, ниже которого RSI считается перепроданным и может указывать на сигнал покупки.
macdLengthFast Быстрый период MACD — Количество периодов для быстрой EMA в расчёте MACD. Определяет отзывчивость линии MACD на изменения цены.
macdLengthSlow Медленный период MACD — Количество периодов для медленной EMA в расчёте MACD. Влияет на сглаживание и фильтрацию шума.
macdSignalLength Период сигнальной линии MACD — Количество периодов для сигнальной линии, являющейся EMA от линии MACD. Используется для генерации сигналов при пересечении линий.
adxLength Длина ADX — Период расчёта индикатора ADX, измеряющего силу тренда.
adxLimit Порог ADX — Значение ADX, выше которого тренд считается сильным. Сигналы могут фильтроваться на основе этого условия.
buyColorGreen Цвет сигнала покупки — RSI ≤ перепроданность — Цвет маркера покупки, когда значение RSI находится на уровне перепроданности или ниже, что указывает на более сильный сигнал покупки.
buyColorBlue Цвет сигнала покупки — RSI > перепроданность — Цвет маркера покупки, когда значение RSI выше уровня перепроданности, но условие покупки всё ещё выполняется.
sellColorRed Цвет сигнала продажи — RSI ≥ перекупленность — Цвет маркера продажи, когда значение RSI находится на уровне перекупленности или выше, что указывает на более сильный сигнал продажи.
sellColorOrange Цвет сигнала продажи — RSI < перекупленность — Цвет маркера продажи, когда значение RSI ниже уровня перекупленности, но условие продажи всё ещё выполняется.
enableMACDCondition Включить условие тренда MACD — При активации сигналы генерируются только при выполнении дополнительного условия направления линии MACD.
enableCandleColorCondition Включить условие цвета свечи — При активации требуется подтверждение направления сигнала цветом свечи: для покупки свеча закрывается выше открытия, для продажи — ниже.
enableADXCondition Включить условие ADX — При активации сигналы генерируются только при значении ADX выше заданного порога, что помогает отфильтровать сигналы в боковике.
showSupportResistanceZones Показать зоны поддержки и сопротивления — Включает отображение горизонтальных линий зон поддержки и сопротивления на графике на основе разворотов цены.
reversalThreshold Порог разворота для зоны С/Р — Количество баров, за которое должен произойти разворот для определения уровня поддержки или сопротивления.
zoneLength Длина зоны в свечах — Длина зон поддержки и сопротивления, измеряемая в количестве свечей на графике.
showTable Показать таблицу сигналов — Включает отображение таблицы с сигналами покупки и продажи по нескольким таймфреймам в правом нижнем углу графика.
showSignals Показать сигналы покупки/продажи — Управляет видимостью маркеров сигналов покупки и продажи на графике.
Получить полный код

Поиск по коду файла

indicator('Stoch RSI and RSI Buy/Sell Signals with MACD Trend Filter, Candle Close Confirmation, and S/R Zones', overlay=true)

stochLength = input.int(14, title='Stochastic RSI Length', minval=1, group='Stochastic RSI Settings', tooltip='This setting determines the period over which the RSI is calculated for the Stochastic RSI. A higher value will make the indicator less sensitive to price changes, smoothing out the fluctuations, but may lag more. A lower value makes it more sensitive and responsive to recent price changes.')
stochSmoothing = input.int(3, title='Stochastic Smoothing (Slow K)', minval=1, group='Stochastic RSI Settings', tooltip='This is the smoothing period for the Stochastic RSI\'s slow K line. It smooths the %K line to reduce noise and false signals. A higher value means more smoothing, resulting in fewer but potentially more reliable signals.')
stochOverbought = input.float(90, title='Stoch RSI Overbought Level', minval=0, maxval=100, group='Stochastic RSI Settings', tooltip='This is the threshold above which the Stochastic RSI is considered overbought. When the Stochastic RSI exceeds this level, it may indicate that the asset is overpriced and could be a sell signal. Adjusting this value can help tune the indicator to different market conditions.')
stochOversold = input.float(10, title='Stoch RSI Oversold Level', minval=0, maxval=100, group='Stochastic RSI Settings', tooltip='Similar to the overbought level, this is the threshold below which the Stochastic RSI is considered oversold. It may indicate that the asset is undervalued and could be a buy signal.')

rsiLength = input.int(14, title='RSI Length', minval=1, group='RSI Settings', tooltip='The period over which the RSI is calculated. The default is 14, but adjusting this can make the RSI more or less sensitive to price changes. A shorter period makes it more sensitive, while a longer period smooths out the fluctuations.')
rsiOverbought = input.float(65, title='RSI Overbought Level', minval=0, maxval=100, group='RSI Settings', tooltip='Level above which the RSI is considered overbought. Typically set above 70, but here it\'s set to 65. When RSI exceeds this level, it may suggest that the asset is overpriced.')
rsiNeutral = input.float(50, title='RSI Neutral Level', minval=0, maxval=100, group='RSI Settings', tooltip='The neutral level, usually set at 50, which is the midpoint of the RSI oscillator. It\'s where the RSI is neither indicating overbought nor oversold conditions.')
rsiOversold = input.float(35, title='RSI Oversold Level', minval=0, maxval=100, group='RSI Settings', tooltip='Level below which the RSI is considered oversold. Typically below 30, but set to 35 here. It may indicate that the asset is undervalued.')

macdLengthFast = input.int(12, title='MACD Fast Length', minval=1, group='MACD Settings', tooltip='The number of periods for the fast EMA in the MACD calculation. A shorter period makes the MACD more responsive to price changes.')
macdLengthSlow = input.int(26, title='MACD Slow Length', minval=1, group='MACD Settings', tooltip='The number of periods for the slow EMA in the MACD calculation. A longer period makes it less responsive but can help filter out noise.')
macdSignalLength = input.int(9, title='MACD Signal Length', minval=1, group='MACD Settings', tooltip='The number of periods for the signal line, which is an EMA of the MACD line. It\'s used to generate buy and sell signals through crossovers with the MACD line.')

adxLength = input.int(14, title='ADX Length', minval=1, group='ADX Settings', tooltip='The period over which the ADX is calculated. ADX measures the strength of a trend, with higher values indicating a stronger trend.')
adxLimit = input.float(25, title='ADX Limit', minval=0, group='ADX Settings', tooltip='The ADX value above which the trend is considered strong. Signals may be filtered based on this condition to avoid whipsaws in ranging markets.')

buyColorGreen = input.color(color.green, title='Buy Signal - RSI <= Oversold', group='Signal Colors', tooltip='The color for buy signals when the RSI is below or equal to the oversold level, indicating a stronger buy signal.')
buyColorBlue = input.color(color.blue, title='Buy Signal - RSI > Oversold', group='Signal Colors', tooltip='The color for buy signals when the RSI is above the oversold level but still indicating a buy condition.')
sellColorRed = input.color(color.red, title='Sell Signal - RSI >= Overbought', group='Signal Colors', tooltip='The color for sell signals when the RSI is above or equal to the overbought level, indicating a stronger sell signal.')
sellColorOrange = input.color(color.orange, title='Sell Signal - RSI < Overbought', group='Signal Colors', tooltip='The color for sell signals when the RSI is below the overbought level but still indicating a sell condition.')

enableMACDCondition = input.bool(true, title='Enable MACD Trend Condition', group='Conditions', tooltip='Enabling this will require the MACD trend condition to be met for signals to be generated. This adds an additional filter based on the MACD line\'s direction.')
enableCandleColorCondition = input.bool(true, title='Enable Candle Color Condition', group='Conditions', tooltip='Enabling this will require the candle color to confirm the signal direction. For buys, the candle should close higher than it opened, and for sells, the opposite.')
enableADXCondition = input.bool(false, title='Enable ADX Condition', group='Conditions', tooltip='Enabling this will require the ADX condition to be met, meaning the ADX value must be above the specified limit for signals to be generated.')

showSupportResistanceZones = input.bool(true, title='Show Support/Resistance Zones', group='Support/Resistance Zones', tooltip='Enabling this will display support and resistance zones on the chart based on price reversals over a specified number of bars.')
reversalThreshold = input.int(50, title='Reversal Count for S/R Zone', minval=1, group='Support/Resistance Zones', tooltip='The number of bars over which a reversal must occur to identify a support or resistance level. Higher values require more confirmation for a reversal.')
zoneLength = input.int(500, title='Zone Length (Candles)', minval=1, group='Support/Resistance Zones', tooltip='The length of the support and resistance zones, measured in candles. This determines how far the horizontal lines extend on the chart.')

showTable = input.bool(true, title='Show Signal Table', group='Signal Table', tooltip='Enabling this will show a table at the bottom right of the chart displaying buy and sell signals across different time

Показано первые 50% кода (символов: 11276)

Открыть по тарифу

Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.

Разовая покупка файла

На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.

Чтобы оформить заказ, введите email и перейдите к оплате.

Стоимость полного кода
1 127,60₽ ≈ $13.78