Current Trade Value DisplayThis indicator gives a large display of the current trade value at the bottom of the screen.
Chart patterns
FRXFORTUNE GOLD ADVANCEThis indicator helps traders analyze gold price reaction after economic news releases.
You can manually input the Actual and Forecast values from news data.
Based on the difference, it shows a side box signal:
- If USD is strong → Gold sell signal
- If USD is weak → Gold buy signal
It also provides alerts when strong reactions are detected.
FRXFORTUNE NEWS EXPERTThis indicator helps traders analyze gold price reaction after economic news releases.
You can manually input the Actual and Forecast values from news data.
Based on the difference, it shows a side box signal:
- If USD is strong → Gold sell signal
- If USD is weak → Gold buy signal
It also provides alerts when strong reactions are detected.
NY 4H High/Low Levels — VIPINWhat this script does
This indicator automatically marks the first 4 hours of each New York trading day (00:00–03:59, America/New_York time). It calculates the High and Low of that period and plots them as horizontal levels. The lines extend only until the end of the same New York day. Optionally, you can display the previous N days’ levels for additional context.
Why it is useful
The New York session is one of the most active trading sessions. The first 4 hours often set intraday liquidity pools and reference levels that many traders monitor for breakouts or reversals. This tool helps traders identify and visualize those ranges quickly on the chart.
How it works
• Uses TradingView’s time() function to detect bars within 00:00–03:59 America/New_York.
• Accumulates the highest high and lowest low during that 4-hour window.
• At the end of the window, draws High and Low lines for the current day (extend until that day ends).
• Optionally stores and displays levels from a chosen number of previous days.
• Option to show a shaded box highlighting the 4-hour window.
Settings
• Timezone (default: America/New_York)
• Show 4H Window Box (on/off)
• Line colors, width
• Show previous days’ levels (on/off, with how many days to keep)
How to use
• Best applied on intraday timeframes (1m–1h).
• Use these levels as reference points for your own strategy (e.g., breakout, mean reversion, or confluence with other tools).
• The indicator is a utility tool: it does not generate buy/sell signals by itself.
Notes
This script is original: it is not a mashup of multiple public indicators but a dedicated tool to highlight a specific, well-defined trading session.
It is provided for educational purposes only and is not financial advice.
Fisher //@version=5
indicator("Fisher + EMA + Histogram (Working)", overlay=false)
// Inputs
fLen = input.int(125, "Fisher Length")
emaLen = input.int(21, "EMA Length")
src = input.source(close, "Source")
// Fisher Transform
var float x = na
minL = ta.lowest(src, fLen)
maxH = ta.highest(src, fLen)
rng = maxH - minL
val = rng != 0 ? (src - minL) / rng : 0.5
x := 0.33 * 2 * (val - 0.5) + 0.67 * nz(x )
x := math.max(math.min(x, 0.999), -0.999)
fish = 0.5 * math.log((1 + x) / (1 - x))
// EMA of Fisher
fishEma = ta.ema(fish, emaLen)
// Histogram
hist = fish - fishEma
histColor = hist >= 0 ? color.new(color.lime, 50) : color.new(color.red, 50)
plot(hist, style=plot.style_histogram, color=histColor, title="Histogram")
// Fisher Plot
fishColor = fish > 2 ? color.red : fish < -2 ? color.lime : color.teal
plot(fish, "Fisher", color=fishColor, linewidth=2)
plot(fishEma, "Fisher EMA", color=color.orange, linewidth=2)
// Horizontal Lines
hline(2, "Upper Extreme", color=color.new(color.red, 70))
hline(-2, "Lower Extreme", color=color.new(color.green, 70))
hline(0, "Zero", color=color.gray)
// Cross Signals
bull = ta.crossover(fish, fishEma)
bear = ta.crossunder(fish, fishEma)
plotshape(bull, style=shape.triangleup, location=location.bottom, color=color.lime, size=size.tiny)
plotshape(bear, style=shape.triangledown, location=location.top, color=color.red, size=size.tiny)
// Background for extremes
bgcolor(fish > 2 ? color.new(color.red, 80) : fish < -2 ? color.new(color.green, 80) : na)
/MNQ 5m WAVE (Fusion B-L/S)This strategy—built for the Nasdaq-100 micro future (/MNQ) on the 5-minute chart—combines a simple momentum trigger with a set of context filters and layered exits. The core entry uses a fast/slow EMA crossover (5 vs. 13) and only fires when volatility is adequate, trend/participation are aligned, and price sits at a tradable distance from VWAP. Signals are executed strictly on bar close (no intrabar execution), which avoids repainting and keeps backtests consistent with live behavior at bar close.
imgur.com i.imgur.com i.imgur.com
Volatility filtering relies on ATR (smoothed true range). You can toggle it globally and per side (long/short) and set an absolute threshold in points. If the market is below the threshold, new entries are inhibited; above it, entries are allowed. Because the threshold is in points, you should calibrate it to the symbol and timeframe (defaults are tuned for /MNQ 5m).
Trend and impulse are checked via a Weinstein-style block: a mid-term SMA and its slope, plus a volume condition. Longs require closes above the SMA with non-negative slope; shorts require closes below the SMA with non-positive slope. Additionally, current volume must exceed the prior bar and a short SMA of volume. This aims to separate genuine breakouts with participation from low-quality pokes.
Relative location uses a smoothed VWAP (separate smoothing for longs and shorts). Longs must trade above VWAP and within a configurable proximity window (e.g., ≤1.1%); shorts must be below VWAP and within their own proximity (e.g., ≤0.3%). This favors buying strength near an institutional reference and selling weakness near value, discouraging stretched entries with poor signal-to-noise.
The entry trigger, once all filters agree, is the EMA cross—up for longs, down for shorts. You can restrict the strategy to “Both,” “Longs Only,” or “Shorts Only.” Orders are placed at the close of the confirming bar, with fixed size by default and configurable commissions/margins in the strategy properties.
Exits combine three layers: (1) a fixed percentage stop loss from average entry; (2) a fixed percentage take profit; and (3) a trailing stop that activates only after a minimum favorable excursion and then follows the highest high/lowest low with a configurable distance behind. Trailing lines are drawn as step lines, and the area between entry and the active trailing is shaded, making risk protection and give-back immediately visible.
Optionally, you can enable an automatic “bars in trade” close (useful for fast rotation/stop-hunt styles). When enabled, the position closes once the bar count since entry exceeds a user-defined maximum. A floating label displays the live bar count versus the cap, with distinct styling for longs and shorts.
Execution is wired for automation. Each entry/exit emits a structured JSON payload via TradingView’s alert_message (ideal for “order fill” endpoints such as /signal), including OHLCV and informational metrics (ATR and ADX). Additionally, the strategy can issue a parallel alert() with a compact “advice” payload (toggle “Enable alert() pushes to /advice”). This separation lets the same event feed both execution and a validation/notification layer.
Visually, the script plots the working EMAs, the Weinstein SMAs, smoothed VWAPs, and the trailing lines per side, and it marks crosses with clear icons. The entry price is highlighted, and the fill between entry and trailing is colored (green/red) to show whether profits are being locked in or risk is increasing—so trade management is readable at a glance.
Key parameters exposed: EMA lengths per side; Weinstein block periods and thresholds (slope and volume); VWAP smoothing and per-side proximity; SL/TP percentages and trailing configuration (start and behind distance); ATR lengths and thresholds per side; trade direction selector; and the bars-auto-close module with its on-chart counter. Defaults are reasonable for /MNQ on 5m but are meant to be tuned to your instrument’s volatility and session microstructure.
Operating philosophy: enter less but better—on breakouts with bias and participation—preferably not too far from VWAP; then manage exits in layers that protect gains without choking extended moves. Asymmetry between long and short proximity/targets reflects the typically sharper nature of declines versus advances and can be tailored to your data.
Limitations and guidance: the ATR threshold is absolute (points), so it is not portable without calibration; ensure VWAP proximity windows fit your intraday seasonality and the session you trade (RTH/ETH). While the system is close-of-bar and non-repainting, results may vary with data feeds or session settings. Always validate in paper first; no strategy guarantees outcomes.
Disclaimer: for educational and informational purposes only. Not financial advice. Derivatives and leveraged products carry substantial risk, including the possibility of total loss. Tune parameters and automations at your own risk.
Consolidated 9-Indicator Buy/Sell Zones & TriggersALL important inductors combined for long term position holders and short term guys...use it to enter trade and exit ...backgroud colour will give you the indication of the market mood..
SMC + FVG + EMA + TrendlinesSMC + FVG + EMA + Trendlines legRange = math.abs(structureHigh - structureLow) // <-- เปลี่ยนชื่อจาก range -> legRange
if showCurrentStruct and not na(structureHigh) and not na(structureLow)
if na(curHighLine) == false
line.delete(curHighLine)
if na(curLowLine) == false
line.delete(curLowLine)
curHighLine := line.new(sHighIdx, structureHigh, bar_index, structureHigh, xloc.bar_index, color=currentStructColor, style=currentStructStyle, width=currentStructWidth)
curLowLine := line.new(sLowIdx, structureLow, bar_index, structureLow, xloc.bar_index, color=currentStructColor, style=currentStructStyle, width=currentStructWidth)
// ---------- Fibonacci on current leg ----------
if showFibo and legRange > 0
for k = 0 to array.size(fLevels) - 1
lvl = array.get(fLevels, k)
price = sDir == 1 ? structureHigh - (legRange - legRange * lvl)
: structureLow + (legRange - legRange * lvl)
l = line.new(sDir == 1 ? sHighIdx : sLowIdx, price, bar_index, price, xloc.bar_index, color=fiboColorMain, style=fiboStyle, width=fiboWidth)
label.new(bar_index + 10, price, str.tostring(lvl) + " (" + str.tostring(price) + ")", style=label.style_none, textcolor=fiboColorMain)
swapstrategy-Reversal StrategyGenerate buy and sell signals and reverses position when chart turn buy or sell side
Sri - Custom RSI Candle/Heikinashi Colors on MTFSri - Custom RSI Candle/Heikinashi Colors (TF RSI + EMA50 + Daily Trend Marker)
Short title: Sri - RSI EMA TF
Version: Pine Script v5
Overlay: Yes
Overview
This script enhances the standard RSI indicator by combining multiple features to visually represent market momentum and trend strength on both custom and daily timeframes. It recolors candlesticks or draws custom candles based on RSI levels relative to its EMA, offering a clear, intuitive way to identify trend direction and overbought/oversold conditions.
Key benefits include:
Multi-timeframe RSI & EMA analysis.
Optional Heikin Ashi or normal price source for RSI calculation.
Custom candle coloring for immediate visual insights.
Daily trend markers for longer-term trend context.
Features
Custom Timeframe RSI + EMA50
Calculate RSI on any user-selected timeframe (default: 5 min).
Apply a 50-period EMA on the RSI to identify trend direction.
Visual differentiation based on RSI relative to EMA:
Uptrend: RSI > EMA and above 50 → Blue candles
Downtrend: RSI < EMA and below 50 → Yellow candles
Conflict zones: RSI and EMA in opposite directions → Red or Green borders
Daily Trend Marker
Plots a tiny circle below each candle showing the daily RSI trend for additional context.
Helps align short-term trades with longer-term market direction.
Candle Visualization Options
Recolor built-in bars (default)
Custom candles with transparent bodies + colored borders
Overbought (RSI ≥ 70) → Dark Green
Oversold (RSI ≤ 30) → Orange
Heikin Ashi Support
Users can choose between Normal or Heikin Ashi candle prices as the RSI source.
Provides a smoother view of trends when using Heikin Ashi.
Transparency for Neutral Zones
Neutral or sideways RSI conditions are represented by transparent candles, reducing visual clutter.
Inputs
Input Description
Custom RSI Timeframe Select timeframe for RSI calculation (default: 5 min)
RSI Length Period for RSI calculation (default: 14)
EMA Length EMA period applied on RSI (default: 50)
Use custom candles True → draws custom candles with colored borders; False → recolors default bars
Price Source for RSI "Normal" or "Heikin Ashi"
Color Scheme
Condition Body Color Border Color
RSI ≥ 70 (Overbought) Dark Green Dark Green
RSI ≤ 30 (Oversold) Orange Orange
RSI ≥ 50 and RSI ≥ EMA Blue Blue
RSI < 50 and RSI ≤ EMA Yellow Yellow
RSI < 50 and RSI ≥ EMA Transparent Red (Conflict)
RSI ≥ 50 and RSI ≤ EMA Transparent Green (Conflict)
How to Use
Add the script to your chart.
Choose whether to use custom candles or recolor standard bars.
Set your preferred RSI timeframe and EMA length.
Optional: Switch between Normal or Heikin Ashi as the RSI source.
Observe candle colors and daily circles for trend alignment:
Green/Blue → Uptrend
Red/Yellow → Downtrend
Transparent → Neutral/conflict zones
Trading Insights
Candle colors quickly indicate short-term momentum relative to RSI and EMA.
Daily trend markers allow alignment of short-term trades with broader market context.
Conflict zones (transparent bodies with red/green borders) highlight caution areas where trend direction may be ambiguous.
Combining multiple timeframes (custom + daily) increases the accuracy of trend-based decision-making.
Notes
Works best when combined with other indicators (volume, support/resistance) for confirmation.
Ideal for scalping, intraday, or swing trading strategies.
Compatible with most symbols and timeframes supported by TradingView.
MultiPrem+Detailed Description of MultiPrem+
MultiPrem+ is a versatile TradingView Pine Script indicator designed to enhance the analysis of multi-leg option strategies by calculating and visualizing the combined premium of various predefined option setups. It allows users to select from a comprehensive list of popular option strategies, such as Short Straddle, Iron Condor, Butterfly Call, and more, and dynamically computes the net premium, Greeks (Delta and Theta), volume, and other key metrics for the selected strategy. The indicator overlays these calculations on the chart, providing real-time insights into the potential profitability and risk of the strategy based on the underlying asset's price movement.
The core functionality revolves around fetching data for up to four option legs (e.g., calls and puts at different strikes) using TradingView's `request.security` function. It supports indices like NIFTY, BANKNIFTY, and SENSEX, with customizable ATM strike levels, strike width multipliers, and expiry dates. The script calculates the combined premium by summing the premiums of each leg, adjusted for position direction (long or short), and displays the results in a compact table on the chart. It also includes technical indicator overlays (e.g., SMA, RSI, MACD) to contextualize the strategy within market trends, and generates alerts with strategy metrics for automated notifications.
The indicator is particularly suited for option traders who want to monitor strategy performance without manual calculations, offering a blend of quantitative metrics and visual feedback. It operates on any timeframe but is optimized for intraday or short-term trading, where option premiums fluctuate rapidly.
### Unique Features
MultiPrem+ stands out from standard option analysis tools on TradingView due to several innovative features:
1. **Dynamic Multi-Leg Strategy Support**: Unlike basic option chain indicators that focus on single legs or simple spreads, MultiPrem+ supports a wide range of advanced multi-leg strategies (e.g., Iron Condor Wide, Reverse Iron Condor, Butterfly Call/Put). It automatically configures strike prices, directions, and approximate Greeks based on the selected strategy, saving time and reducing errors in setup.
2. **Combined Premium Visualization**: The indicator plots the net premium as a line on the chart, colored based on whether it's a credit or debit strategy and its relation to a selected technical indicator (e.g., green if below SMA for potential buys). This unique visualization helps traders see how the strategy's value evolves over time, providing an at-a-glance view of profitability.
3. **Integrated Greeks Calculation**: It computes net Delta (directional risk) and net Theta (time decay) for the entire strategy, factoring in leg directions. For credit strategies like Short Straddle, Theta is positive to reflect time decay benefits, a nuance not commonly found in free indicators.
4. **Strategy Suggestion Engine**: Based on RSI and net Theta, it suggests alternative strategies (e.g., "Bear Put Spread" if RSI is overbought). This AI-like recommendation system is unique, helping novices or busy traders pivot quickly to more suitable setups.
5. **Customizable Alerts**: The script generates JSON-formatted alerts with key metrics (premium, net Delta, net Theta, etc.), which can be integrated with TradingView's alert system or external tools for automated trading signals.
6. **Compact Table Display**: A dynamic table shows leg-specific details (Type, Strike, Position, Premium, Qty, Delta, Theta, Volume) without cluttering the chart. It's positionable and sized for usability.
### How a User Can Gain Valuable Analysis from It
MultiPrem+ empowers users to conduct sophisticated option strategy analysis, offering insights that can improve decision-making and risk management. Here's how users can leverage it for valuable outcomes:
1. **Strategy Evaluation and Selection**: Traders can quickly test different strategies by changing the selection and ATM strike. For instance, in a sideways market, selecting "Short Straddle" shows the net credit and positive Theta, highlighting potential profits from time decay. The suggestion engine further aids by recommending alternatives if current conditions (e.g., high RSI) suggest a mismatch, helping users optimize for market volatility or direction.
2. **Risk Assessment with Greeks**: Net Delta indicates directional bias (e.g., near zero for delta-neutral strategies like Iron Condor), allowing users to hedge against price moves. Net Theta quantifies daily time decay, crucial for theta-positive strategies—users can analyze how much profit they might gain per day if the underlying asset stays range-bound. This is especially valuable for income-focused traders.
3. **Premium and Volume Monitoring**: By plotting combined premium, users can track strategy value in real-time, identifying entry/exit points when premium crosses a moving average (e.g., buy when below EMA). Volume data per leg helps gauge liquidity, avoiding low-volume options that could lead to poor fills.
4. **Integration with Technical Indicators**: Overlaying strategies on RSI or MACD enables hybrid analysis. For example, a user might enter a Bull Call Spread when RSI is oversold, using the indicator's plot to visualize potential premium gains alongside RSI crossovers.
5. **Alert-Driven Trading**: Custom alerts notify users of premium changes or suggested strategy shifts, enabling hands-off monitoring. This is useful for busy traders, who can set notifications for when net Theta exceeds a threshold, signaling favorable decay conditions.
6. **Educational and Backtesting Tool**: Beginners can experiment with strategies to understand how strikes and widths affect outcomes. Advanced users can backtest by replaying historical data, analyzing how strategies performed in past markets.
Overall, MultiPrem+ transforms option trading from manual spreadsheet work into an interactive, visual experience, helping users spot opportunities, manage risks, and optimize returns with data-driven insights. For best results, combine it with external option pricing tools for precise Greeks, as the script uses approximate values.
Updated timestamp for alerts: `2025-09-06 13:50:00` (1:50 PM IST, September 06, 2025).
3-Candle Swing Highs & Lows//@version=5
indicator("3-Candle Swing Highs & Lows", overlay=true, max_lines_count=1000)
// Inputs
highColor = input.color(color.red, "Swing High (Unbroken)")
highBreachCol = input.color(color.green, "Swing High (Breached)")
lowColor = input.color(color.blue, "Swing Low (Unbroken)")
lowBreachCol = input.color(color.orange, "Swing Low (Breached)")
// Arrays for storing lines and prices
var line highLines = array.new_line()
var float highPrices = array.new_float()
var line lowLines = array.new_line()
var float lowPrices = array.new_float()
// --- Swing High condition ---
// We check candle (the middle one) against candle and candle
isSwingHigh = high > high and high > high
// --- Swing Low condition ---
isSwingLow = low < low and low < low
// If swing high found (confirmed after bar closes)
if isSwingHigh
newHigh = line.new(bar_index - 1, high , bar_index, high , extend=extend.right, color=highColor, width=2)
array.push(highLines, newHigh)
array.push(highPrices, high )
// If swing low found (confirmed after bar closes)
if isSwingLow
newLow = line.new(bar_index - 1, low , bar_index, low , extend=extend.right, color=lowColor, width=2)
array.push(lowLines, newLow)
array.push(lowPrices, low )
// Update line colours for swing highs
for i = 0 to array.size(highLines) - 1
ln = array.get(highLines, i)
lvl = array.get(highPrices, i)
if close > lvl
line.set_color(ln, highBreachCol)
else
line.set_color(ln, highColor)
// Update line colours for swing lows
for i = 0 to array.size(lowLines) - 1
ln = array.get(lowLines, i)
lvl = array.get(lowPrices, i)
if close < lvl
line.set_color(ln, lowBreachCol)
else
line.set_color(ln, lowColor)
Marubozu Detector with Dynamic SL/TP
Strategy Overview:
This indicator detects a "Marubozu" bullish pattern or a “Marubozu” bearish pattern to suggest potential buy and sell opportunities. It uses dynamic Stop Loss (SL) and Take Profit (TP) management, based on either market volatility (ATR) or liquidity zones.
This tool is intended for educational and informational purposes only.
Key Features:
Entry: Based on detecting Marubozu bullish or bearish candle pattern.
Exit: Targets are managed through ATR multiples or previous liquidity levels (swing highs or swing lows).
Smart Liquidity: Optionally identify deeper liquidity targets.
Full Alerts: Buy and Sell signals supported with customizable alerts.
Visualized Trades: Entry, SL, and TP levels are plotted on the chart.
User Inputs:
ATR Length, ATR Multipliers
Take Profit Mode (Liquidity/ATR)
Swing Lookback and Strength
Toggleable Buy/Sell alerts
All Time Frames
📖 How to Use:
Add the Indicator:
Apply the script to your chart from the TradingView indicators panel.
Look for Buy Signals:
A buy signal is triggered when the script detects a "Marubozu" bullish pattern.
Entry, Stop Loss, and Take Profit levels are plotted automatically.
Look for Sell Signals:
A Sell signal is triggered when the script detects a "Marubozu" bearish pattern.
Entry, Stop Loss, and Take Profit levels are plotted automatically.
Choose Take Profit Mode:
ATR Mode: TP is based on a volatility target.
Liquidity Mode: TP is based on past swing highs.
Set Alerts (Optional):
Enable Buy/Sell alerts in the settings to receive real-time notifications.
Practice First:
Always backtest and paper trade before live use.
📜 Disclaimer:
This script does not offer financial advice.
No guarantees of profit or performance are made.
Use in demo accounts or backtesting first.
Always practice proper risk management and seek advice from licensed professionals if needed.
✅ Script Compliance:
This script is designed in full accordance with TradingView’s House Rules for educational tools.
No financial advice is provided, no performance is guaranteed, and users are encouraged to backtest thoroughly.
Multi-Leg Option Combined PremiumMulti-Leg Option Combined Premium Indicator
Overview
The Multi-Leg Option Combined Premium Indicator is a powerful and versatile tool designed for options traders to analyze and visualize multi-leg option strategies on Indian indices (NIFTY, BANKNIFTY, SENSEX). This TradingView Pine Script (v6) indicator calculates the combined premium of up to four option legs, displays the strategy in a customizable table, and overlays user-selected technical indicators (e.g., SMA, RSI, MACD) to aid in decision-making. Whether you're trading straddles, strangles, or complex strategies like Iron Condors, this indicator streamlines premium tracking and trend analysis, making it ideal for both novice and experienced traders.
Key Features
Multi-Leg Strategy Support:
Choose from 19 predefined option strategies, including Long Straddle, Short Strangle, Iron Condor, Bull Call Spread, and more, or create a custom strategy with up to four legs.
Configure each leg with specific expiry dates, strike prices, option types (Call/Put), and positions (Long/Short) with adjustable quantities.
Automatically calculates the combined premium, accounting for the direction (long/short) and quantity of each leg.
Index-Specific Customization:
Supports three major Indian indices: NIFTY, BANKNIFTY, and SENSEX.
Index-specific expiry dates:
NIFTY: Weekly (Tuesdays) and monthly (last Tuesday) expiries (e.g., 09-Sep-2025 to 04-Nov-2025).
BANKNIFTY: Monthly (last Wednesday) expiries (e.g., 25-Sep-2025 to 29-May-2026).
SENSEX: Weekly (Fridays) and monthly (last Friday) expiries (e.g., 11-Sep-2025 to 06-Nov-2025).
Adjustable ATM strike levels and strike width multipliers for precise strategy setup.
Technical Indicator Overlay:
Overlay one of 10 popular technical indicators on the combined premium chart: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, Stochastic, Williams %R, CCI, or ADX.
Customize indicator parameters (e.g., RSI length, MACD fast/slow lengths) to align with your trading style.
Visual cues: Combined premium is color-coded (red/green/blue for credits, red/green/orange for debits) based on its position relative to the selected indicator.
Dynamic Table Display:
Displays a detailed table summarizing the strategy, including:
Instrument (NIFTY/BSX), expiry, option type, strike, position, premium, and quantity per leg.
Net position (Credit/Debit) and total combined premium.
Customizable table size (tiny, small, normal) and position (e.g., top-right, bottom-left).
Option to toggle P&L info (quantity column) for clarity.
Alert Integration:
Built-in alert functionality to log strategy details (timestamp, index, strategy, premium, indicator value, credit/debit status) to external services like Google Sheets via webhooks.
Example: Trigger alerts at specific times (e.g., 9:30 AM on 05-Sep-2025) or on new bars for real-time tracking.
Visual Feedback:
Plots the combined premium with dynamic coloring to reflect market conditions.
Indicator-specific visuals (e.g., Bollinger Bands upper/lower lines, RSI overbought/oversold levels, MACD signal line).
Background coloring to indicate net credit (blue) or debit (orange) strategies.
How It Works
Select an Index: Choose NIFTY, BANKNIFTY, or SENSEX to load index-specific prefixes (NSE:/BSE:) and expiry dates.
Choose a Strategy: Select a predefined strategy (e.g., Long Straddle, Iron Condor) or configure a custom strategy with up to four legs.
Set Parameters: Adjust ATM strike, strike width multiplier, and expiry dates. For custom strategies, specify each leg’s expiry, type, strike, position, and quantity.
Apply Technical Indicators: Pick an indicator (e.g., RSI, MACD) and customize its settings to analyze the combined premium’s trend.
View Results: The indicator calculates the combined premium, displays it in a table, and plots it with the selected indicator. Alerts can send data to external services for logging.
Analyze and Trade: Use the premium plot and indicator signals to make informed trading decisions, with the table providing a clear overview of your strategy.
Benefits
Time-Saving: Automates premium calculations for complex multi-leg strategies, reducing manual effort.
Flexible: Supports a wide range of strategies and indices, with customizable inputs for tailored analysis.
Visual Clarity: Combines premium data with technical indicators in an easy-to-read chart and table format.
Actionable Insights: Color-coded plots and alerts help traders identify trends and track performance.
External Logging: Seamlessly integrates with webhooks for real-time data logging to tools like Google Sheets.
Usage Instructions
Add to Chart: Apply the indicator to a TradingView chart for NIFTY, BANKNIFTY, or SENSEX.
Configure Inputs:
Select the index and strategy from the dropdowns.
Adjust ATM strike, strike width, and expiry dates as needed.
Choose a technical indicator and tweak its parameters.
Set table preferences (size, position, P&L info).
Set Up Alerts (Optional):
Create a TradingView alert with a webhook URL pointing to a service like Pabbly Connect or Zapier.
Use the alert’s JSON output to log data to Google Sheets (e.g., timestamp, strategy, premium).
Interpret Results:
Monitor the premium plot (colored based on trend relative to the indicator).
Review the table for leg details and net position.
Use alerts to track strategy performance externally.
Ideal For
Options Traders: Perfect for traders focusing on Indian indices, seeking to analyze multi-leg strategies like straddles, spreads, or condors.
Technical Analysts: Combines option premiums with technical indicators for trend-based trading decisions.
Portfolio Managers: Useful for tracking premium changes and logging performance for later analysis.
Notes
Data Requirements: Ensure your TradingView account has access to real-time data for NIFTY, BANKNIFTY, or SENSEX options. Invalid symbols may return na values.
Alerts: Webhook setup requires a third-party service (e.g., Pabbly Connect, Zapier) to log data to Google Sheets. Refer to the included guide for setup details.
Performance: Best used on timeframes aligned with option expiries (e.g., daily or intraday).
Disclaimer: This indicator is for educational purposes only and does not constitute financial advice. Always conduct your own analysis before trading.
Support
For setup assistance, bug reports, or feature requests, contact the developer via . Premium subscribers receive priority support and access to exclusive features like webhook setup guides.
sHip Crypto Buy/Sell Pro BTC 15minThis is a 15min BTC buy sell indicator that is made by Ai. Have not tested yet but you can give it a go if you want.
LFT strategy Main Reversion
this script will tell exactly when to buy and sell with TP and SL, used the latest LLM to tone the model with a profit ratio of 2.05 in 6 years and profit ratio of 4.02 in past 6 month and have been back tested with Monte Carlo simulation, with profit ratio 1+ for 99% of the time with 1000 iterations with 500 steps, for 100 times
please contact LFT Foundation for access
Hilly's Advanced Crypto Scalping Strategy - 5 Min ChartTo determine the "best" input parameters for the Advanced Crypto Scalping Strategy on a 5-minute chart, we need to consider the goals of optimizing for profitability, minimizing false signals, and adapting to the volatile nature of cryptocurrencies. The default parameters in the script are a starting point, but the optimal values depend on the specific cryptocurrency pair, market conditions, and your risk tolerance. Below, I'll provide recommended input values based on common practices in crypto scalping, along with reasoning for each parameter. I’ll also suggest how to fine-tune them using TradingView’s backtesting and optimization tools.
Recommended Input Parameters
These values are tailored for a 5-minute chart for liquid cryptocurrencies like BTC/USD or ETH/USD on exchanges like Binance or Coinbase. They aim to balance signal frequency and accuracy for day trading.
Fast EMA Length (emaFastLen): 9
Reasoning: A 9-period EMA is commonly used in scalping to capture short-term price movements while remaining sensitive to recent price action. It reacts faster than the default 10, aligning with the 5-minute timeframe.
Slow EMA Length (emaSlowLen): 21
Reasoning: A 21-period EMA provides a good balance for identifying the broader trend on a 5-minute chart. It’s slightly longer than the default 20 to reduce noise while confirming the trend direction.
RSI Length (rsiLen): 14
Reasoning: The default 14-period RSI is a standard choice for momentum analysis. It works well for detecting overbought/oversold conditions without being too sensitive on short timeframes.
RSI Overbought (rsiOverbought): 75
Reasoning: Raising the overbought threshold to 75 (from 70) reduces false sell signals in strong bullish trends, which are common in crypto markets.
RSI Oversold (rsiOversold): 25
Reasoning: Lowering the oversold threshold to 25 (from 30) filters out weaker buy signals, ensuring entries occur during stronger reversals.
MACD Fast Length (macdFast): 12
Reasoning: The default 12-period fast EMA for MACD is effective for capturing short-term momentum shifts in crypto, aligning with scalping goals.
MACD Slow Length (macdSlow): 26
Reasoning: The default 26-period slow EMA is a standard setting that works well for confirming momentum trends without lagging too much.
MACD Signal Smoothing (macdSignal): 9
Reasoning: The default 9-period signal line is widely used and provides a good balance for smoothing MACD crossovers on a 5-minute chart.
Bollinger Bands Length (bbLen): 20
Reasoning: The default 20-period Bollinger Bands are effective for identifying volatility breakouts, which are key for scalping in crypto markets.
Bollinger Bands Multiplier (bbMult): 2.0
Reasoning: A 2.0 multiplier is standard and captures most price action within the bands. Increasing it to 2.5 could reduce signals but improve accuracy in highly volatile markets.
Stop Loss % (slPerc): 0.8%
Reasoning: A tighter stop loss of 0.8% (from 1.0%) suits the high volatility of crypto, helping to limit losses on false breakouts while keeping risk manageable.
Take Profit % (tpPerc): 1.5%
Reasoning: A 1.5% take-profit target (from 2.0%) aligns with scalping’s goal of capturing small, frequent gains. Crypto markets often see quick reversals, so a smaller target increases the likelihood of hitting profits.
Use Candlestick Patterns (useCandlePatterns): True
Reasoning: Enabling candlestick patterns (e.g., engulfing, hammer) adds confirmation to signals, reducing false entries in choppy markets.
Use Volume Filter (useVolumeFilter): True
Reasoning: The volume filter ensures signals occur during high-volume breakouts, which are more likely to sustain in crypto markets.
Signal Arrow Size (signalSize): 2.0
Reasoning: Increasing the arrow size to 2.0 (from 1.5) makes buy/sell signals more visible on the chart, especially on smaller screens or volatile price action.
Background Highlight Transparency (bgTransparency): 85
Reasoning: A slightly higher transparency (85 from 80) keeps the background highlights subtle but visible, avoiding chart clutter.
How to Apply These Parameters
Copy the Script: Use the Pine Script provided in the previous response.
Paste in TradingView: Open TradingView, go to the Pine Editor, paste the code, and click "Add to Chart."
Set Parameters: In the strategy settings, manually input the recommended values above or adjust them via the input fields.
Test on a 5-Minute Chart: Apply the strategy to a liquid crypto pair (e.g., BTC/USDT, ETH/USDT) on a 5-minute chart.
Fine-Tuning for Optimal Performance
To find the absolute best parameters for your specific trading pair and market conditions, use TradingView’s Strategy Tester and optimization features:
Backtesting:
Run the strategy on historical data for your chosen pair (e.g., BTC/USDT on Binance).
Check metrics like Net Profit, Profit Factor, Win Rate, and Max Drawdown in the Strategy Tester.
Focus on a sample period of at least 1–3 months to capture various market conditions (bull, bear, sideways).
Parameter Optimization:
In the Strategy Tester, click the settings gear next to the strategy name.
Enable optimization for key inputs like emaFastLen (test range: 7–12), emaSlowLen (15–25), slPerc (0.5–1.5), and tpPerc (1.0–3.0).
Run the optimization to find the combination with the highest net profit or best Sharpe ratio, but avoid over-optimization (curve-fitting) by testing on out-of-sample data.
Market-Specific Adjustments:
Volatile Pairs (e.g., DOGE/USDT): Use tighter stop losses (e.g., 0.5–0.7%) and smaller take-profit targets (e.g., 1.0–1.2%) to account for rapid price swings.
Stable Pairs (e.g., BTC/USDT): Slightly wider stop losses (e.g., 1.0–1.2%) and take-profit targets (e.g., 1.8–2.5%) may work better.
Trending Markets: Increase emaSlowLen (e.g., to 25–30) to follow stronger trends.
Choppy Markets: Tighten bbMult (e.g., to 1.8) and lower rsiOverbought/rsiOversold (e.g., to 70/30) to filter noise.
Forward Testing:
After backtesting, run the strategy in real-time on a demo account for 1–2 weeks to validate performance under current market conditions.
Important Notes
No Universal "Best" Numbers: Optimal parameters vary by crypto pair, exchange, and market conditions (e.g., bull vs. bear market). The suggested values are a starting point based on common scalping practices.
Risk Management: Never risk more than 1–2% of your account per trade. Adjust position sizing in TradingView’s strategy settings to align with your risk tolerance.
Market Volatility: Crypto markets are highly volatile. Test the strategy on your specific pair and adjust parameters if signals are too frequent or too rare.
Not Financial Advice: This is an educational tool. Backtest thoroughly and use a demo account before trading with real funds.
If you want me to generate a chart showing backtest performance for specific parameters or to tweak the script further (e.g., adding more indicators or adjusting signal logic), let me know!can you add clear buy ans sell signs above the candles in this codeTo add clear buy and sell signals above the candles in the provided Pine Script, I'll modify the existing code to include prominent text labels directly above (for sell signals) and below (for buy signals) the candles. These labels will be larger, color-coded, and positioned to avoid clutter, ensuring they are easily visible on the chart. The core strategy logic (EMA, RSI, MACD, Bollinger Bands, candlestick patterns, and volume filter) will remain unchanged, and I'll reuse the same artifact_id since this is an update to the previous script.AdvancedCryptoScalpingStrategy.pinex-pine
Trend Score HTF (Raw Data) Pine Screener📘 Trend Score HTF (Raw Data) Pine Screener — Indicator Guide
This indicator tracks price action using a custom cumulative Trend Score (TS) system. It helps you visualize trend momentum, detect early reversals, confirm direction changes, and screen for entries across large watchlists like SPX500 using TradingView’s Pine Script Screener (beta).
⸻
🔧 What This Indicator Does
• Assigns a +1 or -1 score when price breaks the previous high or low
• Accumulates these scores into a real-time tsScore
• Detects early warnings (primed flips) and trend changes (confirmed flips)
• Supports alerts and labels for visual and automated trading
• Designed to work inside the Pine Screener so you can filter hundreds of tickers live
⸻
⚙️ Recommended Settings (for Beginners)
When adding the indicator to your chart:
Go to the “Inputs” tab at the top of the settings panel.
Then:
• Uncheck “Confirm flips on bar close”
• Check “Accumulate TS Across Flips? (ON = non-reset, OFF = reset)”
This setup allows you to see trend changes immediately without waiting for bar closes and lets the trend score build continuously over time, making it easier to follow long trends.
⸻
🧠 Core Logic
Start Date
Select a meaningful historical start date — for example: 2020-01-01. This provides long-term context for trend score calculation.
Per-Bar Delta (Δ) Calculation
The indicator scores each bar based on breakout behavior:
If the bar breaks only the previous high, Δ = +1
If it breaks only the previous low, Δ = -1
If it breaks both the high and low, Δ = 0
If it breaks neither, Δ = 0
This filters out wide-range or indecisive candles during volatility.
Cumulative Trend Score
Each bar’s delta is added to the running tsScore.
When it rises, bullish pressure is building.
When it falls, bearish pressure is increasing.
Trend Flip Logic
A bullish flip happens when tsScore rises by +3 from the lowest recent point.
A bearish flip happens when tsScore falls by -3 from the highest recent point.
These flips update the active trend direction between bullish and bearish.
⸻
⚠️ What Is a “Primed” Flip?
A primed flip is a signal that the current trend is about to flip — just one point away.
A primed bullish flip means the trend is currently bearish, but the tsScore only needs +1 more to flip. If the next bar breaks the previous high (without breaking the low), it will trigger a bullish flip.
A primed bearish flip means the trend is currently bullish, but the tsScore only needs -1 more to flip. If the next bar breaks the previous low (without breaking the high), it will trigger a bearish flip.
Primed flips are plotted one bar ahead of the current bar. They act like forecasts and give you a head start.
⸻
✅ What Is a “Confirmed” Flip?
A confirmed flip is the first bar of a new trend direction.
A confirmed bullish flip appears when a bearish trend officially flips into a new bullish trend.
A confirmed bearish flip appears when a bullish trend officially flips into a new bearish trend.
These signals are reliable and great for entries, trend filters, or reversals.
⸻
🖼 Visual Cues
The trend score (tsScore) line shows the accumulated trend strength.
A Δ histogram shows the daily price contribution: +1 for breaking highs, -1 for breaking lows, 0 otherwise.
A green background means the chart is in a bullish trend.
A red background means the chart is in a bearish trend.
A ⬆ label signals a primed bullish flip is possible on the next bar.
A ⬇ label signals a primed bearish flip is possible on the next bar.
A ✅ means a bullish flip just confirmed.
A ❌ means a bearish flip just confirmed.
⸻
🔔 Alerts You Can Use
The indicator includes these built-in alerts:
• Primed Bullish Flip — watch for possible bullish reversal tomorrow
• Primed Bearish Flip — watch for possible bearish reversal tomorrow
• Bullish Confirmed — official entry into new uptrend
• Bearish Confirmed — official entry into new downtrend
You can set these alerts in TradingView to monitor across your chart or watchlist.
⸻
📈 How to Use in TradingView Pine Screener
Step 1: Create your own watchlist — for example, SPX500
Step 2: Favorite this indicator so it shows up in the screener
Step 3: Go to TradingView → Products → Screeners → Pine (Beta)
Step 4: Select this indicator and choose a condition, like “Bullish Confirmed”
Step 5: Click Scan
You’ll instantly see stocks that just flipped trends or are close to doing so.
⸻
⏰ When to Use the Screener
Use this screener after market close or before the next open to avoid intraday noise.
During the day, if a candle breaks both the high and low, the delta becomes 0, which may cancel a flip or primed signal.
Results during regular trading hours can change frequently. For best results, scan during stable periods like pre-market or after-hours.
⸻
🧪 Real-World Examples
SWK
NVR
WMT
UNH
Each of these examples shows clean, structured trend transitions detected in advance or confirmed with precision.
PLTR: complicated case primed for bullish (but we don't when it will flip)
⚠️ Risk Disclaimer & Trend Context
A confirmed bullish signal does not guarantee an immediate price increase. Price may continue to consolidate or even pull back after a bullish flip.
Likewise, a primed bullish signal does not always lead to confirmation. It simply means the conditions are close — but if the next bar breaks both the high and low, or breaks only the low, the flip will be canceled.
On the other side, a confirmed bearish signal does not mean the market will crash. If the overall trend is bullish (for example, tsScore has been rising for weeks), then a bearish flip may just represent a short-term pullback — not a trend reversal.
You always need to consider the overall market structure. If the long-term trend is bullish, it’s usually smarter to wait for bullish confirmation signals. Bearish flips in that context are often just dips — not opportunities to short.
This indicator gives you context, not predictions. It’s a tool for alignment — not absolute outcomes. Use it to follow structure, not fight it.
Automatic Ryze Zones v. 2.1.0Automatic Ryze Zones v2.1.0 — Multi-City Sunrise Opening Zones + Mitigation Signals
Automatic Ryze Zones maps the first actionable range at astronomical sunrise for major financial hubs and your own custom city—then watches how price reacts to those zones through the day. It’s built for intraday traders who like session structure, time-based anchors, and objective “tap/mitigation” signals.
What it plots
Sunrise Zone (per city):
At the exact local sunrise minute, the indicator captures the 1-minute candle’s high & low and paints a box that extends right across the session.
Optionally plots a dashed midline (the zone’s midpoint).
Mitigation Arrows (optional):
• ▲ Bullish when price interacts with a city’s zone in a bullish manner
• ▼ Bearish for bearish interactions
Signals are filtered by your choice of wick/close logic and a volatility gate (ATR ratio).
Timing Table:
For each enabled city, an on-chart table shows four equal intervals from sunrise to 22:00 UTC, helping you pre-plan intraday inflection windows.
(Debug) Heights Table:
Optional table listing the captured High/Low used to build each zone.
Cities covered (toggle any on/off)
New York, London, Tokyo, Auckland, Dubai, Rio, Reykjavik, Dallas, plus your Custom City (name + lat/lon).
Each city has its own:
Box color & opacity
“Show box” and “Show midline” toggles
Time-offset override (advanced)
Tip: Use the custom city to track your local market, a specific exchange, or any location you care about.
How it works (under the hood)
Astronomical Sunrise Calculation
For each day and city (lat/lon), the script computes sunrise using standard solar geometry (zenith ≈ 90.83°). This yields sunrise in UTC, then converts to local with the city’s time offset.
Zone Capture at Sunrise
At the exact sunrise minute, the script requests lower-timeframe data via request.security_lower_tf(...) and grabs the 1-minute High/Low. That becomes the zone for that city and day.
Zones Extend Right
The box is created at the sunrise bar and extends to the right for the rest of the session, giving you durable structure to trade around.
Mitigation Logic (signals)
You choose the interaction rule:
Wick: low-into-zone with a bullish candle → ▲; high-into-zone with a bearish candle → ▼
Close: both open & close inside the zone (bullish → ▲ / bearish → ▼)
Wick or Close: combines both checks
A volatility filter controls noise:
ATR_ratio = ATR(1) / ATR(2500) must be greater than your threshold (default 0.25) for the signal to print.
Timing Intervals Table
The time from sunrise → 22:00 UTC is divided into four equal parts per city. The table shows the resulting timestamps to help anticipate rhythm shifts.
Key inputs
Ryze Zone Master Switch — global on/off
Automatic Time Settings
Chart Zones for Today’s Date (true/false)
↺ Lookback (number of trading days back; weekends auto-skipped)
Manual Date Range (when Auto is off) — “Chart Zones from / To”
Per-City Settings
Show ■ (box), Show ⎯ (midline), Opacity, Color
Time Offset (advanced; typically leave 0 or -24 as noted)
Add Your City
Title, Lat., Lon., Color
Show box/midline, Opacity
Custom City Time Offset
Zone Mitigation Settings
Show Zone Mitigation (signals on/off)
Filter By: Wick, Close, or Wick or Close
▲ / ▼ colors
ATR Filter (default 0.25 on ATR ratio)
Debug
Table Page (for stepping through stored days)
⏼ (toggle debug table of High/Low per city)
Suggested use
Confluence trading: Combine Ryze Zones with your session bias, market profile, VWAP, or liquidity maps.
Tap/Mitigate behavior: Watch for first touch, failures to break, and midline reactions; the ATR filter helps you ignore low-energy pokes.
Timing awareness: Use the four interval times as soft “checkpoints” for rotation or continuation.
Notes & limitations
Timeframes: Works on intraday charts; uses 1-minute data internally.
Weekends: Auto-skipped in lookback.
Offsets: City time offsets are advanced controls for edge cases (synthetic sessions, DST quirks). If unsure, leave at default.
Performance: The script is optimized (uses dynamic_requests = true), but enabling many cities + long lookbacks can approach max_lines/boxes.
Historical signals: Mitigation arrows evaluate against today’s zones by design (historical arrays are foundational but signals key off the current day).
Quick start
Turn Ryze Zone Master Switch on.
Set Automatic Time on and choose your Lookback (e.g., 3).
Enable the cities you care about (NY/LON/TYO are a solid start).
Turn on Zone Mitigation with Wick or Close and keep ATR Filter = 0.25–0.35 to start.
Trade reactions into/out of zones with your own risk plan.
Credits / Version
v2.1.0 — Multi-city sunrise zones, mitigation signals with ATR ratio, interval timing table, custom city support, debug tools.
EWC Zone Matrix📌 EWC Precision Blocks
🔎 Overview
EWC Precision Blocks is a professional market analysis tool designed to highlight high-probability trading zones on the chart. Instead of relying on lagging signals, this indicator maps out Alpha Zones (bullish) and Beta Zones (bearish), allowing traders to identify potential market reaction areas with clarity.
The algorithm is built to adapt across Scalp, Swing, and Position trading modes, making it flexible for short-term intraday traders as well as long-term investors.
⚡ Key Features
Multi-Mode Detection – Switch between Scalp, Swing, or Position modes depending on your trading style.
EWC Alpha Zone (Bullish Detection) – Highlights areas where the market may find strong upward momentum.
EWC Beta Zone (Bearish Detection) – Highlights areas where the market may face downward pressure.
Zone Break Tracking – Visualizes when a zone has been invalidated or broken.
Body-Based Detection – Option to base calculations on candle bodies instead of wicks for precision.
Zone Flips – Displays polarity shifts when zones transition from supportive to resistive behavior (and vice versa).
Custom Styling – Full control of zone and break colors for clear chart visualization.
🎯 How to Use
Select Your Mode
Scalp → Designed for fast intraday moves.
Swing → Medium-term setups, ideal for session trading.
Position → Long-term outlook, suitable for investors.
Watch the Alpha Zones
Highlighted bullish areas can serve as potential support or accumulation zones.
Watch the Beta Zones
Highlighted bearish areas may act as resistance or distribution zones.
Monitor Breaks & Flips
Alpha Breaks → Bullish zones failing.
Beta Breaks → Bearish zones failing.
Zone Flips → Polarity changes, often powerful signals.
🛠 Inputs & Customization
EWC Mode → Choose Scalp, Swing, or Position.
Show Last Alpha Zone → Set how many bullish zones to display.
Show Last Beta Zone → Set how many bearish zones to display.
Body-Based Detection → Toggle candle body vs. wick calculation.
EWC Alpha Zone / Beta Zone Styling → Customize zone colors.
Alpha Break / Beta Break Colors → Adjust break visuals.
Show Zone Flips → Enable/disable historical polarity labels.
Status Bar → Display inputs directly in the chart status line.
📈 Best Practices
Works across all timeframes and markets (forex, crypto, indices, stocks).
Combine with your existing strategy for confirmation.
Use in alignment with higher timeframe structure for maximum accuracy.
⚠ Disclaimer
EWC Precision Blocks is a market visualization tool provided for educational purposes only. It does not provide financial advice, signals, or guaranteed results. Always do your own research and manage risk responsibly.
🔹 About EWC
EWC (EastWave Capital) is dedicated to developing professional-grade trading tools and strategies for traders across forex, crypto, commodities, and indices. With over a decade of combined market experience, our mission is to empower traders with precision, clarity, and confidence in their decision-making.
EWC Precision Blocks is one of our flagship tools, reflecting our commitment to innovation, transparency, and trader-focused solutions.
📌 Published by Usama Manzoor — Founder of EastWave Capital (EWC)
1 minute ago
Release Notes
EWC Precision Blocks
The EWC Alpha-Beta Zone Detector is designed for traders who value clarity, precision, and flexibility in their chart analysis.
By mapping out Alpha (strength) and Beta (weakness) zones, this script provides a structured way to understand how price reacts to key levels in the market.
This indicator is built on price action principles and market structure analysis, avoiding clutter and focusing on the essentials traders need. Whether you are scalping on lower timeframes or analyzing swing opportunities, the Alpha-Beta Zone Detector adapts to your style.
🔹 Core Features
Alpha & Beta Zones → Detects bullish and bearish strength zones in real time.
Highlight Last Zone → Focus on the most recent Alpha/Beta zone for clarity.
Zone Flip Detection → Identifies polarity changes when zones shift from support to resistance or vice versa.
Body-Based Detection → Option to base calculations on candle bodies instead of wicks for more accuracy.
Flexible Timeframe Sensitivity → Switch between short, intermediate, and long-term detection modes.
Custom Zone Styling → Adjust colors, opacity, and line thickness for both Alpha and Beta zones.
Break Visualization → Display breaks of Alpha and Beta zones for additional confirmation.
Market Versatility → Works seamlessly on Forex, Crypto, Indices, Commodities, and Stocks.
🔹 Why Traders Use It
Provides a clear visual guide to market decision zones.
Helps traders refine entries, stop-loss placement, and take-profit levels.
Adapts to multiple trading styles → scalpers, intraday traders, and swing traders.
Keeps charts clean and professional without overloading with unnecessary signals.
⚠️ Disclaimer:
This script is created for educational and informational purposes only. It does not provide financial advice. Trading involves risk; always manage your risk responsibly and conduct your own analysis before entering any position.
Bull/Bear Flag + 9-21 EMA Cross with Targetssimple chart indicator help with buy sell targets using bear and bull flag along with moving averages on chart -helpful for beginner traders
Greer Gap# Greer Gap Indicator (No mitigation: i.e. removing false signals)
## Summary
The **Greer Gap Indicator** identifies **Fair Value Gaps (FVGs)** and introduces specialized **Greer Bull Gaps (Blue)** and **Greer Bear Gaps (Orange)** to highlight high-probability trading opportunities. Unlike traditional FVG indicators, it avoids hindsight bias by not removing historical gaps based on future price action, ensuring transparency in signal accuracy. Built upon LuxAlgo’s FVG logic, it adds unique filtering: only the first Greer Gap after an opposite gap is plotted if its level (min for Bull, max for Bear) is not higher/lower than the previous Greer Gap of the same type, while all valid gaps are recorded for comparison. Traders can use these gaps as support/resistance or entry signals, customizable via timeframe, look back, and display options.
## Description
This indicator detects and displays **Fair Value Gaps (FVGs)** on the chart, with a focus on specialized **Greer Gaps**:
- **Bullish Gaps (Green)**: Areas where the low of the current candle is above the high of a previous candle (look back period), indicating potential upward momentum.
- **Bearish Gaps (Red)**: Areas where the high of the current candle is below the low of a previous candle, indicating potential downward momentum.
- **Greer Bull Gaps (Blue)**: A bullish gap that is above the latest bearish gap's max. Only the first such gap after a bearish gap is plotted if it meets criteria (not higher than the previous Greer Bull Gap's min), but all valid ones are recorded for comparison.
- **Greer Bear Gaps (Orange)**: A bearish gap that is below the latest bullish gap's min. Only the first such gap after a bullish gap is plotted if it meets criteria (not lower than the previous Greer Bear Gap's max), but all valid ones are recorded.
## How It Works
The script uses a dynamic look back period to detect FVGs. It maintains a record of all detected gaps and applies additional logic for Greer Gaps:
- **Greer Bull Gaps**: Checks if the new bullish gap's min is above the latest bearish gap's max. Plots only if it's the first since the last bearish gap and its min is <= previous Greer Bull min (or first one).
- **Greer Bear Gaps**: Checks if the new bearish gap's max is below the latest bullish gap's min. Plots only if it's the first since the last bullish gap and its max is >= previous Greer Bear max (or first one).
- **Resets**: A new bearish gap resets the Greer Bull Gap flag, and a new bullish gap resets the Greer Bear Gap flag.
## How to Use
- **Timeframe**: Set a higher timeframe (e.g., 'D' for daily) to detect gaps from that timeframe on the current chart.
- **Look back Period**: Adjust to change gap detection sensitivity (default: 34). Use 2 if you want to compare to LuxAlgo
- **Extend**: Controls how far right the gap boxes extend.
- **Show Options**: Toggle visibility of all bullish/bearish gaps or Greer Gaps.
- **Colors**: Customize colors for each gap type.
- **Application**: Use Greer Gaps as potential support/resistance levels or entry signals, but combine with other analysis for confirmation.
## Originality and Credits
This script is inspired by and builds upon the **"Fair Value Gap "** indicator by LuxAlgo (available on TradingView: ()).
**Credits**: Thanks to LuxAlgo for the core FVG detection logic.
**Significant Changes**:
- Added **Greer Bull and Bear Gap** logic for filtered, directional gaps with reset mechanisms.
- Introduced recording of all valid Greer Gaps without plotting all, to compare levels without hindsight bias.
- **No mitigation/removal of gaps**: Unlike LuxAlgo's approach, which mitigates (removes or alters) gaps based on future price action (e.g., when filled), this can create a hindsight bias where incorrect signals disappear over time. If a signal is used for a trade and later removed due to new data, it doesn't reflect real-time performance accurately. The Greer Gap avoids this by using gap comparisons to validate signals without altering historical boxes, ensuring transparency in when signals were right or wrong.