XRG NF Session IntervalsKey features:
Custom interval length (e.g., 90m, 60m, 30m) via input
London time zone aware, including automatic daylight savings adjustments
Highlights session from 04:00 to 21:00 London time
Alternates between two background colours to visually separate each time block
Works on all intraday timeframes
More info:
There are few similar indicators which highlight sessions but don't provide specific interval times, every n number of minuets. This works in the N3, N4 and currently developing NF strategies across the Crypto and CFD market. These cycles (specifically for the 90m default )assist quarterly theory traders scalping below the 2m timeframe look for multiple trades within the day without having excessive lines, labels and distractions on the chart keeping them focused when quick moves happen on the charts.
From the creator:
This is likely the last session indicator I will make, It highlights every n minuets from 4am till 9pm London time. Within the indicator settings you can customise the colours, this allows you to personalise it and make it yours: having a good charting aesthetic you change from time to time can inspire creativity.
I personally use 60m and 90m cycles, as my strategy and setups revolve around these times, the indicator is tailored to me and that is why it is set to London times and my personal trading times/ colours.
I trade NF on the NAS100, as this strategy is still under development I will only comment on the results of the N4 strategy which I traded for 8 months. Using the 90m cycles on the 1m timeframe I consistently achieved a win rate above 70% without a single losing week (I had a few losing days in April when I did not understand the implementations of monthly quarters in the strategy ), I averaged 7r taking roughly 5 trades a day. Compared to the claimed 85% win rate, average of 8r and 10 trades a day I was close to the optimal results made by the strategy creator. I took 612 trades using N4 marking out every session and using unhelpful scripts with to much complexity.
XR the G, billionaire loading...
Indicadores e estratégias
Volume Share
It represents the ratio of the trading volume of several major exchanges.
If abnormal transactions occur on a particular exchange, it can be intuitively detected.
The list of exchanges can be changed freely,
It is also possible to set whether to reflect it in the total amount as a reference.
It would be better to use it to reduce uncertain variables for healthy trading rather than unscientific signals.
Whale Activity[nakano]#### **Title**
Whale Activity
#### **Summary**
This indicator visualizes the micro-level power dynamics occurring inside each candlestick. It analyzes the volume of a user-defined lower timeframe (e.g., 1-second) within each bar of the main chart (e.g., 5-minute) and separately plots the total "buying pressure" (bullish volume) and "selling pressure" (bearish volume) that exceeded a significant volume threshold.
It's a tool designed to help you trace the footprints of "whales" (large-scale investors) that are often hidden in standard volume bars.
#### **Key Features**
* **Bi-directional Volume Bars:**
* **Upward Green Bars:** Represent the sum of volume from bullish (up) lower-timeframe candles that exceeded the volume threshold, signifying buying pressure.
* **Downward Red Bars:** Represent the sum of volume from bearish (down) lower-timeframe candles that exceeded the threshold, signifying selling pressure.
* **Complete Customization:**
* **Symbol to Analyze:** Freely select any instrument from any market (Crypto, Stocks, Forex, etc.).
* **Analysis Timeframe (Lower):** Choose the granularity of your analysis (1S, 5S, 10S, 1M, etc.) from a dropdown menu.
* **Volume Threshold (Lower TF):** Set a minimum volume to filter out market noise and focus only on significant trades.
#### **How to Use & Interpretation Tips**
* **See Through "Deceptive Volume":**
If a 5-minute candle has high total volume, but this indicator shows small green and red bars, it suggests the volume was comprised of many insignificant trades with no clear intent from large players ("whales").
* **Identify Dominant Pressure:**
Conversely, a large, protruding green bar with a small red bar indicates strong, persistent buying pressure and potential accumulation. The same applies to selling pressure.
* **Threshold Adjustment is Key:**
The "Volume Threshold" is critical and varies greatly between assets. A value of `1.0` might be suitable for BTC, while a stock like AAPL might require `100000` (shares). Adjust this value to fit the instrument you are analyzing to unlock the full potential of this tool.
#### **Disclaimer**
* Using this indicator on high chart timeframes (e.g., 1H, 1D) requires fetching a very large amount of data from the lower timeframe, which may lead to performance issues or script errors. It is recommended for use on intraday timeframes (e.g., 1M, 5M, 15M).
* Always ensure the selected "Analysis Timeframe (Lower)" is shorter than or equal to your main chart's timeframe.
---
#### **タイトル**
Whale Activity
#### **概要 (Summary)**
このインジケーターは、ローソク足の内部で起きている微細な力関係を可視化します。指定した時間足(例:5分足)の中に含まれる、さらに短い時間足(例:1秒足)の出来高を分析し、閾値を超えた「買い圧力(陽線出来高)」と「売り圧力(陰線出来高)」をそれぞれ合計して、上下のバーで表示します。
通常の出来高バーでは見えない「クジラ(大口投資家)」の動きの痕跡を探るためのツールです。
#### **主な機能 (Key Features)**
* **上下の出来高バー:**
* **緑のバー(上向き):** 閾値を超えた陽線(買い)の出来高の合計値を表します。
* **赤のバー(下向き):** 閾値を超えた陰線(売り)の出来高の合計値を表します。
* **完全なカスタマイズ性:**
* **分析する銘柄:** 暗号資産、株式、FXなど、あらゆる銘柄を自由に選択して分析できます。
* **分析する時間足 (下位):** 1秒、5秒、10秒など、分析の粒度をドロップダウンから選択できます。
* **出来高の閾値 (下位TF):** 市場のノイズを除去し、「意味のある」と判断する出来高の基準値を自由に設定できます。
#### **使い方・分析のヒント (How to Use & Interpretation Tips)**
* **「見せかけの出来高」を見破る:**
例えば、5分足の出来高が大きくても、このインジケーターのバーが両方とも小さい場合、それは閾値以下の小さな取引の集合であり、大口の明確な意図はないかもしれません。
* **優勢な力の特定:**
逆に、緑のバーだけが突出している場合、誰かが継続的に買い集めている強いシグナルと解釈できます。売りも同様です。
* **閾値の調整が鍵:**
「出来高の閾値」は、分析する銘柄や時間帯によって大きく異なります。BTCなら`1`、AAPL株なら`100000`のように、適切な値に調整することで、初めてこのツールは真価を発揮します。
#### **注意点 (Disclaimer)**
* チャートの時間足を長くする(例: 1時間足、日足)と、計算するデータ量が膨大になり、パフォーマンスが低下したり、エラーが発生する可能性があります。分足での使用を推奨します。
* 「分析する時間足 (下位)」は、必ずチャート本体の時間足よりも短いものを選択してください。
Renko Blocks (Auto Box Size + Advanced Options)
Renko Blocks indicator with auto box sizing and display options:
Box Size Methods:
Traditional (manual)
ATR-based
% of Price
Range-Based
Optional: Adaptive adjustment based on volatility
Display Options:
Chart label
Data window
Enhanced/Simple table with stats (LTP %, trend direction, brick strength, adaptive factor)
Custom table positions
Renko Logic:
Plots real-time Renko blocks on standard price charts
Tracks direction and consecutive bricks
Alerts on trend change
Visual Customization:
Bull/Bear block colors
Wick and border coloring
RED-E Fakeout Prevention Tool 🔺 RED-E Fakeout Prevention Tool – Volume-Based Confirmation Filter
Overview
The RED-E Fakeout Prevention Tool is designed to filter out unreliable price action by validating moves based on volume strength. It helps traders avoid fakeouts—false breakouts or breakdowns—by requiring that volume meets specific criteria before considering a move legitimate.
Key Settings & How It Works
🔊 Volume Threshold (8,900,000)
This sets a fixed minimum volume requirement. If a candle’s volume is below this threshold, it’s considered too weak to confirm a move.
📈 Use Relative Volume (Enabled)
When enabled, the tool compares current volume against the average volume over a specified period rather than relying solely on raw volume. This makes the tool adaptable across assets with different liquidity levels.
📊 Relative % (100%)
This defines the multiplier for relative volume. A 100% setting means volume must be at least equal to the average to trigger a confirmation. For example, if the average volume is 5 million, the current candle must also exceed 5 million.
⏱️ Periods for Avg (20)
This sets the number of previous candles used to calculate the average volume. A 20-period average ensures that only meaningful deviations from recent volume norms trigger signals.
Use Case
Traders can use this tool in conjunction with price patterns, breakouts, or trend-based strategies to confirm the validity of price moves. By focusing only on high-volume moves, the tool reduces the risk of acting on low-volume traps or fake signals
Open Range ToolOpen Range Tool
You can set which time frame you want to use for the opening interval setting and you can set your own delay time.
Also supports US and London markets
Recent Internal Bar StrengthThis indicator is designed to assist price action traders by highlighting the Internal Bar Strength (IBS) of recent bars, offering a quantitative measure of each bar’s closing position within its own high–low range.
IBS is computed by dividing the difference between the bar’s closing price and its low by the total price range of that bar (i.e., the difference between its high and low). The resulting value lies between 0 and 1: the closer the closing price is to the high, the nearer the IBS approaches 1; conversely, the closer it is to the low, the nearer the IBS approaches 0. This metric may be interpreted as an indicator of directional bias within the bar itself, indirectly reflecting the strength or weakness of short-term market momentum.
In implementation, the IBS value is expressed as a percentage and visually encoded according to preset thresholds. Specifically, bullish bars with an IBS exceeding the upper threshold (default: 69) are rendered in blue-green, while bearish bars with an IBS falling below the lower threshold (default: 31) are rendered in orange. All other bars are displayed in a neutral gray. This visual scheme allows traders to quickly discern bars exhibiting pronounced internal strength or weakness, thereby facilitating more informed assessments of potential price behavior in the near term.
The indicator provides two types of information concurrently. First, it displays a user-defined number of IBS labels for recently closed bars, enabling retrospective analysis of recent price action and its continuity or variation. Second, it presents the real-time IBS value for the currently forming bar, allowing traders to monitor the bar’s evolving position within its range as it develops.
By visualizing IBS directly on the chart, this indicator offers a concise and coherent tool for observing the structural dynamics of individual bars. It aids in the quantitative interpretation of intrabar momentum, enriching the trader’s capacity to read price behavior with greater clarity and precision.
RejectionLibrary "Rejection"
method mergeCandle(h1, l1, c1, h2, l2, o2)
Namespace types: series float, simple float, input float, const float
Parameters:
h1 (float)
l1 (float)
c1 (float)
h2 (float)
l2 (float)
o2 (float)
method isRejectionCandle(candleHigh, candleLow, candleOpen, candleClose)
Namespace types: series float, simple float, input float, const float
Parameters:
candleHigh (float)
candleLow (float)
candleOpen (float)
candleClose (float)
method mergeCandlesForRejection(_numCandles, direction)
Namespace types: series int, simple int, input int, const int
Parameters:
_numCandles (int)
direction (int)
method hasRejection(direction)
Namespace types: series int, simple int, input int, const int
Parameters:
direction (int)
ICT France - TIME-PRICE LEVELS - BASICICT France Time-Price is an indicator designed to automate the plotting of key liquidity levels and session opens. It saves significant time in daily analysis and ensures consistency in technical analysis, especially on pairs like EUR/USD, GBP/USD, and DXY.
It automatically plots the following levels: Asian High and Low (8:00 PM to 12:00 AM), London High and Low (12:00 AM to 5:00 AM), Previous Day High and Low (PDH / PDL), Previous Week High and Low (PWH / PWL), Previous Month High and Low (PMH / PML), Previous Year High and Low (PYH / PYL), True Day Open (TDO), Weekly Open (WO), Monthly Open (MO), Quarterly Open (QTO), Yearly Open (YO).
The 5-day ADR (Average Daily Range) is automatically calculated and displayed in the bottom left of the chart. It’s a very useful tool for day trading.
Time-based separators are added automatically depending on the chart timeframe: in H1 and below, each day is separated; in H4, each week is separated; in D1, each month; in Weekly, each year.
To the right of price, the last 4 daily candles are displayed, including the current one. This allows users to see recent daily price action without switching timeframes.
A customizable watermark is also available, similar to the AGFX watermark indicator: you can add a title and subtitle at the top of the chart.
The indicator has been tested mainly on FX Futures, CFDs: USD major pairs and minor pairs (excluding JPY). On other assets, occasional bugs may occur.
Forex indicator premier fx v5This indicator is designed to detect potential reversal points in the Forex market, combining candlestick patterns with RSI and price action conditions to generate BUY and SELL signals.
⚙️ How It Works:
Key Concepts Used:
Bullish Engulfing + RSI below 50 + recent price drop → BUY signal
Bearish Engulfing + RSI above 50 + recent price rise → SELL signal
Candle must be “stable” (strong movement relative to true range)
Conditions for a BUY:
Bullish engulfing candle
RSI is below 50 (oversold zone)
Price is lower than 5 candles ago (downward momentum)
Candle shows strong price movement
Conditions for a SELL:
Bearish engulfing candle
RSI is above 50 (overbought zone)
Price is higher than 5 candles ago (upward momentum)
Candle shows strong price movement
Visuals:
Green "BUY" label below candle when a bullish signal is detected
Red "SELL" label above candle when a bearish signal is detected
Alerts:
Preconfigured alerts for BUY and SELL signals, ready for automation or notifications
This tool is best suited for Forex traders seeking reliable entry points based on price action, RSI, and candlestick reversals. Use it on your preferred timeframes and pair it with your risk management strategy.
Binárias - Estratégia EMA com LateralizaçãoThis script is designed for binary options trading, using Exponential Moving Averages (EMAs) to detect trend direction and generate entry signals. It highlights CALL and PUT opportunities only when the market is trending, avoiding signals during sideways (ranging) conditions.
⚙️ Strategy Logic:
EMAs Used:
EMA 9: Short-term
EMA 21: Mid-term
EMA 50: Long-term (used to detect trend direction)
Trend Detection:
Uptrend: Price is above EMA 50 and EMA 50 is rising
Downtrend: Price is below EMA 50 and EMA 50 is falling
Sideways/Ranging: EMA 50 shows minimal variation between bars
Entry Signals (only in trending markets):
CALL (Buy): EMA 9 crosses above EMA 21 during an uptrend
PUT (Sell): EMA 9 crosses below EMA 21 during a downtrend
Visual Features:
Dynamic EMA 50 color: green (uptrend), red (downtrend), gray (sideways)
Background color: shaded gray during ranging markets
Arrows on chart: green for CALL, red for PUT signals
Alerts:
Ready-to-use alerts for CALL and PUT signals, ideal for automation or notifications
This indicator is ideal for traders who want clean trend-based signals and prefer to avoid consolidations. You can adjust the range sensitivity for better performance based on the asset you're trading.
Javon MACD 4C Pro v4 - Alert OnlyThis script is a professional-grade MACD histogram transition detector designed for scalpers and momentum traders. It tracks all four momentum states using MACD histogram slope logic:
• 🟩 Light Green: Bullish momentum weakening
• 🟢 Dark Green: Bullish momentum increasing
• 🟥 Light Red: Bearish momentum weakening
• 🔴 Dark Red: Bearish momentum increasing
The indicator fires precise alerts whenever momentum shifts from one phase to another — including all intra-bull, intra-bear, and bull-to-bear transitions.
✅ Ideal for 1-minute and 5-minute chart scalping
✅ No visual clutter — alert-driven only
✅ Works across all asset classes (Forex, Stocks, Indices, Crypto)
CRSIHi All,
The RSI Indicator is a advanced indicator with 2 RSI plotted with EMA of Both RSI.
RSI 1 has 2 EMA as Short length & Long length to ascertain the momentum similar to Price
RSI 2 has one EMA length.
I usually deploy
RSI 1 as 14 Length with 50 & 200 SMA to understand trend
RSI 2 as 2 Length to understand short term volatility.
This help me in taking quick trades based on Momentum, Trend & Volume analysis.
Djay Strategy with EMA Crossover and Sideways FilterDjay Strategy with EMA Crossover and Sideways Filter will help long and short with EMA crossover
📊 Support Resistance Channels (Custom TF) by.DCX🔥 Support Resistance Channels by DCX
Reveal Hidden Market Structure Like a Pro.
🚀 What it does:
This tool dynamically draws key Support & Resistance zones based on historical pivots from a customizable timeframe. It clusters nearby levels using a precision-based algorithm, ensuring only the most important zones remain — without clutter.
🧠 Why it's powerful:
✅ Custom Pivot Timeframe: Choose between 15-minute or Daily for tailored S/R detection.
✅ Automatic Filtering: Nearby pivots are merged into clean levels using percentage proximity.
✅ Max Level Limit: Keep only the most relevant zones on your screen.
✅ Zero Lag, High Precision: Designed for intraday traders and swing traders alike.
⚙️ How to Use:
Pivot Left/Right Bars: Controls how many bars are checked left/right to confirm a pivot.
Bars to Check: Defines how far back in history to scan.
Max S/R Levels: Fewer = more important zones.
Merge Distance (%): Pivots closer than this % will be merged together.
Pivot Timeframe: Set this to "15" for intraday or "D" for macro-level levels.
Line Color: Customize the line appearance to match your chart theme.
🔎 Who is it for?
Scalpers looking for intraday bounce/reject levels
Swing traders wanting to identify high-probability supply/demand zones
Anyone tired of cluttered S/R indicators that repaint or lag
🔥 Once you use it, you won't be able to trade without it.
📈 Built by DCX with precision and speed in mind.
AndyB London Breakout Box StrategyThe AndyB London Breakout Box Strategy is a time-based breakout strategy designed for traders who focus on the London trading session. It automatically draws a range box from a configurable time window (default: 02:00–07:00 London time) and places simulated long or short entries when price breaks above or below this range.
This script allows flexible configuration of:
Box timing (start, end, and cutoff hours in London time)
Take Profit (TP): either based on the box size or a multiple of the stop-loss
Stop-Loss (SL): either half the box size or based on the distance from the breakout candle's close to the opposite box edge
Two logic modes can be combined:
Use the entry candle’s close for SL and calculate TP from that distance
Or use the box size as the base for SL and TP
Test on Gold M15 (or M5) for trading ideas.
PineTraderOT_V6Library "PineTraderOT_V6"
TODO: Simplify the order ticket generation for Pinetrader.io
GenerateOT(license_id, symbol, action, order_type, trade_type, size, price, tp, sl, risk, trailPrice, trailOffset)
CreateOrderTicket: Establishes a order ticket following appropriate guidelines.
Parameters:
license_id (string) : Provide your license index
symbol (string) : Symbol on which to execute the trade
action (string) : Execution method of the trade : "MRKT" or "PENDING"
order_type (string) : Direction type of the order: "BUY" or "SELL"
trade_type (string) : Is it a "SPREAD" trade or a "SINGLE" symbol execution?
size (float) : Size of the trade, in units
price (float) : If the order is pending you must specify the execution price
tp (float) : (Optional) Take profit of the order
sl (float) : (Optional) Stop loss of the order
risk (float) : Percent to risk for the trade, if size not specified
trailPrice (float) : (Optional) Price at which trailing stop is starting
trailOffset (float) : (Optional) Amount to trail by
Returns: Return Order string
📊 📊 Support Resistance Channels (15M,D) by.DCX
🔥 The only indicator you’ll ever need for scalping or swing trading. Period.
💡 Tired of messy charts full of meaningless lines?
This script automatically draws only the most meaningful support and resistance levels based on pivots –
optimized for both 15-minute scalping and daily timeframe swing trading.
💥 Why This Indicator Is a Game-Changer:
✅ Automatic Precision Detection – Finds real, battle-tested levels using pivot highs/lows
✅ Smart Noise Reduction – Merges nearby zones to reduce clutter
✅ Timeframe-Aware Logic
🔹 Daily Zones (Blue): Always visible
🔹 15-Minute Zones (Purple): Only shown when viewing timeframes below 4H
✅ Fully Customizable
🔹 Adjust pivot sensitivity, number of lines, merge distance – everything
🧠 Who Should Use This?
Scalpers who want sniper-level entries based on proven intraday zones
Swing traders who need clean, reliable daily levels
Anyone who hates cluttered charts and wants clarity
📈 Pro Tips:
Lower the “Max S/R Levels” to show only the most critical zones
👉 Try setting to 3–5 to highlight institutional-grade levels
Tune “Merge Distance (%)” to filter overlapping zones (recommended: 0.3–0.5%)
💬 TL;DR
🧲 “You’ll never need to draw S/R lines manually again. This script does it smarter.”
Daily trend by TrendsniperAlgoDaily trend by TrendsniperAlgo
Day's trend for better idea of premarket
SUPER-MAGFLXMAGFLX
Made a bunch of these for different sectors, then realized they’re all basically the same—so you really only need one.
Here it is, with a few extra features like customizable display position and metric options.
Track 1 to 20+ tickers, your way, all in one clean, versatile template.
Features & Uses
Custom Ticker List: Enter any tickers you want to track—mix and match sectors or asset classes freely.
Flexible Display: Choose where the table appears on your chart (top-right, top-left, bottom-right, bottom-left).
Metric Options: Toggle on/off daily percentage change, current price, and price difference columns based on what you want to monitor.
Highlight Movers: Automatically spot and highlight the biggest gainer and biggest loser each day for quick insights.
Compact & Efficient: Fits neatly on your chart without clutter, whether tracking 1 ticker or 20+.
Color-Coded Data: Intuitive colors make it easy to spot gains, losses, and key movers at a glance.
User-Friendly: No coding needed—simply input your tickers and preferences to tailor your watchlist instantly.
Use it to:
Monitor your portfolio across multiple sectors in one place.
Quickly spot daily winners and losers.
Keep an eye on price trends and changes without opening multiple charts.
Save chart space while gaining market clarity.
Any comments welcomed there is no way to tell if a public script is being used right ? so if you use and like it give it boost or a comment to let me know
Low Liquidity Marker📘 Indicator Description – Low Liquidity Marker
The Low Liquidity Marker is a simple yet powerful tool designed to highlight candles where Volume × Low Price falls below a customizable threshold — signaling potential low liquidity zones on the chart.
🔍 How it works:
It calculates volume × low for each candle.
When this value drops below your defined threshold, a red triangle is plotted below that bar.
These bars may indicate poor institutional participation or market inefficiency.
⚠️ Why it matters:
Low liquidity makes it difficult to build or exit large positions efficiently.
Stocks or instruments flagged by this tool may be suitable for small capital investments but are generally unsuitable for high-volume or institutional-grade trading.
Use this indicator to filter out illiquid setups when screening for quality trades.
🛠 Customizable Input:
Volume × Low Threshold: Tune this parameter based on your instrument or trading timeframe.
💡 Ideal For:
Retail traders avoiding illiquid zones.
Investors wanting to identify where the market lacks sufficient depth.
Enhancing trade filters in systematic or discretionary setups.
내 스크립트//@version=5
indicator("Support/Resistance Scalping Strategy", overlay=true)
// === 사용자 설정 ===
support_level = input.float(101000, title="지지선", step=10)
resistance_level = input.float(104000, title="저항선", step=10)
rsi = ta.rsi(close, 14)
bb_upper = ta.bb(close, 20, 2).upper
bb_lower = ta.bb(close, 20, 2).lower
// === 조건 ===
// 롱 조건: 지지선 근처 도달 + RSI < 40 + 볼린저 하단 근접
long_condition = (low <= support_level * 1.002) and (rsi < 40) and (close <= bb_lower)
plotshape(long_condition, title="Long Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="LONG")
// 숏 조건: 저항선 근처 도달 + RSI > 60 + 볼린저 상단 근접
short_condition = (high >= resistance_level * 0.998) and (rsi > 60) and (close >= bb_upper)
plotshape(short_condition, title="Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SHORT")
// 시각적 지지/저항선 표시
hline(support_level, "지지선", color=color.green, linestyle=hline.style_dashed)
hline(resistance_level, "저항선", color=color.red, linestyle=hline.style_dashed)
SupertrendThis script is a technical trading system based on the Supertrend indicator applied to traditional candlestick charts. The Supertrend is a popular trend-following indicator that helps identify the prevailing market direction and provides clear entry and exit signals.
✅ Key Features:
Indicator Used: Supertrend (based on ATR - Average True Range)
Chart Type: Regular candlestick (time-based) chart
Buy Signal: Triggered when the price closes above the Supertrend line (trend flips to bullish)
Sell Signal: Triggered when the price closes below the Supertrend line (trend flips to bearish)
Signal Alerts: Optionally, the script can be set to send alerts for each buy/sell signal
Customisable Inputs:
Supertrend period (length) – controls ATR smoothing
Supertrend multiplier (factor) – affects the sensitivity of the trend change
Entry Type: Signals are based on confirmed candle closes, avoiding false signals
Visuals: Colour-coded Supertrend lines (e.g., green for buy, red for sell) for easy trend identification
내 스크립트//@version=5
indicator("Support/Resistance Scalping Strategy", overlay=true)
// === 사용자 설정 ===
support_level = input.float(101000, title="지지선", step=10)
resistance_level = input.float(104000, title="저항선", step=10)
rsi = ta.rsi(close, 14)
bb_upper = ta.bb(close, 20, 2).upper
bb_lower = ta.bb(close, 20, 2).lower
// === 조건 ===
// 롱 조건: 지지선 근처 도달 + RSI < 40 + 볼린저 하단 근접
long_condition = (low <= support_level * 1.002) and (rsi < 40) and (close <= bb_lower)
plotshape(long_condition, title="Long Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="LONG")
// 숏 조건: 저항선 근처 도달 + RSI > 60 + 볼린저 상단 근접
short_condition = (high >= resistance_level * 0.998) and (rsi > 60) and (close >= bb_upper)
plotshape(short_condition, title="Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SHORT")
// 시각적 지지/저항선 표시
hline(support_level, "지지선", color=color.green, linestyle=hline.style_dashed)
hline(resistance_level, "저항선", color=color.red, linestyle=hline.style_dashed)