熊本インジケータサブバネる//@version=6
indicator("熊本インジケータ", shorttitle="BB", overlay=true, timeframe="", timeframe_gaps=true)
// MACDの計算
= ta.macd(close, 12, 26, 9)
plot(macdLine, title="MACD", color=color.red)
plot(signalLine, title="シグナル", color=color.green)
histColor = histLine >= 0 ? color.new(color.green, 50) : color.new(color.red, 50)
plot(histLine, title="MACDヒストグラム", color=histColor, style=plot.style_columns)
// MACDシグナルの判定
buySignal = ta.crossover(macdLine, signalLine)
sellSignal = ta.crossunder(macdLine, signalLine)
// MACDシグナルをMACDライン上に描画
plotshape(buySignal ? macdLine : na, title="買いシグナル", style=shape.triangleup, location=location.absolute, color=color.green, size=size.small)
plotshape(sellSignal ? macdLine : na, title="売りシグナル", style=shape.triangledown, location=location.absolute, color=color.red, size=size.small)
// ATRシグナルの計算
atrValue = ta.atr(14)
// ATRブレイクアウト条件:前バーの高値にATRを足した値を上回ったら買い、前バーの安値からATRを引いた値を下回ったら売り
atrBuy = close > high + atrValue
atrSell = close < low - atrValue
// ATRシグナルを青の矢印で描画(常にMACDの0軸付近に表示)
plotshape(atrBuy ? 0 : na, title="ATR買いシグナル", style=shape.arrowup, location=location.absolute, color=color.blue, size=size.small)
plotshape(atrSell ? 0 : na, title="ATR売りシグナル", style=shape.arrowdown, location=location.absolute, color=color.blue, size=size.small)
อินดิเคเตอร์และกลยุทธ์
RSI 14 with MA's and Filled Backgrounds VD DUNG//@version=5
indicator("RSI 14 with MA's and Filled Backgrounds", overlay=false)
// Input parameters
rsiLength = input.int(14, title="RSI Length")
emaLength = input.int(9, title="EMA Length")
wmaLength1 = input.int(45, title="WMA Length 1")
wmaLength2 = input.int(89, title="WMA Length 2")
overbought = input.int(80, title="Overbought Level")
middle = input.int(50, title="Middle Level")
oversold = input.int(20, title="Oversold Level")
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
// MA Calculations
ema = ta.ema(rsi, emaLength)
wma1 = ta.wma(rsi, wmaLength1)
wma2 = ta.wma(rsi, wmaLength2)
// Plot RSI
plot(rsi, title="RSI", color=color.new(color.blue, 0))
// Plot MAs
plot(ema, title="EMA 9", color=color.new(color.red, 0))
plot(wma1, title="WMA 45", color=color.new(color.green, 0))
plot(wma2, title="WMA 89", color=color.new(color.orange, 0))
// Plot Levels
hline(overbought, "Overbought", color=color.new(color.red, 50))
hline(middle, "Middle", color=color.new(color.gray, 50))
hline(oversold, "Oversold", color=color.new(color.green, 50))
// Fill colors between EMA 9 and WMA 45
fill(plot(ema, title="EMA 9", color=color.new(color.red, 0)),
plot(wma1, title="WMA 45", color=color.new(color.green, 0)),
color=color.new(color.purple, 90), title="Fill EMA 9 & WMA 45")
// Fill colors between WMA 45 and WMA 89
fill(plot(wma1, title="WMA 45", color=color.new(color.green, 0)),
plot(wma2, title="WMA 89", color=color.new(color.orange, 0)),
color=color.new(color.teal, 90), title="Fill WMA 45 & WMA 89")
// Fill colors between EMA 9 and WMA 89
fill(plot(ema, title="EMA 9", color=color.new(color.red, 0)),
plot(wma2, title="WMA 89", color=color.new(color.orange, 0)),
color=color.new(color.yellow, 90), title="Fill EMA 9 & WMA 89")
// Fill color when RSI crosses above/below level 50
fill(plot(rsi, title="RSI", color=color.new(color.blue, 0)),
plot(middle, title="Middle Level", color=color.new(color.gray, 50)),
color=rsi > middle ? color.new(color.green, 90) : color.new(color.red, 90), title="RSI Fill Above/Below 50")
PriceCatch - Previous Hour RangeHi Tradingview community,
Recently I stumbled upon a video on Youtube where the Youtuber was talking about Intraday trading based on 1 hour price range.
Anyone requesting the code was asked to contact over email for the code. So, I thought, this is such a simple script and has no special complex coding involved and why such a show off instead of just sharing it.
So, I decided to write the code myself and it took me under 10 minutes to do it. So, here's the PriceCatch - Previous Hour Range script. It is open source, so you can check it and apply it in your trading strategy.
Remember, this is just a simple range plotter and does not give any signals.
If you want 2 hours range, then simply change 60 to 120. Simple.
So, all the best with your trades.
PriceCatch
RSI Profit SniperDescription of the "RSI Profit Sniper" Indicator - t.me/ProfitISniper
The "RSI Profit Sniper" indicator is a trading tool based on the Relative Strength Index (RSI) that helps traders identify potential entry and exit points in financial markets. This indicator uses overbought and oversold conditions to generate buy and sell signals. Below is a detailed breakdown of its functionality.
Key Components of the Indicator:
RSI (Relative Strength Index):
RSI is an oscillator that measures the speed and magnitude of price movements over a specified period.
RSI values range from 0 to 100.
It is commonly used to detect overbought and oversold conditions of an asset.
Configuration Parameters:
RSI Length:
The user can set the number of bars (periods) for RSI calculation. The default value is 14.
Upper Threshold (Overbought Level):
The level above which the asset is considered overbought. The default value is 70.
Lower Threshold (Oversold Level):
The level below which the asset is considered oversold. The default value is 30.
How the Indicator Works:
RSI Calculation:
The indicator calculates the RSI value for each bar based on the specified period (rsiLength).
Signal Generation:
Buy Signal:
Triggered when the RSI line crosses the oversold level (lowerThreshold) from below. This indicates that the asset may be undervalued and ready for an upward move.
Sell Signal:
Triggered when the RSI line crosses the overbought level (upperThreshold) from above. This indicates that the asset may be overvalued and ready for a correction.
Signal Visualization:
Buy Signal: Displayed as a green label with the text "BUY" below the price chart.
Sell Signal: Displayed as a red label with the text "SELL" above the price chart.
Alerts:
The indicator provides three types of alerts:
BUY Alert: Triggered when a buy signal appears.
SELL Alert: Triggered when a sell signal appears.
General Alert: Triggered for any signal (buy or sell).
How to Use the Indicator:
Parameter Adjustment:
Traders can adjust the RSI period, overbought, and oversold levels according to market conditions and their trading strategy.
Analyzing Signals:
When a buy signal ("BUY") appears, traders can consider opening a long position.
When a sell signal ("SELL") appears, traders can consider closing a long position or opening a short one.
Filtering False Signals:
Although RSI is a powerful tool, it can produce false signals, especially in highly volatile or trending markets.
It is recommended to use additional indicators or analysis methods (e.g., trend lines, volume, candlestick patterns) to confirm signals.
Advantages of the Indicator:
Ease of Use: The indicator provides clear buy and sell signals.
Customizability: Users can tailor parameters to suit their preferences and trading conditions.
Automation: The ability to set up alerts allows traders to receive notifications about signals even outside trading hours.
Limitations of the Indicator:
False Signals: In sideways or strongly trending markets, RSI may generate many false signals.
Lagging Nature: Since RSI is based on historical data, it may lag behind changes in market conditions.
Need for Filtering: To improve accuracy, it is advisable to combine its use with other analysis tools.
Conclusion:
The "RSI Profit Sniper" indicator is a valuable tool for traders seeking a simple and effective way to identify potential entry and exit points based on overbought and oversold conditions. However, it is important to remember that no indicator guarantees 100% accuracy. Therefore, it is recommended to combine its use with other analysis methods to make informed decisions.
----------------------------------------
Описание индикатора "RSI Profit Sniper" - t.me/ProfitISniper
Индикатор "RSI Profit Sniper" представляет собой торговый инструмент, основанный на индексе относительной силы (RSI), который помогает трейдерам определять потенциальные точки входа и выхода на финансовых рынках. Этот индикатор использует перекупленность и перепроданность актива для генерации сигналов о покупке и продаже. Давайте рассмотрим его функционал подробно.
Основные компоненты индикатора:
RSI (Relative Strength Index):
RSI — это осциллятор, который измеряет скорость и изменение ценового движения за заданный период времени.
Значения RSI колеблются в диапазоне от 0 до 100.
Обычно используется для выявления состояний перекупленности и перепроданности актива.
Параметры конфигурации:
RSI Length (Длина периода RSI):
Пользователь может настроить количество баров (периодов) для расчета RSI. По умолчанию установлено значение 14.
Upper Threshold (Уровень перекупленности):
Уровень, выше которого актив считается перекупленным. По умолчанию установлено значение 70.
Lower Threshold (Уровень перепроданности):
Уровень, ниже которого актив считается перепроданным. По умолчанию установлено значение 30.
Логика работы индикатора:
Расчет RSI:
Индикатор вычисляет значение RSI для каждого бара на основе указанного периода (rsiLength).
Генерация сигналов:
Buy Signal (Сигнал на покупку):
Срабатывает, когда линия RSI пересекает уровень перепроданности (lowerThreshold) снизу вверх. Это указывает на то, что актив может быть недооценен и готов к росту.
Sell Signal (Сигнал на продажу):
Срабатывает, когда линия RSI пересекает уровень перекупленности (upperThreshold) сверху вниз. Это указывает на то, что актив может быть переоценен и готов к коррекции.
Визуализация сигналов:
Buy Signal: Отображается как зеленая метка с текстом "BUY" под ценовым графиком.
Sell Signal: Отображается как красная метка с текстом "SELL" над ценовым графиком.
Оповещения:
Индикатор предоставляет три типа оповещений:
BUY Alert: Срабатывает при появлении сигнала на покупку.
SELL Alert: Срабатывает при появлении сигнала на продажу.
General Alert: Срабатывает при любом сигнале (покупка или продажа).
Как использовать индикатор:
Настройка параметров:
Трейдер может настроить период RSI, а также уровни перекупленности и перепроданности в зависимости от рыночных условий и стратегии торговли.
Анализ сигналов:
Когда появляется сигнал на покупку ("BUY"), трейдер может рассматривать возможность открытия длинной позиции.
Когда появляется сигнал на продажу ("SELL"), трейдер может рассматривать возможность закрытия длинной позиции или открытия короткой.
Фильтрация ложных сигналов:
Хотя RSI является мощным инструментом, он может давать ложные сигналы, особенно в условиях высокой волатильности или трендового движения.
Рекомендуется использовать дополнительные индикаторы или методы анализа (например, трендовые линии, объемы, свечные модели) для подтверждения сигналов.
Преимущества индикатора:
Простота использования: Индикатор предоставляет четкие сигналы на покупку и продажу.
Настраиваемость: Пользователь может адаптировать параметры под свои предпочтения и условия торговли.
Автоматизация: Возможность настройки оповещений позволяет получать уведомления о сигналах даже вне рабочего времени.
Ограничения индикатора:
Ложные сигналы: В условиях флэтового рынка или сильных трендов RSI может давать много ложных сигналов.
Задержка: Поскольку RSI основан на исторических данных, он может запаздывать при изменении рыночной ситуации.
Необходимость фильтрации: Для повышения точности рекомендуется использовать дополнительные инструменты анализа.
Заключение:
Индикатор "RSI Profit Sniper" является полезным инструментом для трейдеров, которые ищут простой и эффективный способ определения потенциальных точек входа и выхода на основе состояния перекупленности и перепроданности актива. Однако важно помнить, что никакой индикатор не гарантирует 100% точности, поэтому рекомендуется сочетать его использование с другими методами анализа для принятия обоснованных решений.
SOC AI 2.0The SOC AI 2.0 indicator is designed as a tool to assist traders in analyzing market trends and making informed decisions. It incorporates advanced algorithms and methodologies to provide insights based on historical market data.
Important Notes:
Not Financial Advice: The insights and signals generated by this indicator are for informational purposes only. They should not be considered financial, investment, or trading advice.
Risk of Loss: Trading and investing involve significant risk of loss. Users should conduct their own research, consult with a professional advisor, and only trade with funds they can afford to lose.
No Guarantee of Performance: Past performance of the indicator or any market is not indicative of future results. The accuracy of the signals and forecasts cannot be guaranteed.
User Responsibility: The final decision to trade, buy, or sell lies solely with the user. The creators of SOC AI 2.0 are not responsible for any financial losses incurred.
By using this indicator, you acknowledge and accept these terms and agree to trade responsibly. For optimal use, consider combining SOC AI 2.0 with complementary tools such as RSI, Stochastic RSI, and volume indicator .
Happy trading!
EMA Crossover with RSI DivergenceHow It Works:
The 21 EMA crosses over the 55 EMA (bullish signal).
The 21 EMA crosses under the 55 EMA (bearish signal).
RSI Divergence is checked:
Bullish divergence occurs when price forms a higher low, but RSI forms a lower low.
Bearish divergence occurs when price forms a lower high, but RSI forms a higher high.
When both conditions match, a Buy (green arrow) or Sell (red arrow) signal is generated.
Would you like any modifications, such as alerts or additional filters? 🚀
Inside Day & Loss Cut Line機能概要
Inside Dayの検出:
インジケータは「Inside Day」を検出します。これは、現在のバーの高値が前のバーの高値よりも低く、現在のバーの安値が前のバーの安値よりも高い場合に成立します。また、現在のバーの出来高が前のバーの出来高よりも少なく、さらに50期間の移動平均よりも低い場合も条件に含まれます。
マーキング:
Inside Dayが検出されると、チャート上に青い小さな円が表示され、視覚的にその日を示します。
価格の計算:
ユーザーが設定したパーセンテージに基づいて、現在の価格からそのパーセンテージを引いた価格を計算します。この設定は、トレーダーが特定の価格レベルを視覚的に把握するのに役立ちます。
水平線の描画:
最新のプライスバーに対して、計算された価格に水平線を描画します。ユーザーは線の色、スタイル(実線、破線、点線)、および太さをカスタマイズできます。
ユーザー設定
パーセンテージの設定:
percentageInput: ユーザーが設定できるパーセンテージ(デフォルトは3.0%)。この値は、現在の価格から引かれる割合を決定します。
線の色:
lineColorInput: ユーザーが選択できる線の色(デフォルトは赤)。視覚的なカスタマイズが可能です。
線のスタイル:
lineStyleInput: ユーザーが選択できる線のスタイル(実線、破線、点線)。トレーダーの好みに応じて変更できます。
線の太さ:
lineWidthInput: ユーザーが設定できる線の太さ(デフォルトは2、最小1、最大10)。視認性を向上させるために調整できます。
使用方法
このインジケータをチャートに追加することで、トレーダーは市場の動向をより良く理解し、特定のトレードシグナルを視覚的に把握することができます。特に、Inside Dayのパターンを利用したトレーディング戦略に役立つでしょう。
Session TPO Profile - 3 SessionsSession TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Stratégie SRSI + MACD avec Stop-LossCe script Pine Script combine plusieurs indicateurs techniques pour une stratégie de trading automatisée basée sur :
✅ Stoch RSI (SRSI)
✅ MACD
✅ Bandes de Bollinger
✅ ADX (Confirmation de tendance)
✅ EMA & ATR (Filtres et Stops dynamiques)
Jurik Moving Average Strategy//@version=5
indicator("Jurik Moving Average Strategy", overlay=true)
// Jurik Moving Average Function
length = input.int(21, title="JMA Length")
phase = input.float(0.5, title="JMA Phase")
source = close
// Calculate JMA using the built-in function
jma = ta.wma(ta.wma(source, length), length)
// Determine JMA Color and Signals
jma_up = jma > jma
jma_down = jma < jma
jma_color = jma_up ? color.green : color.red
buy_signal = jma_up and not jma_up // Color changed to green
sell_signal = jma_down and not jma_down // Color changed to red
// Plot JMA with color change
plot(jma, color=jma_color, linewidth=2, title="JMA")
// Plot Buy and Sell Signals
plotshape(buy_signal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sell_signal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Alerts
alertcondition(buy_signal, title="Buy Alert", message="Buy Signal: JMA turned green")
alertcondition(sell_signal, title="Sell Alert", message="Sell Signal: JMA turned red")
H1 Engulfing Detectorthis indicator shows you horizontal lines and a box until a new engulfing trend change candle
it is an educational indicator
Bollinger Bands Ovào lệnh khi giá vượt ra khỏi bollinger bands 0.3%.
- TP khi giá quay lại band ~0.3% hoặc đóng nến nhưng ở ngoài band
- SL 0.2%
ADX with WMAThis Pine Script indicator displays the ADX (Average Directional Index) with a WMA (Weighted Moving Average) applied to it:
Inputs:
ADX Length: Period for ADX calculation (default: 14).
WMA Length: Period for the WMA applied on the ADX (default: 9).
What it does:
Calculates ADX to measure trend strength.
Applies a WMA to smooth the ADX line.
Plots:
Red Line: ADX value.
Blue Line: WMA of the ADX.
Dotted Lines at 20 & 40: Trend strength reference levels.
My script//@version=5
strategy("Adaptive Trend Flow Strategy", overlay=true)
// Trend Settings
length = input.int(10, "Main Length", minval=2)
smooth_len = input.int(14, "Smoothing Length", minval=2)
sensitivity = input.float(2.0, "Sensitivity", step=0.1)
// Trend Calculation
calculate_trend_levels() =>
typical = hlc3
fast_ema = ta.ema(typical, length)
slow_ema = ta.ema(typical, length * 2)
basis = (fast_ema + slow_ema) / 2
vol = ta.stdev(typical, length)
smooth_vol = ta.ema(vol, smooth_len)
upper = basis + (smooth_vol * sensitivity)
lower = basis - (smooth_vol * sensitivity)
get_trend_state(upper, lower, basis) =>
var float prev_level = na
var int trend = 0
if na(prev_level)
trend := close > basis ? 1 : -1
prev_level := trend == 1 ? lower : upper
if trend == 1
if close < lower
trend := -1
prev_level := upper
else
prev_level := lower
else
if close > upper
trend := 1
prev_level := lower
else
prev_level := upper
= calculate_trend_levels()
= get_trend_state(upper, lower, basis)
// Trading Logic
longCondition = trend == 1 and trend == -1
shortCondition = trend == -1 and trend == 1
if longCondition
strategy.entry("Long Entry", strategy.long, comment='entry', alert_message='67b868b47553b75e79967d0f')
if shortCondition
strategy.entry("Short Entry", strategy.short)
if trend == -1
strategy.close("Long Entry", comment='exit', alert_message='67b868b47553b75e79967d0f')
if trend == 1
strategy.close("Short Entry")
// Alerts
alertcondition(longCondition, title="Adaptive Trend Flow Long", message="Long Entry Signal")
alertcondition(shortCondition, title="Adaptive Trend Flow Short", message="Short Entry Signal")
mohit super trend//@version=5
indicator("SuperTrend", overlay=true, shorttitle="SuperTrend")
// Inputs
factor = input.int(3, title="Factor", minval=1)
period = input.int(7, title="Period", minval=1)
// Calculate ATR
atr = ta.atr(period)
// Calculate Median Price (HL2)
hl2 = (high + low) / 2
// Basic Bands
basicUpperBand = hl2 + (factor * atr)
basicLowerBand = hl2 - (factor * atr)
// Initialize SuperTrend
var float superTrend = na
var int trend = na
// Final Bands
finalUpperBand = 0.0
finalLowerBand = 0.0
// Update Bands and SuperTrend
if close <= basicUpperBand
finalUpperBand := basicUpperBand
else
finalUpperBand := basicUpperBand
if close >= basicLowerBand
finalLowerBand := basicLowerBand
else
finalLowerBand := basicLowerBand
// Determine Trend Direction
if na(superTrend)
superTrend := close > basicUpperBand ? basicLowerBand : basicUpperBand
trend := close > basicUpperBand ? 1 : -1
else
if (trend == -1 and close > finalUpperBand)
superTrend := basicLowerBand
trend := 1
else if (trend == 1 and close < finalLowerBand)
superTrend := basicUpperBand
trend := -1
else
superTrend := trend == 1 ? finalLowerBand : finalUpperBand
// Plot SuperTrend
plot(superTrend, color=trend == 1 ? color.green : color.red, linewidth=2)
Estrategia MA 20/50 Solo Long - Cierre en Cruce BajistaOpens long positions when the MA 20 crosses above MA 50.
✅ Stops loss at 2% below entry price.
✅ Keeps the position open as long as MA 20 is above MA 50.
✅ Closes the position (take profit) when MA 20 crosses below MA 50.
✅ Allows reentry if MA 20 crosses back above MA 50.
✅ Allows reentry if the price increases 5% above the last exit price.
RSI & Volume Filter hejazi//@version=5
indicator("RSI & Volume Filter", overlay=true)
// تنظیمات
length = 14 // دوره RSI
rsiValue = ta.rsi(close, length)
// محدوده مورد نظر
rsiCondition = rsiValue > 50 and rsiValue < 70
volumeCondition = volume > 2000000 // حجم بیشتر از ۲ میلیون
// ترکیب دو شرط
finalCondition = rsiCondition and volumeCondition
// نمایش سیگنال روی چارت
plotshape(finalCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="RSI & Volume Signal")
// نمایش مقدار RSI و حجم در لیبل (فقط اگر شرط برقرار باشد)
var label myLabel = na
if finalCondition
myLabel := label.new(x=time, y=high, text="RSI: " + str.tostring(rsiValue, "#.0") + " Vol: " + str.tostring(volume), color=color.blue, textcolor=color.white, size=size.small)
Breakout and Divergence Detector//@version=5
indicator("Breakout and Divergence Detector", overlay=true)
// Input settings
length = input(14, title="RSI Length")
volThreshold = input(1.5, title="Volume Multiplier")
// RSI Calculation
rsiValue = ta.rsi(close, length)
// Price Action Breakout
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
breakoutUp = ta.crossover(close, highestHigh)
breakoutDown = ta.crossunder(close, lowestLow)
// Volume Confirmation
volMA = ta.sma(volume, length)
highVol = volume > (volMA * volThreshold)
// Divergence Detection
rsiHigh = ta.highest(rsiValue, length)
rsiLow = ta.lowest(rsiValue, length)
divBearish = high > ta.highest(high, length) and rsiValue < rsiHigh
divBullish = low < ta.lowest(low, length) and rsiValue > rsiLow
// Plot signals
plotshape(breakoutUp and highVol, location=location.abovebar, color=color.green, style=shape.labelup, title="Breakout Up")
plotshape(breakoutDown and highVol, location=location.belowbar, color=color.red, style=shape.labeldown, title="Breakout Down")
plotshape(divBearish, location=location.abovebar, color=color.orange, style=shape.labeldown, title="Bearish Divergence")
plotshape(divBullish, location=location.belowbar, color=color.blue, style=shape.labelup, title="Bullish Divergence")
US30-5min-Low RiskRisk 0.5% per position
SL @ 50 MA
T SL @ 1/2 way to TP
Uses KST and RSI for long/short signal
RSI Required for Bullish => 55
RSI Required for Bearish =< 45
21/50 MA verifying trend
Adjustable settings used in 90 day BT
Margin for long 52%
Margin for short 41%
Pyramiding 3
Would love some feedback and to convert to EA for use with MatchTrade?