Price Action + Support/Resistance with LabelsEntry Conditions:
Long Entry (BUY): Based on the bullish engulfing pattern and price being above the resistance level.
Short Entry (SELL): For demonstration, the short entry condition is set as price being below the support level and a bullish candle in the previous bar. You can modify this logic for your own use case.
Stop Loss and Take Profit:
Stoploss is plotted at the calculated stop loss level.
Target is plotted at the calculated take profit level.
Labels:
For long trades, labels are added with "BUY", "STOPLOSS", and "TARGET".
For short trades (if enabled), labels are added with "SELL", "STOPLOSS", and "TARGET".
Labels are placed using label.new at specific locations on the chart (above or below bars).
Alert Conditions:
Alerts are created for both long and short entry signals so you can get notified when the entry conditions are met.
How it works:
BUY label will appear below the bar when a long entry condition is met.
SELL label will appear above the bar when a short entry condition is met.
STOPLOSS and TARGET labels will appear at their respective levels when an entry signal is triggered.
The labels will appear on the chart to give you a clear visual cue of the entry, stop loss, and take profit levels.
How to Use:
Copy the script into your Pine Editor on TradingView and apply it to your chart.
Observe the labels that show up on the chart:
"BUY" will appear below the bar when long conditions are met.
"SELL" will appear above the bar when short conditions are met (if using short logic).
"STOPLOSS" will be plotted at the stop loss level.
"TARGET" will be plotted at the take profit level.
Optional Customization:
You can modify the short entry condition based on your preferred method.
You can adjust the length for the support/resistance calculation, the stopLossRR, and other parameters to fine-tune the strategy for Nifty 50 or any other asset.
Let me know if you have any further questions or need additional modifications!
Formacje wykresów
Bullish/Bearish Reversal ArrowsThe Bullish/Bearish Reversal Arrows Indicator is designed to identify potential reversal points in the market based on two key technical analysis tools: the MACD (Moving Average Convergence Divergence) and the RSI (Relative Strength Index).
Bullish Reversal:
A green upward arrow appears below the price bar when the MACD line crosses above the signal line (bullish crossover) and the RSI is in the oversold region (below the specified RSI oversold level).
This indicates a potential shift from a bearish trend to a bullish trend, signaling a possible buy opportunity.
Bearish Reversal:
A red downward arrow appears above the price bar when the MACD line crosses below the signal line (bearish crossunder) and the RSI is in the overbought region (above the specified RSI overbought level).
This indicates a potential shift from a bullish trend to a bearish trend, signaling a possible sell opportunity.
Features:
Combines two popular indicators (MACD and RSI) to increase accuracy.
Plots clear green upward arrows for bullish reversals and red downward arrows for bearish reversals directly on the chart.
Customizable inputs:
Adjust the MACD fast, slow, and signal lengths.
Set the RSI length and thresholds for oversold and overbought conditions.
Use Case:
This indicator is suitable for traders looking for:
Visual cues for potential market reversals.
Confirmation of oversold and overbought conditions using RSI.
An additional layer of decision-making for entry and exit points.
Note: As with all indicators, this tool should not be used in isolation. Combine it with other analysis techniques and risk management strategies for the best results.
Trend Retest Strategy1. The Two Lines: Support & Resistance Levels
Red Line (recentHigh):
Plots the highest price level over the last 7 days (42 bars on the 4-hour timeframe). This acts as a dynamic resistance level.
Example: If price approaches this line and reverses, it signals a potential resistance retest.
Green Line (recentLow):
Plots the lowest price level over the last 7 days (42 bars on 4H). This acts as a dynamic support level.
Example: If price bounces off this line, it signals a support retest.
These lines update automatically as new price data forms.
Why 42 bars?
4-hour chart = 6 bars per day (24 hours / 4 = 6).
6 bars/day × 7 days = 42 bars.
2. Entry Signals (Arrows)
The arrows appear when all your strategy’s conditions align:
For Long Entries (▲ Green Triangle Below Bar):
Daily Trend: Daily RSI ≥ 50 (bullish).
MA Crossover: 20-period SMA crosses above 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≥ 50 and rising (bullish momentum).
Retest: Price is within 0.5% of either the recentHigh (resistance) or recentLow (support).
Volume: Current volume > 20-period average volume.
Candle Confirmation: A bullish candle closes above the open.
For Short Entries (▼ Red Triangle Above Bar):
Daily Trend: Daily RSI < 50 (bearish).
MA Crossover: 20-period SMA crosses below 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≤ 50 and falling (bearish momentum).
Retest: Price is near recentHigh or recentLow (same 0.5% threshold).
Volume: Volume exceeds its 20-period average.
Candle Confirmation: A bearish candle closes below the open.
3. How It All Fits Together
Step 1: The indicator checks the daily RSI to confirm the broader trend.
Step 2: On the 4H chart, it tracks the moving averages (MA20 and MA50) and RSI for momentum.
Step 3: When price retests the dynamic support/resistance lines (red/green), it waits for volume and candle confirmation to validate the retest.
Step 4: If all rules align, an arrow appears (long or short).
Example Scenario (Long Entry):
Daily Chart: RSI = 60 (bullish).
4H Chart:
MA20 crosses above MA50.
RSI = 55 and rising.
Price dips to the green support line (within 0.5%).
Volume spikes above average.
A bullish candle closes higher.
Result: A green ▲ appears below the bar.
Simple Swing Trader by CryptoMitchX How to Use the Simple Swing Trader by CryptoMitchX
How to Use:
The Simple Swing Trader indicator combines multiple tools to help you identify potential trading opportunities:
Moving Averages (MA 50 & MA 100): These are plotted as yellow and purple lines on the chart. Use these to determine trend direction and crossovers for potential trend changes.
Heiken Ashi Bars: Displayed with volume-based coloring for smoother visualization of trends. Look for changes in bar colors to identify potential shifts in momentum.
SuperTrend Buy/Sell Signals: Labels are placed on the chart to indicate "BUY" or "SELL" opportunities based on the SuperTrend calculation. Green labels signify potential buy zones, and red labels signify potential sell zones.
Volume Histogram: Shown in a separate pane, this provides an adjustable view of market activity. Use the "Volume Histogram Base Multiplier" input to customize its display.
Customization: All elements are editable for your trading preferences. Adjust colors, timeframes, and parameters as needed.
Features:
Multi-Tool Integration:
Combines trend-following, momentum-based, and volume-focused tools in one indicator.
SuperTrend Signals: Generates clear "BUY" and "SELL" labels to assist decision-making.
Heiken Ashi Visualization: Reduces noise and smoothens price data for better clarity.
Customizable Settings: Fully adjustable parameters to suit different trading styles and assets.
Volume Insights: An adaptable histogram that reflects market participation and activity.
Suggested Modifications
Alert Integration: Add alert conditions for BUY and SELL signals to receive real-time notifications.
Dynamic Color Customization: Enable dynamic coloring based on additional indicators, like RSI or MACD.
Optimization for Specific Assets: Fine-tune ATR and factor settings to align with the behavior of specific markets (e.g., crypto, forex, stocks).
Additional Indicators: Consider incorporating a momentum oscillator to enhance confirmation of trade setups.
This indicator is designed to work on any timeframe and asset. Experiment with different settings to optimize it for your trading strategy.
The Code
//@version=6
indicator("Simple Swing Trader by CryptoMitchX", overlay=true)
// Define moving averages
length50 = 50
length100 = 100
ma50 = ta.sma(close, length50)
ma100 = ta.sma(close, length100)
// Plot moving averages with specified colors and thickness
plot(ma50, title="MA 50", color=color.new(color.yellow, 0), linewidth=2)
plot(ma100, title="MA 100", color=color.new(color.purple, 0), linewidth=8)
// Moving Average Crosses
var float last_ma50 = na
var float last_ma100 = na
if (not na(ma50) and not na(ma100))
last_ma50 := ma50
last_ma100 := ma100
// Heiken Ashi style bars with volume-based coloring
ha_open = request.security(syminfo.tickerid, timeframe.period, math.avg(close , open ))
ha_close = math.avg(close, open, high, low)
ha_high = math.max(high, ha_open, ha_close)
ha_low = math.min(low, ha_open, ha_close)
var float last_volume = na
current_volume = volume
// Using plot for bar color indication without specifying color
plot(ha_close, title="HA Close", color=color.new(color.blue, 0), display=display.all, editable=true)
last_volume := current_volume
// Super Trend calculations for labels (but not plotting the line)
atrPeriod = 10
factor = 3.0
src = close
atr = ta.atr(atrPeriod)
upperband = src - (factor * atr)
lowerband = src + (factor * atr)
supertrend = na(upperband) ? na : upperband
supertrend := close > nz(supertrend ) ? math.max(upperband, nz(supertrend )) : math.min(lowerband, nz(supertrend ))
// Buy/Sell signals for SuperTrend with color (labels without plotting the line)
if (supertrend < nz(supertrend ))
label.new(bar_index, low, "BUY", color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.small)
if (supertrend > nz(supertrend ))
label.new(bar_index, high, "SELL", color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.small)
// Define histbase as an input
histbase_value = input.float(0.1, title="Volume Histogram Base Multiplier", minval=0.01, maxval=1, step=0.01)
// Display volume in a separate pane with modifications
plot(volume * histbase_value, title="Volume", color=color.new(color.white, 0), style=plot.style_histogram, linewidth=3, histbase=0, display=display.all)
Multi-Stock Cross SignalsBased on the high probability of future trading, use premium and discount to increase accuracy.
New Higher High - Dynamic TimeframeThis indicator allows you to see when the chart is making higher highs. Hope you enjoy and find some value from this indicator.
candle close alarmA simple Alarm to each candle close, helpfull to keep your eye in the right moment to open a position.
pinstraticoestrategia de compra y venta
................
.............
..........
........
.....
...
..
Fisher Indicator with Buy/Sell Signals by@ kawalskyfisher indiktorü long short indikatörüdür.
sadece profesyoneller için
EMA 5 and SMA 10 Crossover with RSI by santosh kadamExplanation of the Script:
Indicators:
EMA 5 and SMA 10: These are the two moving averages used to determine the trend direction.
Buy signal is triggered when EMA 5 crosses above SMA 10.
Sell signal is triggered when EMA 5 crosses below SMA 10.
RSI 14: This is used to filter buy and sell signals.
Buy trades are allowed only if RSI 14 is above 60.
Sell trades are allowed only if RSI 14 is below 50.
Buy Conditions:
The strategy waits for the EMA crossover (EMA 5 crosses above SMA 10).
The strategy checks if RSI 14 is above 60 for confirmation.
If the price is below 60 on RSI 14 at the time of crossover, the strategy will wait until the price crosses above 60 on RSI 14 to initiate the buy.
Sell Conditions:
The strategy waits for the EMA crossover (EMA 5 crosses below SMA 10).
The strategy checks if RSI 14 is below 50 for confirmation.
If the price is above 50 on RSI 14 at the time of crossover, the strategy will wait until the price crosses below 50 on RSI 14 to initiate the sell.
Exit Conditions:
The Buy position is closed if the EMA crossover reverses (EMA 5 crosses below SMA 10) or RSI 14 drops below 50.
The Sell position is closed if the EMA crossover reverses (EMA 5 crosses above SMA 10) or RSI 14 rises above 60.
Plotting:
The script plots the EMA 5, SMA 10, and RSI 14 on the chart for easy visualization.
Horizontal lines are drawn at RSI 60 and RSI 50 levels for reference.
Key Features:
Price Confirmation: The strategy ensures that buy trades are only initiated if RSI 14 crosses above 60, and sell trades are only initiated if RSI 14 crosses below 50. Additionally, price action must cross these RSI levels to confirm the trade.
Reversal Exits: Positions are closed when the EMA crossover or RSI condition reverses.
Backtesting:
Paste this script into the Pine Editor on TradingView to test it with historical data.
You can adjust the EMA, SMA, and RSI lengths based on your preferences.
Let me know if you need further adjustments or clarification!
EMA and SMA Crossover with RSI14 FilteringExplanation of the Script:
Indicators:
EMA 5 and SMA 10: These are the two moving averages used to determine the trend direction.
Buy signal is triggered when EMA 5 crosses above SMA 10.
Sell signal is triggered when EMA 5 crosses below SMA 10.
RSI 14: This is used to filter buy and sell signals.
Buy trades are allowed only if RSI 14 is above 60.
Sell trades are allowed only if RSI 14 is below 50.
Buy Conditions:
The strategy waits for the EMA crossover (EMA 5 crosses above SMA 10).
The strategy checks if RSI 14 is above 60 for confirmation.
If the price is below 60 on RSI 14 at the time of crossover, the strategy will wait until the price crosses above 60 on RSI 14 to initiate the buy.
Sell Conditions:
The strategy waits for the EMA crossover (EMA 5 crosses below SMA 10).
The strategy checks if RSI 14 is below 50 for confirmation.
If the price is above 50 on RSI 14 at the time of crossover, the strategy will wait until the price crosses below 50 on RSI 14 to initiate the sell.
Exit Conditions:
The Buy position is closed if the EMA crossover reverses (EMA 5 crosses below SMA 10) or RSI 14 drops below 50.
The Sell position is closed if the EMA crossover reverses (EMA 5 crosses above SMA 10) or RSI 14 rises above 60.
Plotting:
The script plots the EMA 5, SMA 10, and RSI 14 on the chart for easy visualization.
Horizontal lines are drawn at RSI 60 and RSI 50 levels for reference.
Key Features:
Price Confirmation: The strategy ensures that buy trades are only initiated if RSI 14 crosses above 60, and sell trades are only initiated if RSI 14 crosses below 50. Additionally, price action must cross these RSI levels to confirm the trade.
Reversal Exits: Positions are closed when the EMA crossover or RSI condition reverses.
Backtesting:
Paste this script into the Pine Editor on TradingView to test it with historical data.
You can adjust the EMA, SMA, and RSI lengths based on your preferences.
Let me know if you need further adjustments or clarification!
Demo GPT - Bollinger Bands StrategyDemo GPT - Bollinger Bands Strategy, this strategy is going to help the people in identifying buy and sell signals
YAMIL//@version=6
indicator(title = 'MACD+RSI+KONCORDE YAMIL', shorttitle = 'MAC+RSI+KON YAMIL')
//KONCORDE
showkoncorde = input(true, title = 'Koncorde')
deltaKon = input(-700, title = 'KONCORDE - Desfase')
escalaKoncorde = input(2, 'Koncorde - Escala')
calc_mfi(length) =>
100.0 - 100.0 / (1.0 + math.sum(volume * (ta.change(hlc3) <= 0 ? 0 : hlc3), length) / math.sum(volume * (ta.change(hlc3) >= 0 ? 0 : hlc3), length))
tprice = ohlc4
lengthEMA = 255
m = 15
pvim = ta.ema(ta.pvi, m)
pvimax = ta.highest(pvim, 90)
pvimin = ta.lowest(pvim, 90)
oscp = (ta.pvi - pvim) * 100 / (pvimax - pvimin)
nvim = ta.ema(ta.nvi, m)
nvimax = ta.highest(nvim, 90)
nvimin = ta.lowest(nvim, 90)
azul = (ta.nvi - nvim) * 100 / (nvimax - nvimin)
xmf = calc_mfi(14)
mult = 2.0
basis = ta.sma(tprice, 25)
dev = mult * ta.stdev(tprice, 25)
upper = basis + dev
lower = basis - dev
OB1 = (upper + lower) / 2.0
OB2 = upper - lower
BollOsc = (tprice - OB1) / OB2 * 100
xrsi = ta.rsi(tprice, 14)
calc_stoch(src, length, smoothFastD) =>
ta.sma(100 * (src - ta.lowest(low, length)) / (ta.highest(high, length) - ta.lowest(low, length)), smoothFastD)
stoc = calc_stoch(tprice, 21, 3)
marron = (xrsi + xmf + BollOsc + stoc / 3) / 2
verde = marron + oscp
media = ta.ema(marron, 21) //
vl = plot(showkoncorde ? verde * escalaKoncorde + deltaKon : na, color = color.new(#25BC00, 0), style = plot.style_columns, histbase = deltaKon, linewidth = 4, title = 'Manos Chicas')
ml = plot(showkoncorde ? marron * escalaKoncorde + deltaKon : na, color = color.new(#FFC34C, 0), style = plot.style_columns, histbase = deltaKon, linewidth = 4, title = 'Koncorde - marron')
al = plot(showkoncorde ? azul * escalaKoncorde + deltaKon : na, color = color.new(#6C3AFF, 0), style = plot.style_columns, histbase = deltaKon, linewidth = 4, title = 'Manos Grandes')
plot(showkoncorde ? marron * escalaKoncorde + deltaKon : na, color = color.new(#000000, 0), linewidth = 1, title = 'Koncorde - lmarron')
plot(showkoncorde ? media * escalaKoncorde + deltaKon : na, color = color.new(#FF0000, 0), linewidth = 1, title = 'Koncorde - media')
hline(-700, color = color.black, linestyle = hline.style_solid)
// MACD
// Getting inputs
showmacd = input(true, title = 'MADC')
deltaMacd = input(700, title = 'MACD - Desfase')
multMacd = input(5, title = 'MACD - Escala')
fast_length = input(title = 'MACD - Fast Length', defval = 12)
slow_length = input(title = 'MACD - Slow Length', defval = 26)
src = input(title = 'MACD - Source', defval = close)
signal_length = input.int(title = 'MACD - Signal Smoothing', minval = 1, maxval = 50, defval = 9)
sma_source = input(title = 'MACD - Simple MA(Oscillator)', defval = false)
sma_signal = input(title = 'MACD - Simple MA(Signal Line)', defval = false)
// Plot colors
col_grow_above = #2AFF00
col_grow_below = #FF0000
col_fall_above = #168500
col_fall_below = #980000
col_macd = #0042FF
col_signal = #FFA200
// Calculating
// = macd(close, fastLength, slowLength, signalLength)
fast_ma = sma_source ? ta.sma(src, fast_length) : ta.ema(src, fast_length)
slow_ma = sma_source ? ta.sma(src, slow_length) : ta.ema(src, slow_length)
macd = (fast_ma - slow_ma) / slow_ma * 1000 * multMacd
signal = sma_signal ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length)
hist = macd - signal
plot(showmacd ? bool(hist) ? hist + deltaMacd : na : na, title = 'MACD - Histogram', style = plot.style_columns, color = hist >= 0 ? hist < hist ? col_grow_above : col_fall_above : hist < hist ? col_grow_below : col_fall_below, histbase = deltaMacd)
plot(showmacd ? bool(macd) ? macd + deltaMacd : na : na, title = 'MACD', color = color.new(col_macd, 0), linewidth = 1)
plot(showmacd ? bool(signal) ? signal + deltaMacd : na : na, title = 'MACD - Signal', color = color.new(col_signal, 0), linewidth = 1)
hline(700, color = color.black, linestyle = hline.style_solid, linewidth = 1)
// STOCH (14,3,1)
showrsi = input(true, title = 'RSI - STOCH')
deltaRSI = input(0, title = 'RSI/STOCH - Desfase')
multip = input(5, title = 'RSI/STOCH - Escala')
deltaSTOCH = deltaRSI - 50 * multip / 2
length = input.int(14, minval = 1, title = 'STOCH - Periodo')
smoothK = input.int(1, minval = 1, title = 'STOCH - Smooth K')
smoothD = input.int(3, minval = 1, title = 'STOCH - Smooth D')
k = ta.sma(ta.stoch(close, high, low, length), smoothK)
d = ta.sma(k, smoothD)
// RSI
bandm = hline(showrsi ? 0 + deltaRSI : na, color = color.black, linewidth = 1, linestyle = hline.style_solid)
band0 = hline(showrsi ? -20 * multip + deltaRSI : na, color = color.new(#59FF00, 0), linewidth = 1, linestyle = hline.style_dotted)
band1 = hline(showrsi ? 20 * multip + deltaRSI : na, color = color.new(#FF0000, 0), linewidth = 1, linestyle = hline.style_dotted)
fill(band1, band0, color = color.new(#FFFF00, 75), title = 'Background')
lengthRSI = input.int(14, minval = 1, title = 'RSI - Periodo')
RSIMain = ta.rsi(close, lengthRSI) - 50
rsiPlot = plot(showrsi ? RSIMain * multip + deltaRSI : na, color = color.new(#000000, 0), linewidth = 1)
// Media móvil en RSI
lengthMA = input.int(21, minval = 1, title = 'RSI - Media Móvil Ponderada Periodo')
RSIMA = ta.wma(RSIMain * multip + deltaRSI, lengthMA)
plot(showrsi ? RSIMA : na, color = color.new(#78FF00, 0), linewidth = 1, title = 'RSI - Media Móvil')
// STOCH (14,3,1) en RSI
showstoch = input(true, title = 'STOCH - RSI')
deltaSTOCH_RSI = input(100, title = 'STOCH - RSI Desfase')
kRSI = ta.sma(ta.stoch(RSIMain, RSIMain, RSIMain, length), smoothK)
dRSI = ta.sma(kRSI, smoothD)
plot(false ? bool(kRSI) ? kRSI + deltaSTOCH_RSI : na : na, title = 'STOCH - RSI K', color = color.new(#0000FF, 0), linewidth = 1)
plot(false ? bool(dRSI) ? dRSI + deltaSTOCH_RSI : na : na, title = 'STOCH - RSI D', color = color.new(#FFA500, 0), linewidth = 1)
Financial and Pricing ReferencesIt gathers essential data from TradingView, processes and filters it, and presents it in a structured format on the screen. Additionally, it highlights Pivot, Support, and Resistance levels.
Using the Graham Number, Dividend Ratio, and market analyst data, it calculates the fair value and displays the maximum price to pay directly on the chart.
Condition:
The time frame must be set to 'Daily'
Volume, Neckline, Min/Max Bars, Risk/Reward (No Negative Index)Script 2: “Volume, Neckline, Min/Max Bars, and Risk/Reward Demo”
Purpose: Provide a single script that deals with Volume Divergence detection, a Neckline line, a Min/Max bar concept, and an example of Risk/Reward lines.
How It’s Organized:
Each feature has a separate boolean toggle (showVolumeDiv, showNeckline, etc.).
Each feature has its own input parameters (volLookback, neckLookback, lsMin/lsMax, riskReward).
The script is purely an indicator: no actual trades, just lines and shapes for demonstration.
Financial and Pricing ReferencesIt gathers essential data from TradingView, processes and filters it, and presents it in a structured format on the screen. Additionally, it highlights Pivot, Support, and Resistance levels.
Using the Graham Number, Dividend Ratio, and market analyst data, it calculates the fair value and displays the maximum price to pay directly on the chart.
XAU/USD Strategy: Candlestick Patterns This script is a custom trading strategy that combines several technical analysis indicators and candlestick patterns to generate buy and sell signals for XAU/USD (Gold).
This script creates a trading strategy based on a combination of the following:
- RSI: Identifies overbought/oversold conditions.
- Supertrend: Helps identify the overall trend (bullish or bearish).
- Candlestick Patterns: Bullish and bearish engulfing patterns as potential reversal signals.
- Market Structure (SMC): Identifies swing highs and lows to assess price action.
- EMA: Although calculated, they are not directly used in the signals but could assist in identifying trend direction.
When a buy or sell signal occurs, labels are drawn on the chart, with lines connecting the signals to the relevant candlestick, providing visual cues for traders.
6 Medias Móviles con RSI, Dólar MEP y Tendencia Tendencia Mayoritaria:
La variable trend se inicializa con el valor "Neutral", de forma explícita.
Usé la palabra clave var para asegurarnos de que el valor de la variable trend se mantenga a través de las barras.
Manejo del na:
Se ha eliminado el uso de na de manera incorrecta y se ha utilizado una forma correcta de asignación, con valores explícitos para variables de tipo string.
Valor del label:
Se ha cambiado la posición del label a una forma más correcta de manejarlo, usando el índice de la barra.
Tendencia:
La variable trend ahora se evalúa correctamente sin errores.
Range, Initiation, Mitigation & ContinuationHere's the initial version of your TradingView indicator in Pine Script. It detects price ranges, breakouts, mitigations, and trend continuation, coloring the range boxes accordingly
High of Specific Date//@version=5
indicator("High of Specific Date", overlay=true)
// Input for the specific date
input_date = input.time(timestamp("2023-10-01"), title="Specific Date", confirm=true)
// Check if the current bar's date matches the input date
is_target_date = (time == input_date)
// Get the high of the target candle
var float target_high = na
if is_target_date
target_high := high
// Draw a horizontal line at the high of the target candle
line.new(x1=bar_index, y1=target_high, x2=bar_index + 1, y2=target_high, color=color.red, width=2, extend=extend.right)
// Optional: Label to show the high value
if not na(target_high)
label.new(x=bar_index, y=target_high, text=str.tostring(target_high), color=color.white, textcolor=color.black, style=label.style_label_down, size=size.small)
CRYPTO Wall Street HoursAdjust to your Time.
Use with 8h Chart.
Shows only bars of WALLSTREET hours.