NSE Futures Screener--Buy (Optimized Multi-Symbol + Prev EMA)It gives the result of 5EMS above stocks, we can trade based on that.
Göstergeler ve stratejiler
SMC and FVG and EMAsThe Smart Money Concept (SMC) revolves around understanding how institutional traders—banks, hedge funds, and other large players—move the market. It’s not just about price action; it’s about decoding the intent behind price movements. Here's a breakdown of the core SMC market structure logic:
Core Principles of SMC Market Structure
1. Market Structure Shifts (Break of Structure - BOS / Change of Character - CHoCH)
BOS (Break of Structure): Occurs when price breaks a previous swing high/low, signaling continuation of trend.
CHoCH (Change of Character): Indicates a potential reversal when price breaks against the prevailing trend.
2. Liquidity Pools
Institutions target areas where retail traders place stop-losses:
Buy-side liquidity (BSL): Above swing highs.
Sell-side liquidity (SSL): Below swing lows.
These zones are often swept before a reversal or continuation.
3. Order Blocks (OB)
The last bullish or bearish candle before a strong move.
Acts as a zone of institutional interest—price often returns here before continuing.
-------
🧱 What Is an Order Block?
An Order Block (OB) is the last bullish or bearish candle before a significant price move—usually caused by institutional buying or selling. It represents a zone where smart money placed large orders, and price often returns to this area to "mitigate" or fill leftover orders.
Think of it as a footprint left by big players before they push the market in a new direction.
Types of Order Blocks
Type Description
Bullish OB Last bearish candle before a strong upward move
Bearish OB Last bullish candle before a strong downward move
Mitigated OB Price revisits the OB and reacts (fills unexecuted orders)
Unmitigated OB Price hasn’t returned to the OB yet—potential future reaction zone
How to Identify an Order Block
Find a strong impulsive move (break of structure or liquidity sweep).
Look back to the last opposite candle before that move.
Mark the zone from the candle’s open to close (some traders include wicks).
Wait for price to return to this zone—this is where smart money may re-enter.
Why Are Order Blocks Powerful?
They reveal institutional intent.
Price often respects these zones—either bouncing or consolidating.
They offer high-probability entries with tight stop-losses and strong risk-reward setups.
xample in Practice
Imagine price drops sharply after a bullish candle. That bullish candle is likely a bearish order block—institutions sold heavily right after it. When price returns to that candle’s zone, it may reject again, giving you a short setup.
4. Mitigation
Price revisits an order bblock to “mitigate” unfilled orders.
This is where smart money re-enters the market.
5. Fair Value Gaps (FVG)
Imbalance between buyers and sellers.
Price tends to fill these gaps before resuming direction.
6. Entry Models
Common setups include:
Liquidity sweep → Break of Structure → Retest of Order Block
CHoCH → Retest → Entry with confirmation
Example Flow in Bullish SMC Structure
Liquidity sweep below a swing low.
CHoCH as price breaks a minor high.
Retest of bullish order block or FVG.
Entry confirmation (e.g., bullish engulfing, lower timeframe BOS).
SMC helps traders align with institutional flow rather than getting trapped by retail patterns. It’s about trading with the market makers, not against them.
Target: Previous swing high or next liquidity pool.
Aggregated OI by MalexThis indicator aggregates Open Interest data from multiple major exchanges (Binance, Bybit, OKX) to provide a comprehensive view of market positioning across platforms.
Original idea by Alex Nikulin.
FEATURES:
Multi-exchange OI aggregation with customizable exchange selection
Choose between Sum or Average aggregation methods
Individual exchange OI display (optional)
Clean mode - show only aggregated data
Real-time status monitoring for each exchange
Candlestick visualization matching standard OI indicators
Information panel showing current values and active exchanges
USAGE:
Enable/disable specific exchanges in settings
Choose aggregation method (Average recommended for balanced view)
Toggle individual exchange display or use clean mode
Monitor the info panel for data availability status
COMPATIBILITY:
Works with any symbol that has Open Interest data available on the selected exchanges.
Best used on perpetual futures contracts (e.g., BTCUSDT, ETHUSDT, etc.)
ICT - Line IncrementA simple, customizable line increment indicator.
Add your desired price range
Customize your line style.
Thanks!
Camarilla 4-Scenario Scanner --MCXCamrilla values L3,L4,H3,H4 gives where the mcx commodities and based on that we can trade
Camarilla 4-Scenario Scannercamarilla H4,H3 indicator which gives where the stock is, based on that we can trade
Multi-Timeframe MACD Score (Customizable)this is a momemtum based indicator to know the direction of the trend and also to remain in the trend for longer time
Multi-Timeframe MACD Score (Customizable)this is a momentum based indicator to know the direction of the trend so oit helps us to be in the trade
Sero📌 sero Indicator – Guide & Explanation
What the Indicator Does
The sero Indicator is a custom oscillator designed to identify market momentum shifts between bullish (pump) and bearish (dump) phases. It works by normalizing price action using a range calculation, then smoothing it with an EMA. The resulting line (sero value) oscillates on a scale around 0 to 100, giving clear visual cues about momentum strength.
Key concepts inside the code:
c0 → The average price for each bar (High + Low + Close ÷ 3).
a1 & a2 → The 15-bar highest and lowest values of this average price.
a3 → The range (difference between high and low).
sero → A smoothed (EMA-based) normalized oscillator that fluctuates with momentum strength.
The indicator then highlights pumps (upward momentum) and dumps (downward momentum ) with color-coded line breaks.
How It Looks on Chart
When loaded, you’ll see:
A yellow oscillator line (sero) moving up and down.
Red segments on the line → mark slow or strong pumps (bullish momentum).
Green segments on the line → mark slow or strong dumps (bearish momentum).
These color changes act as momentum confirmation signals.
Signals & Interpretation
sero Line (Yellow)
The main oscillator line.
Higher readings = strong bullish momentum.
Lower readings = strong bearish momentum.
Red Segments (Pump Detection)
Appear when sero rises above its previous value.
Thicker Red Line = Stronger pump (sero > 20).
Suggests upward price acceleration.
Green Segments (Dump Detection)
Appear when sero falls below its previous value.
Thicker Green Line = Stronger dump (sero < 20).
Suggests downward price acceleration.
How to Use the sero Indicator
✅ Trend Confirmation
Use sero alongside your main chart to confirm trend direction.
Sustained red (pump) signals = bullish phase.
Sustained green (dump) signals = bearish phase.
✅ Momentum Shifts
Watch for changes in color (from green → red or red → green). These flips may indicate a potential reversal or acceleration in trend.
✅ Threshold Levels (20 level)
The code emphasizes the 20 threshold:
Pump signals above 20 → more reliable bullish confirmation.
Dump signals below 20 → stronger bearish conviction.
✅ Entry & Exit Support
Enter long trades when yellow line rises and red pump segments form.
Enter short trades when yellow line falls and green dump segments form.
Consider exits when momentum color weakens or flips direction.
Best Practices
Always combine with price action, support/resistance, or volume analysis.
Works best on shorter timeframes (intraday scalping/day trading).
Avoid relying on a single pump/dump signal – wait for consistency across multiple bars.
Summary
The sero Indicator is a momentum oscillator that visually highlights bullish and bearish momentum using dynamic color changes. Traders can use it to spot pumps, dumps, and trend shifts more easily than with traditional oscillators.
I welcome your feedback on this analysis/minds/indicator, as it will inform and enhance my future work.
Regards,
Shunya.Trade
world wide web shunya dot trade
Fibonacci Retracement Levels📘 User Guide & Detailed Explanation
📌 Overview
This indicator automatically plots Fibonacci retracement levels on your chart based on the highest high and lowest low within a chosen lookback period. It helps traders quickly identify potential support and resistance zones derived from Fibonacci ratios.
Unlike manual Fibonacci drawing tools, this script continuously updates the levels as new candles form, saving time and ensuring consistency.
⚙️ Inputs & Settings
Show Fibonacci Retracement (true/false)
Toggle the Fibonacci levels on or off.
Fib Lookback Range (bars)
Defines how many past candles are used to find the swing high and swing low.
Example: If set to 100, the indicator scans the last 100 bars for the highest high and lowest low, then plots the retracement levels between those two points.
Fib Levels to Show
All → Displays all common retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%).
Main only → Displays only the key levels (38.2%, 50%, 61.8%) with thicker lines for emphasis.
None → Hides all Fibonacci levels (useful if you just want to see high/low markers).
📊 What Appears on the Chart
Horizontal Fib Lines:
The retracement levels are drawn across the chart.
38.2% (green), 50% (orange), 61.8% (red) → Main Fibonacci levels that often act as strong support/resistance.
Other levels (0%, 23.6%, 78.6%, 100%) → Optional additional retracements.
Range High Marker (red triangle up):
Marks the highest high within the lookback range.
Range Low Marker (green triangle down):
Marks the lowest low within the lookback range.
🛠 How to Use It
Identify Swing Points Automatically
No need to manually draw retracements. The script automatically picks the highest and lowest points in the selected range.
Trade Reversals & Pullbacks
Buyers often look for price to bounce near 38.2% or 61.8% retracement levels.
Sellers often target retracements during rallies.
Trend Continuation
If price breaks through a level and holds, the next Fibonacci level becomes the next target zone.
Combine with Other Tools
Works best when combined with:
Support/Resistance zones
Candlestick patterns
Trend indicators (EMA, SMA, MACD)
📈 Example Use Cases
In an uptrend, use the indicator to find pullback entries at 38.2%–61.8% retracements.
In a downtrend, watch for rejection at retracement levels as potential continuation signals.
On range-bound markets, Fibonacci levels often line up with key support/resistance.
⚠️ Notes & Limitations
Fibonacci levels are not guaranteed reversal points — they are probability-based support/resistance areas.
The lookback range setting is crucial. Too short = noisy signals, too long = levels may not reflect the most recent swing.
Should always be used with other confirmation tools (volume, trend analysis, candlestick structure).
📝 Credits & License
This script is published as open source for educational and trading purposes.
You are free to use, share, and modify it under TradingView’s open-source script guidelines.
Regards,
Shunya.Trade
world wide web shunya dot trade
BTC 2024 Toolkit (MAs, BB, Niveles, Eventos)Main uptrend following the March 2024 ATH; correction in April (before/after the halving) and capitulation in August with a rebound.
Key zones drawn in the script: 73–74k (resistance/ceiling), 68–70k, and 64.2k/61.3k/58.4k (pullbacks), plus 49–53k (August floor).
The 50/100/200 MAs are sloping upward at the yearly close; Bollinger Bands are free of prolonged excesses.
Bias: Bullish, buy on pullbacks/pullbacks.
Entry A (breakout throwback): Wait for a breakout and a pullback that respects 73–74k as new support.
Entry B (range pullback): Staggered buys at 68–70k and, if there is further weakness, at 64–65k.
Invalidation/Stop: Daily close < 59–60k (loss of range/structure).
Targets:
TP1: 92–95k (natural post-breakout extension).
TP2: 100k+ if MAs remain upward and momentum holds.
Rationale: The 73–74k level is the "pivot" for the year; buying the pullback to that area (or to 68–70k) offers a better risk/reward than chasing the price. The stop below 60k limits exposure if the breakout fails.
Volume Profile (LVN + HVN Detection)This script builds a customizable session-by-session Volume Profile with extended features for deeper order-flow analysis. It lets traders visualize where the most and least trading activity occurred in any chosen timeframe and resolution, directly on the chart.
🔑 Features
Dynamic Volume Profile
Adjustable Rows and Resolution Timeframe for fine-tuned granularity. Profiles automatically update on each session change.
Volume Point of Control (VPOC)
Highlights the single price level with the highest traded volume.
Option to extend the last N VPOCs forward in time.
Optional date labels for extended VPOCs.
High Volume Nodes (HVNs)
Detects and plots areas/levels of concentrated activity.
Configurable strength filter to control validation.
Display as solid/dotted lines (Levels) or filled Areas.
Color-coded relative to prior session close.
Low Volume Nodes (LVNs) (NEW)
Identifies thin-volume zones often acting as rejection or breakout points.
Configurable strength filter.
Display as dotted Levels or shaded Areas.
Color-coded relative to prior session close.
Profile Extend
Choose how much of the profile should extend into the next session for forward-looking context.
📊 Use Cases
Spotting value areas and key auction levels.
Finding support/resistance zones via HVNs and LVNs.
Tracking VPOC shifts across sessions for directional bias.
Identifying low-volume rejection zones where price may accelerate.
⚙️ Customization
Profile rows, timeframe, and resolution.
VPOC line width, colors, and label size.
HVN/LVN strength, type (Levels/Areas), and color themes.
Pullback & ATR Trailing Strategy※日本語は英文の次に記載あります。
Overview
This indicator combines short-term RSI pullback/rebound signals with long-term RSI divergence to visualize potential buy and sell opportunities.
It also plots ATR-based trailing stops and partial take-profit lines, making it suitable for day trading and short-term trading.
Alerts are triggered when signal conditions are met.
Key Features
Detect short-term RSI pullbacks/rebounds (default 6 periods)
Detect divergences on long-term RSI
Visualize buy/sell signals with labels
Display ATR-based trailing stop and partial take-profit lines
Trigger alerts when conditions are met
Settings Explanation
Short-term RSI Length (rsiShortLen) Period for short-term RSI used to detect pullbacks or rebounds
Pullback Threshold (levelLow) RSI level below which a buy signal is considered
Rebound Threshold (levelHigh) RSI level above which a sell signal is considered
Long-term Timeframe (longTF) Timeframe used for divergence detection
Long-term RSI Length (longRSILen) Period for RSI on the long-term timeframe, used for divergence detection
Pivot Width Left / Right (pivotLeft / pivotRight)
Determines how we detect swing highs/lows (peaks and valleys).
For example, with pivotLeft=3 and pivotRight=3, a bar is considered a swing high if it is higher than the 3 bars to its left and 3 bars to its right.
Larger numbers detect only bigger swings, smaller numbers also detect smaller swings.
ATR Length (atrLen) Period for ATR calculation for trailing stops
ATR Multiplier (atrMult) Multiplier for ATR to calculate trailing stop distance
Partial Take-Profit Multiplier (tpMult) Multiplier to calculate half-profit level based on swing amplitude
Green line (Long Trail / translucent green)
ATR-based trailing stop line for long positions.
Used as a stop-loss or trailing stop for open buy trades.
Dark green line shows partial take-profit (TP), translucent green shows trailing stop level.
Red line (Short Trail / translucent red)
ATR-based trailing stop line for short positions.
Used as a stop-loss or trailing stop for open sell trades.
Dark red line shows partial take-profit (TP), translucent red shows trailing stop level.
Note: TP lines indicate partial take-profit targets, while ATR trailing lines indicate stop-loss/trailing stop levels if the price moves against the position.
日本語説明ーーーーーーーーーーーーーーーーーーーーーーーーーーーー
概要
このインジケーターは、短期RSIの押し目/戻りシグナルと、長期足RSIによるダイバージェンスを組み合わせて、買い・売りのチャンスを可視化します。
さらに、ATRベースのトレールストップラインや半分利確ラインも表示し、デイトレードや短期トレードに最適化しています。
シグナル条件に一致した場合にアラートも作動します。
主な機能
短期RSI(デフォルト6期間)で押し目・戻りを検出
長期足RSIでのダイバージェンスを検出
BUY/SELLラベルでシグナルを視覚化
ATRベースのトレールライン・半分利確ラインを表示
条件一致時にアラート発動
各設定の説明
短期RSI期間 (rsiShortLen) デイトレ用の短期RSIの期間。押し目や戻りのシグナルに使用
押し目閾値 (levelLow) RSIが下回ったら買いシグナル判定に使用
戻り閾値 (levelHigh) RSIが上回ったら売りシグナル判定に使用
長期足 (longTF) ダイバージェンス判定用の長期足の時間軸
長期RSI期間 (longRSILen) 長期足で計算するRSIの期間。ダイバージェンス判定に使用
左右ピボット幅 (pivotLeft / pivotRight) 高値や安値を「スイングの山・谷」として判定する時に使う幅です。
例えば pivotLeft=3, pivotRight=3 の場合、「左に3本、右に3本のローソク足より高い/低い点」をスイングの頂点や底と見なします。
数値を大きくすると大きな波だけを拾い、小さくすると小さな波も拾いやすくなります。
ATR期間 (atrLen) トレールライン計算用ATRの期間
ATR倍率 (atrMult) トレールラインの距離をATRに掛ける倍率
半分利確倍率 (tpMult) 押し目/戻り幅に対して半分利確ラインを設定する倍率
緑の線(Long Trail / 半透明緑)
ATRベースのトレールストップラインです。
買いポジション中の損切り目安やトレーリングストップとして使います。
緑の濃い線は半分利確ライン(TP)、薄い緑の線はトレールストップの位置を示します。
赤い線(Short Trail / 半透明赤)
ATRベースのトレールストップラインです。
売りポジション中の損切り目安やトレーリングストップとして使います。
赤の濃い線は半分利確ライン(TP)、薄い赤の線はトレールストップの位置を示します。
補足:TP(Take Profit)線は半分利確の目安で、ATRトレールラインはポジションが逆行した時の損切り目安です。
EMA (9, 21, 40, 200) - sachinlchaudhariThis is a combine indicator for Exponential Moving Averages EMA (9, 21, 40, 200).
It also displays the Average True Range (ATR) value and Relative Strength Index (RSI) value.
Phantom Trend IndicatorOverview
The Phantom Trend Indicator (PTI) is a streamlined tool for identifying trend direction and strength. It blends zigzag-based trend detection with a volume profile to display a histogram showing price distance from the Point of Control (POC). Six distinct colors highlight trend states, with background highlights for extreme price zones. Ideal for stocks, forex, crypto, and futures across any timeframe.
Features:
Trend Detection: Uses zigzag fractals to identify uptrends and downtrends.
Histogram Colors: Six colors for trend strength (low, high, extreme for up/down trends) or neutral (gray).
Dynamic Levels: Plots POC, Value Area Low (VAL), and High (VAH) via volume profile.
Background Colors: Highlights overbought (above VAH) or oversold (below VAL) zones.
Alerts: Signals new trends.
How It Works:
Trends: Zigzag fractals define trend ranges, with price position setting histogram colors (low, high, or extreme).
Histogram: Shows price deviation from POC.
Background: Colors extreme zones outside VAL/VAH.
This indicator builds on traditional trend detectors and volume profiles by integrating them into a single, cohesive tool. Unlike standard momentum indicators that rely on moving averages, PTI uses zigzag fractals for more responsive trend identification, reducing lag in volatile markets. Compared to basic volume profile scripts, it adds trend-based color coding and background alerts for extremes, providing clearer visual cues for overbought/oversold conditions. The six distinct colors indicate trend strength, and customizable thresholds allow fine-tuning for different assets and timeframes, enhancing adaptability. Traders benefit from combined momentum and liquidity insights, helping spot reversals or continuations more reliably—making PTI a valuable, standalone addition for both novice and experienced users.
Settings
Trend Detector: Toggle alerts, adjust zigzag sensitivity, and set thresholds for low-to-high and extreme color transitions.
Dynamic Levels: Configure volume profile period, multiplier, accuracy, value area percent, and ATR-based channel width.
Visuals: Customize POC, VAL, VAH, and area fill colors.
Read Histogram: Uptrend colors show early, strong, or overextended moves; downtrend colors indicate early, weakening, or oversold conditions; gray for consolidation.
Background: Monitor for overbought/oversold color-coded signals.
Tune: Adjust zigzag or period settings for your timeframe/asset.
Tips
Shorten period for intraday, extend for swing trading.
Pair with other indicators for confirmation.
Notes:
Requires sufficient chart data for volume profile.
Test settings for low-volatility assets.
For informational use only, not financial advice. Test thoroughly, and happy trading!
IaoriginalTrend following (CTA/Clenow): requires EMA50 > EMA200 (or < for shorts) and a Donchian breakout (50); ideally with a confirmation breakout (100).
Kleinman MA channel: price breaking above/below the channel bands adds points.
Squeeze / momentum (TTM-like): when the Bollinger Bands “release” from the Keltner Channels and momentum flips through zero, it adds points.
Signal logic: when the total points ≥ the threshold and the trend filter is met, the script draws arrows (LONG/SHORT) and triggers alerts.
Risk: shows an ATR stop line in the relevant direction when the signal fires (visual aid only, not an order).
Fieolouis - RSI - Signals v2.6.1 (Symbols)Fieolouis - RSI - Signals v2.6.1 (Symbols)
An advanced upgrade of the classic RSI, combining divergence, re-entry, and trend continuation signals with clean symbol-based visualization.
🔹 Key Features
RSI Core: Standard RSI with flexible moving averages (EMA, SMA, WMA, VWMA, SMMA, Bollinger Bands).
Divergence:
Regular & Hidden divergence detection.
Flexible pivot search (5–25 bars).
Max bars between pivots filter to reduce noise.
Re-entry Signals:
Detects RSI returning from Overbought/Oversold zones.
Optional confirmation: RSI crossing MA within last 3 bars.
Continuation Signals:
RSI crossing 50 aligned with trend direction.
Trend Filter (optional):
Only Long if RSI > MA1, only Short if RSI < MA1.
🔹 Visualization
RSI + MA + optional Bollinger Bands directly on the panel.
OB/OS zones with gradient shading, adjustable 75/25 or 80/20.
Symbols instead of text for clarity:
🔼 Re-Long = green arrow up
🔽 Re-Short = red arrow down
▲ Trend+ = teal triangle up
▼ Trend- = maroon triangle down
Divergence labels (Bull/Bear) can be toggled on/off.
🔹 Alerts
Ready-to-use alerts for all signal types:
Bullish / Bearish Divergence
Re-entry Long / Short
Continuation Bull / Bear
👉 Designed for both scalping & swing trading:
Divergence helps spot reversals.
Re-entry catches failed OB/OS breaks.
Continuation confirms ongoing trends.
ICT Macros All hours - credit to luxalgoICT Macros custom original one from LuxAlgo
default indicator does not enabled for all hours
this one have options to enable all hours
yogi's simple indicatorsimple ema and vwap buy and sell signals
9 ema 21 ema 50 ema
and vwap
price above 9 and 21 uptrend
below 9 and 21 down treand
unFair Value Gap Detector [theUltimator5]The unFair Value Gap Detector (uFVG) highlights imbalance zones that form when trend strength is weak but directional pressure spikes—a condition often followed by price reversion back into that level. Unlike the classic 3-candle ICT FVG, this tool is designed to help you have an unFair edge in gap retracement detection by plotting high probability gap reversion opportunities on the current timeframe and the next FIVE (yes five) higher timeframes.
What you’ll see:
Gap line per event: A single, no-nonsense line at the level price most often returns to.
Auto multi-timeframe view: uFVG ladders up through five higher timeframes and shows their levels too—each with its own color.
Smart de-clutter: Near-duplicate lines across timeframes are filtered so your chart stays readable.
Note: This indicator is intentionally minimalistic visually to minimize chart clutter, while still being an extremely powerful tool
Optional visuals:
Light background tint during quiet, coiling conditions.
Soft fill from price to the active line for quick context.
Compact labels that note the price and which timeframe printed it.
Why it is unique and effective (the “unfair” edge):
Early, practical context: Spots levels near when the imbalance forms—useful before the crowd catches on.
Clarity over noise: One line per event. No boxes, no sprawling zones, fewer “maybe” areas.
Timeframe confluence: When multiple timeframes cluster around the same price, you’ve got a stronger focal point.
Simple risk framing: If price slices through the line decisively, that idea’s done. Next.
How to use it:
Mean-reversion play: Look for price to tag the line, take profits into it, or fade a first reaction.
Continuation play: After the line is “mitigated,” reassess in the original direction.
Prioritize by timeframe: Higher-timeframe lines tend to carry more weight.
Respect clusters: Multiple lines stacked near one price often mark important pivots.
Customization
Colors: Separate colors for current and higher-timeframe lines.
Toggles: Turn on/off background highlights, line-to-price fill, and labels.
Minimal fuss: The rest is auto—timeframes, line lifecycle, and de-duplication are handled for you.
Manuel_Air//@version=6
indicator(title="Manuel_Air", shorttitle="Manuel_Air", overlay=true)
// ====== Layout / Estilo ======
posInput = input.string(defval="Top Right", title="Posición tabla", options= )
Table_Position = switch posInput
"Top Left" => position.top_left
"Top Center" => position.top_center
"Top Right" => position.top_right
"Middle Left" => position.middle_left
"Middle Center" => position.middle_center
"Middle Right" => position.middle_right
"Bottom Left" => position.bottom_left
"Bottom Center" => position.bottom_center
"Bottom Right" => position.bottom_right
label_size = input.string(defval="Normal", title="Tamaño texto", options= )
Tsize = switch label_size
"Tiny" => size.tiny
"Small" => size.small
"Normal" => size.normal
"Large" => size.large
"Huge" => size.huge
// ====== Inputs checklist y nombres personalizables ======
check1 = input.bool(true, "HTF Alignment")
check2 = input.bool(true, "Liquidity Sweep")
check3 = input.bool(true, "Boss + Imbalance")
check4 = input.bool(true, "71% Retracement")
showTradeScore = input.bool(true, "Mostrar Trade Score")
name1 = input.string("HTF Alignment", "Nombre Check 1")
name2 = input.string("Liquidity Sweep", "Nombre Check 2")
name3 = input.string("Boss + Imbalance", "Nombre Check 3")
name4 = input.string("71% Retracement", "Nombre Check 4")
tableTitle = input.string("Checklist 📝", "Título tabla")
headerText = input.string("Manuel_Air", "Texto header")
// ====== Colores personalizables ======
colorChecked = input.color(color.green, "Color ✔")
colorUnchecked = input.color(color.red, "Color ✘")
colorHeader = input.color(color.black, "Color Header")
colorRow = input.color(color.new(color.black, 85), "Color Filas")
colorTradeHigh = input.color(color.green, "Color Trade Score Alto")
colorTradeMid = input.color(color.yellow, "Color Trade Score Medio")
colorTradeLow = input.color(color.red, "Color Trade Score Bajo")
colorText = input.color(color.white, "Color texto filas")
// ====== Preparar checklist ======
checks = array.new_bool()
names = array.new_string()
array.push(checks, check1)
array.push(checks, check2)
array.push(checks, check3)
array.push(checks, check4)
array.push(names, name1)
array.push(names, name2)
array.push(names, name3)
array.push(names, name4)
numChecks = array.size(checks)
// ====== Calcular Trade Score ======
checkedRows = 0
for i = 0 to numChecks - 1
checkedRows += array.get(checks, i) ? 1 : 0
tradeScore = math.round((checkedRows / numChecks) * 100)
tradeScoreColor = tradeScore >= 75 ? colorTradeHigh : tradeScore >= 50 ? colorTradeMid : colorTradeLow
// ====== Definir filas totales ======
totalRows = 1 + 1 + numChecks + (showTradeScore ? 1 : 0) // Header + título checklist + checks + Trade Score
var table myTable = table.new(position = Table_Position, columns = 2, rows = totalRows, border_width = 1, border_color = color.gray)
if barstate.islast
rowIndex = 0
// Header (merge 2 columnas)
table.cell(table_id = myTable, column = 0, row = rowIndex, text = headerText, text_size = Tsize, text_color = colorText, bgcolor = colorHeader)
table.merge_cells(table_id = myTable, start_column = 0, start_row = rowIndex, end_column = 1, end_row = rowIndex)
rowIndex += 1
// Título checklist (merge)
table.cell(table_id = myTable, column = 0, row = rowIndex, text = tableTitle, text_size = Tsize, text_color = colorText, bgcolor = colorHeader)
table.merge_cells(table_id = myTable, start_column = 0, start_row = rowIndex, end_column = 1, end_row = rowIndex)
rowIndex += 1
// Filas checklist
for i = 0 to numChecks - 1
checked = array.get(checks, i)
name = array.get(names, i)
table.cell(table_id = myTable, column = 0, row = rowIndex, text = (checked ? "✔" : "✘"), text_size = Tsize, text_color = (checked ? colorChecked : colorUnchecked), bgcolor = colorRow)
table.cell(table_id = myTable, column = 1, row = rowIndex, text = name, text_size = Tsize, text_color = colorText, bgcolor = colorRow)
rowIndex += 1
// Trade Score
if showTradeScore
table.cell(table_id = myTable, column = 0, row = rowIndex, text = str.tostring(tradeScore) + "%", text_size = Tsize, text_color = tradeScoreColor, bgcolor = colorRow)
table.cell(table_id = myTable, column = 1, row = rowIndex, text = "Trade Score", text_size = Tsize, text_color = colorText, bgcolor = colorRow)