💎 ENJOYBLUE ⏰ Open Price AlertThis Pine Script (version 6) is designed for TradingView to monitor the closing of a user-selected Timeframe (TF) — for example, M30, H1, H4, or D1 — and trigger an alert immediately when that TF’s candle closes. Along with the alert, it displays the current open prices from four higher-level timeframes:
Open MN: Open price of the current monthly candle
Open W1: Open price of the current weekly candle
Open D1: Open price of the current daily candle
Open H4: Open price of the current 4-hour candle
The alert message is formatted into a single compact line to ensure it is fully visible on mobile devices!
~ENJOYBLUE 💎
Penunjuk dan strategi
BTC/USD Confluence Breakout Pro – IST EditionBTC/USD Confluence Breakout Pro – IST Edition is a multi-factor breakout trading system designed for intraday and swing traders.
It combines trend, momentum, price action, volume, and candlestick analysis with time-based volatility windows to deliver high-probability Buy/Sell signals.
Key Features:
Trend Filters: EMA 9/21 crossover + optional EMA 200 bias filter.
Price Action Breakouts: Detects closes above/below the last N bars’ range.
Candlestick Patterns: Bullish/Bearish engulfing, hammer, and shooting star.
Momentum Indicators: RSI (14) with configurable thresholds, MACD (12/26/9).
Volume Confirmation: Volume spike vs 20-period SMA.
IST Breakout Windows: Highlights Early London, London–US Overlap, and US Open momentum periods (Hyderabad/IST time). Optionally restricts signals to these windows.
Risk Management: ATR-based stop-loss + auto-plotted 1R, 2R, and 3R take-profit levels.
Visual Aids: EMA plots, bar coloring, shaded volatility windows, and clear entry/exit labels.
Alerts: Configurable alerts for both Buy and Sell signals.
Best Use:
Apply on 1m–15m charts for intraday trading or 1H–4H for swings.
Works best during high-volatility IST windows (London–US overlap & US open).
Ideal for BTC/USD but adaptable to other crypto or forex pairs.
Kalman Supertrend (High vs Low) Bands Inspired by BackQuant, this script modifies the original Kalman Hull Supertrend by replacing the close price with High and Low sources. This creates clearer trend definition and better trend tracking.
This is one of the best trend indicators that can be used for trend trading or to capture reversals with high clarity.
Key Features:
Kalman High/Low Bands — Smooths market noise while separating bullish and bearish zones.
BB & SS Alerts — Triggered only when the entire candle closes outside both bands, helping filter out false breakouts.
Supertrend (optional) — Can be toggled on/off to monitor potential short-term or early trend shifts.
Customizable Display — Show/hide bands, fills, and live candle coloring for chart clarity.
Reversal Insight:
For 4H and Daily charts, reversal signals appear to be quite accurate when the price retests the trend bands before continuing the move.
How to Use:
BB appears when a candle fully closes above both High/Low Kalman bands — possible bullish breakout.
SS appears when a candle fully closes below both bands — possible bearish breakdown.
Supertrend toggle can confirm shorter-term moves or early reversals.
Credit to the original script BackQuant
BTC/USD Breakout Hours – IST (Hyderabad)This indicator highlights the most volatile BTC/USD trading hours based on Hyderabad (IST) time.
It marks three key breakout windows:
London–US Overlap (17:30–20:30 IST) – Highest liquidity & volatility
US Market Open Momentum (19:00–23:30 IST) – Strong trend moves
Early London Session (12:30–15:30 IST) – Pre-US setup moves
The script automatically converts chart time to IST, shades each breakout window, and includes optional alerts for:
Window start
15 minutes before start
Ideal for traders who want to align entries with high-probability market moves while avoiding low-volume hours.
Multi-Length Quad Bollinger BandsHere is a Pine Script code for TradingView that plots four separate Bollinger Bands on your chart. The lengths are preset to 14, 50, 100, and 200, but every aspect—including lengths, standard deviations, colors, and the source price—is fully customizable through the script's settings menu.
The 14 and 50-period bands are enabled by default, while the 100 and 200-period bands are disabled to keep the chart clean initially. You can easily toggle any of them on or off.
BBMA OA - AI GPT-5This indicator is an AI-assisted implementation of the BBMA OA (Bollinger Bands + Moving Average) trading strategy, originally introduced by Malaysian trader Oma Ally. The code was generated and optimized using the GPT-5 AI model to ensure clean Pine Script v6 structure and compatibility.
The system combines Bollinger Bands (20, 2) with EMA50, EMA200, and MA5/10 High-Low to identify the four main BBMA OA patterns:
Extreme
Market Hilang Volume (MHV)
Candle Arah Kukuh (CSAK)
Re-entry (RRE, REE, REM)
Features:
Multi Time Frame confirmation for higher accuracy
Automatic signal detection with visual markers
Trend ribbon and candle coloring
Optimized Pine Script v6, free from errors/warnings
⚠ This is an adaptation of Oma Ally’s concept for educational purposes, not an official version. Past performance does not guarantee future results.
VOID OCULUS MACHINE V8 – ASSASSIN MODEVOID OCULUS MACHINE V8 – ASSASSIN MODE
Version 8.0 | Pine Script v6
Purpose & Originality
VOID OCULUS MACHINE V8 – ASSASSIN MODE brings together four advanced trading filters—EMA crossovers, TRIX momentum, VWAP band positioning, and a proprietary “Predictive Cloud”—into a single, high-precision entry system. Rather than relying on any one signal, it calculates a confidence score combining trend, momentum, volume, and volatility cues, then triggers only the highest-probability setups once a user-defined threshold is met. This multi-layer architecture offers traders laser-focused entries (“Assassin Mode”) with built-in risk (stop) and reward (targets) visualization.
How It Works & Component Rationale
EMA Trend Alignment
Fast EMA (9) vs. Slow EMA (21): Captures short-term versus medium-term trend. A bullish bias requires EMA9 > EMA21, bearish bias EMA9 < EMA21.
TRIX Momentum Filter
A triple-smoothed EMA oscillator over 15 bars, expressed as a percentage change. Positive TRIX confirms upward momentum; negative TRIX confirms downward momentum.
Gaussian Noise Reduction
Dual 5-period EMA smoothing of price removes short-term noise, creating a “cloud base.” Entries only fire when price interacts favorably with this smoothed baseline.
VWAP Band Confirmation (Optional)
Calculates session VWAP ± one standard deviation over 20 bars, plotting upper/lower bands. Traders can require price to sit above/below VWAP mid for trend confirmation.
Predictive Cloud Overlay
A dynamic band (Gaussian ± ATR) forecasts a near-term “value zone.” Pullback and reversal entries can occur as price re-enters or breaks out of this cloud.
Confidence Scoring
Starts at 0 and adds:
+30 for EMA trend alignment (bull or bear)
+20 for volume spike (>20-bar SMA)
+20 for non-zero TRIX slope
+20 for ATR expansion (volatility ramping)
+10 if price is above or below VWAP mid (if VWAP filter is enabled)
Only fires signals when confidence ≥ 60% (configurable), ensuring multi-factor confluence.
Entry Type Differentiation
Breakout: Price pierces prior 10-bar high/low on volume and ATR expansion.
Pullback: Trend bias plus a crossover of price with EMA9.
Reversal: Price crosses back into the Predictive Cloud from outside, confirmed by VWAP cross.
Automated Trade Visualization
On each signal, clears previous objects, plots a “BUY (xx%) – ” or “SELL (xx%) – ” label, four tiered ATR-based targets (1×, 1.5×, 2×, 3.5×), and a stop-loss (ATR × 1.5).
Inputs & Customization
Input Description Default
Fast EMA Length for short-term trend EMA 9
Slow EMA Length for medium-term trend EMA 21
TRIX Length Period for triple-smoothed momentum oscillator 15
Stop Multiplier ATR multiple for stop-loss distance 1.5
Target Multiplier ATR multiple for first profit target 1.5
Enable VWAP Filter Require price alignment above/below VWAP mid On
Minimum Confidence Confidence % threshold to trigger a signal 60
Show Predictive Cloud Toggle the Gaussian ± ATR cloud on/off On
How to Use
Apply to Chart: Suitable on 5 m–1 h timeframes for swing entries.
Adjust Confidence & Filters: Raise the Minimum Confidence to tighten setups; disable VWAP filter for pure price/momentum plays.
Read Signals:
“BUY (75%) – Breakout” label means 75% confluence across filters, triggered by a breakout entry type.
Four colored horizontal lines mark TP1–TP4; a red line marks your stop.
Manage the Trade:
Use the plotted stop-loss line; scale out at targets or trail behind the Predictive Cloud.
Unique Value
VOID OCULUS MACHINE V8 stands out by quantifying multi-dimensional market context into a single confidence score and providing automated trade object plotting—no more manual target calculations or cluttered charts. Its “Assassin Mode” ensures only the most compelling setups trigger, saving traders time and reducing noise.
Disclaimer
This indicator is for educational purposes. Past performance does not guarantee future results. Always backtest across symbols/timeframes, combine with personal discretion, and apply strict risk management before trading live.
Monthly High/Low & % Move By Ai Trade LabYou can have idea How much it moved Monthly. Just Change it to Monthly
Cnagda Fixed Swingstrategy combines market structure (pivot S&R, anchored VWAP), momentum (EMA/WMA crosses), and volatility (ATR-based stop) to provide robust, adaptive trading signals.
It minimizes false entries using stateful logic and confirms swings using multi-factor conditions.
SMC de SmartProfit [ROMERR14]This all-in-one indicator displays real-time market structure (internal & swing BOS/CHoCH), order blocks, premium & discount zones, equal highs & lows, and much more... allowing traders to automatically mark up their charts using widely used price action methodologies.
Smart Money Concepts (SMC) is a relatively new but widely adopted term among price action traders looking to more accurately navigate liquidity and identify more optimal points of interest in the market. Attempting to determine where institutional market participants place their orders (buy or sell-side liquidity) can be a reasonable approach to finding practical entries and exits based on price action.
The indicator includes alerts for swing structure changes and many other relevant conditions.
✨ Features
This indicator includes many SMC-relevant features, highlighted below:
Full internal & swing market structure labeling in real-time
Break of Structure (BOS)
Change of Character (CHoCH)
Order Blocks (bullish & bearish)
Equal Highs & Lows (EQH/EQL)
Fair Value Gap (FVG) Detection
Previous Highs & Lows
Premium and Discount zones displayed as a range
Multiple styling options for easier concept visualization
⚙️ Settings
Mode: Historical (default) or Present to only display recent data.
Style: Colored (default) or Monochrome.
Color Candles: Based on internal and swing structure.
Internal Structure: Displays labels and dashed lines for BOS/CHoCH.
Confluence Filter: Filters out non-significant internal breakouts.
Swing Structure: Displays labels and solid lines for larger BOS/CHoCH.
Swing Points: Displays HH, HL, LH, LL labels.
Internal Order Blocks: Enable & choose how many to display.
Swing Order Blocks: Same as above for swing structure.
EQH/EQL: Detects equal highs and lows.
Bars Confirmation: Sets how many bars are required to confirm EQH/EQL.
Fair Value Gaps: Highlights imbalance areas on the chart.
Auto Threshold: Filters out insignificant FVGs.
Timeframe: Sets the timeframe for FVG detection.
Extend FVG: Choose how many bars to extend the FVG box visually.
Highs & Lows MTF: Display important daily, weekly, and monthly levels.
Premium/Discount Zones: Show Premium, Discount, and Equilibrium zones.
💡 Usage
Users can see automatic BOS and CHoCH labels to detect market structure breaks and trends.
Equal Highs and Lows (EQH/EQL) can also signal potential reversal zones.
Order Blocks help identify areas likely influenced by institutional trading.
They can be used for entries or targets.
Premium/Discount zones provide reference points for optimal entries.
🧠 Conclusion
This indicator highlights all key components of the Smart Money Concepts methodology, which can serve as a valuable interpretation of market structure, liquidity, and in simple terms, price action.
These concepts do not guarantee successful trades nor ensure that you're trading with "institutional liquidity" — there is no concrete data supporting such claims. These are tools meant to be used as part of a broader technical analysis strategy.
🛠️ Release Notes
Oct 11, 2022
Fixed array.get error when enabling order blocks
Fixed max_bars_back error when enabling previous highs/lows
Added Order Block Filter with two filtering methods
Added borders to internal order blocks
Minor changes
Oct 24, 2022
Fixed order block alert not triggering
Fixed broken order blocks not being removed
Minor changes
Feb 9, 2023
Added “Label Size” setting
Minor changes
Sept 5, 2024
Improved script performance
Enhanced detection for structures, FVGs, and EQH/EQL
Monochrome style now applies to FVGs and premium/discount zones
Correct styling applied to MTF levels
Minor changes
Sept 10, 2024
Fixed previous high/low errors on low timeframes
Minor changes
🔓 Open-Source Script
In true TradingView spirit, the author of this script ROMERR14 has released it as open source, allowing other traders to review and verify its functionality. It is free to use, but the publication of this script remains subject to TradingView’s internal rules.
SMC de SmartProfit [ROMERR14]This all-in-one indicator displays real-time market structure (internal & swing BOS / CHoCH), order blocks, premium & discount zones, equal highs & lows, and much more...allowing traders to automatically mark up their charts with widely used price action methodologies. Following the release of our Fair Value Gap script, we received numerous requests from our community to release more features in the same category.
"Smart Money Concepts" (SMC) is a fairly new yet widely used term amongst price action traders looking to more accurately navigate liquidity & find more optimal points of interest in the market. Trying to determine where institutional market participants have orders placed (buy or sell side liquidity) can be a very reasonable approach to finding more practical entries & exits based on price action.
The indicator includes alerts for the presence of swing structures and many other relevant conditions.
Features
This indicator includes many features relevant to SMC, these are highlighted below:
Full internal & swing market structure labeling in real-time
Break of Structure (BOS)
Change of Character (CHoCH)
Order Blocks (bullish & bearish)
Equal Highs & Lows
Fair Value Gap Detection
Previous Highs & Lows
Premium & Discount Zones as a range
Options to style the indicator to more easily display these concepts
Settings
Mode: Allows the user to select Historical (default) or Present, which displays only recent data on the chart.
Style: Allows the user to select different styling for the entire indicator between Colored (default) and Monochrome.
Color Candles: Plots candles based on the internal & swing structures from within the indicator on the chart.
Internal Structure: Displays the internal structure labels & dashed lines to represent them. (BOS & CHoCH).
Confluence Filter: Filter non-significant internal structure breakouts.
Swing Structure: Displays the swing structure labels & solid lines on the chart (larger BOS & CHoCH labels).
Swing Points: Displays swing points labels on chart such as HH, HL, LH, LL.
Internal Order Blocks: Enables Internal Order Blocks & allows the user to select how many most recent Internal Order Blocks appear on the chart.
Swing Order Blocks: Enables Swing Order Blocks & allows the user to select how many most recent Swing Order Blocks appear on the chart.
Equal Highs & Lows: Displays EQH/EQL labels on chart for detecting equal highs & lows.
Bars Confirmation: Allows the user to select how many bars are needed to confirm an EQH/EQL symbol on chart.
Fair Value Gaps: Displays boxes to highlight imbalance areas on the chart.
Auto Threshold: Filter out non-significant fair value gaps.
Timeframe: Allows the user to select the timeframe for the Fair Value Gap detection.
Extend FVG: Allows the user to choose how many bars to extend the Fair Value Gap boxes on the chart.
Highs & Lows MTF: Allows the user to display previous highs & lows from daily, weekly, & monthly timeframes as significant levels.
Premium/Discount Zones: Allows the user to display Premium, Discount, and Equilibrium zones on the chart
Usage
imagen
Users can see automatic CHoCH and BOS labels to highlight breakouts of market structure, which allows to determine the market trend. In the chart below we can see the internal structure which displays more frequent labels within larger structures. We can also see equal highs & lows (EQH/EQL) labels plotted alongside the internal structure to frequently give indications of potential reversals.
imagen
In the chart below we can see the swing market structure labels. These are also labeled as BOS and CHoCH but with a solid line & larger text to show larger market structure breakouts & trend reversals. Users can be mindful of these larger structure labels while trading internal structures as displayed in the previous chart.
imagen
Order blocks highlight areas where institutional market participants open positions, one can use order blocks to determine confirmation entries or potential targets as we can expect there is a large amount of liquidity at these order blocks. In the chart below we can see 2 potential trade setups with confirmation entries. The path outlined in red would be a potential short entry targeting the blue order block below, and the path outlined in green would be a potential long entry, targeting the red order blocks above.
imagen
As we can see in the chart below, the bullish confirmation entry played out in this scenario with the green path outlined in hindsight. As price breaks though the order blocks above, the indicator will consider them mitigated causing them to disappear, and as per the logic of these order blocks they will always display 5 (by default) on the chart so we can now see more actionable levels.
imagen
The Smart Money Concepts indicator has many other features and here we can see how they can also help a user find potential levels for price action trading. In the screenshot below we can see a trade setup using the Previous Monthly High, Strong High, and a Swing Order Block as a stop loss. Accompanied by the Premium from the Discount/Premium zones feature being used as a potential entry. A potential take profit level for this trade setup that a user could easily identify would be the 50% mark labeled with the Fair Value Gap & the Equilibrium all displayed automatically by the indicator.
imagen
Conclusion
This indicator highlights all relevant components of Smart Money Concepts which can be a very useful interpretation of market structure, liquidity, & more simply put, price action. The term was coined & popularized primarily within the forex community & by ICT while making its way to become a part of many traders' analysis. These concepts, with or without this indicator do not guarantee a trader to be trading within the presence of institutional or "bank-level" liquidity, there is no supporting data regarding the validity of these teachings.
11 oct 2022
Notas de prensa
- Fixed array.get errors when enabling Order Blocks
- Fixed max_bars_back error when enabling Previous Highs/Lows
- Added Order Block Filter setting with 2 methods allowing users to filter out volatile Order Blocks.
- Added borders to Internal Order Blocks
- Minor changes
24 oct 2022
Notas de prensa
- Fixed order block alert not alerting on break
- Fixed order block not being deleted when broken
- Minor changes
9 feb 2023
Notas de prensa
- Added "Label Size" setting to increase size on internal market structure, swing market structure, and EQH/EQL labels.
- Minor changes
5 sept 2024
Notas de prensa
- Improved script performance
- Enhanced detection capabilities for structures, order blocks, fair value gaps, and equal highs and lows
- Monochrome style can be applied to fair value gaps and premium/discount zones.
- The correct style has now been applied to the MTF highs and lows levels
- Minor changes
10 sept 2024
Notas de prensa
- Fixed previous high/low causing errors on low timeframes
- Minor changes
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
LuxAlgo
Siguiendo
Get access to our exclusive tools: luxalgo.com
Join our 150k+ community: discord.gg/lux
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
También en:
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
MSFA_LibraryLibrary "MSFA_library"
TODO: add library description here
getDecimals()
Calculates how many decimals are on the quote price of the current market
Returns: The current decimal places on the market quote price
getPipSize(multiplier)
Calculates the pip size of the current market
Parameters:
multiplier (int) : The mintick point multiplier (1 by default, 10 for FX/Crypto/CFD but can be used to override when certain markets require)
Returns: The pip size for the current market
truncate(number, decimalPlaces)
Truncates (cuts) excess decimal places
Parameters:
number (float) : The number to truncate
decimalPlaces (simple float) : (default=2) The number of decimal places to truncate to
Returns: The given number truncated to the given decimalPlaces
toWhole(number)
Converts pips into whole numbers
Parameters:
number (float) : The pip number to convert into a whole number
Returns: The converted number
toPips(number)
Converts whole numbers back into pips
Parameters:
number (float) : The whole number to convert into pips
Returns: The converted number
getPctChange(value1, value2, lookback)
Gets the percentage change between 2 float values over a given lookback period
Parameters:
value1 (float) : The first value to reference
value2 (float) : The second value to reference
lookback (int) : The lookback period to analyze
Returns: The percent change over the two values and lookback period
random(minRange, maxRange)
Wichmann–Hill Pseudo-Random Number Generator
Parameters:
minRange (float) : The smallest possible number (default: 0)
maxRange (float) : The largest possible number (default: 1)
Returns: A random number between minRange and maxRange
bullFib(priceLow, priceHigh, fibRatio)
Calculates a bullish fibonacci value
Parameters:
priceLow (float) : The lowest price point
priceHigh (float) : The highest price point
fibRatio (float) : The fibonacci % ratio to calculate
Returns: The fibonacci value of the given ratio between the two price points
bearFib(priceLow, priceHigh, fibRatio)
Calculates a bearish fibonacci value
Parameters:
priceLow (float) : The lowest price point
priceHigh (float) : The highest price point
fibRatio (float) : The fibonacci % ratio to calculate
Returns: The fibonacci value of the given ratio between the two price points
getMA(length, maType)
Gets a Moving Average based on type (! MUST BE CALLED ON EVERY TICK TO BE ACCURATE, don't place in scopes)
Parameters:
length (simple int) : The MA period
maType (string) : The type of MA
Returns: A moving average with the given parameters
barsAboveMA(lookback, ma)
Counts how many candles are above the MA
Parameters:
lookback (int) : The lookback period to look back over
ma (float) : The moving average to check
Returns: The bar count of how many recent bars are above the MA
barsBelowMA(lookback, ma)
Counts how many candles are below the MA
Parameters:
lookback (int) : The lookback period to look back over
ma (float) : The moving average to reference
Returns: The bar count of how many recent bars are below the EMA
barsCrossedMA(lookback, ma)
Counts how many times the EMA was crossed recently (based on closing prices)
Parameters:
lookback (int) : The lookback period to look back over
ma (float) : The moving average to reference
Returns: The bar count of how many times price recently crossed the EMA (based on closing prices)
getPullbackBarCount(lookback, direction)
Counts how many green & red bars have printed recently (ie. pullback count)
Parameters:
lookback (int) : The lookback period to look back over
direction (int) : The color of the bar to count (1 = Green, -1 = Red)
Returns: The bar count of how many candles have retraced over the given lookback & direction
getBodySize()
Gets the current candle's body size (in POINTS, divide by 10 to get pips)
Returns: The current candle's body size in POINTS
getTopWickSize()
Gets the current candle's top wick size (in POINTS, divide by 10 to get pips)
Returns: The current candle's top wick size in POINTS
getBottomWickSize()
Gets the current candle's bottom wick size (in POINTS, divide by 10 to get pips)
Returns: The current candle's bottom wick size in POINTS
getBodyPercent()
Gets the current candle's body size as a percentage of its entire size including its wicks
Returns: The current candle's body size percentage
isHammer(fib, colorMatch)
Checks if the current bar is a hammer candle based on the given parameters
Parameters:
fib (float) : (default=0.382) The fib to base candle body on
colorMatch (bool) : (default=false) Does the candle need to be green? (true/false)
Returns: A boolean - true if the current bar matches the requirements of a hammer candle
isStar(fib, colorMatch)
Checks if the current bar is a shooting star candle based on the given parameters
Parameters:
fib (float) : (default=0.382) The fib to base candle body on
colorMatch (bool) : (default=false) Does the candle need to be red? (true/false)
Returns: A boolean - true if the current bar matches the requirements of a shooting star candle
isDoji(wickSize, bodySize)
Checks if the current bar is a doji candle based on the given parameters
Parameters:
wickSize (float) : (default=2) The maximum top wick size compared to the bottom (and vice versa)
bodySize (float) : (default=0.05) The maximum body size as a percentage compared to the entire candle size
Returns: A boolean - true if the current bar matches the requirements of a doji candle
isBullishEC(allowance, rejectionWickSize, engulfWick)
Checks if the current bar is a bullish engulfing candle
Parameters:
allowance (float) : (default=0) How many POINTS to allow the open to be off by (useful for markets with micro gaps)
rejectionWickSize (float) : (default=disabled) The maximum rejection wick size compared to the body as a percentage
engulfWick (bool) : (default=false) Does the engulfing candle require the wick to be engulfed as well?
Returns: A boolean - true if the current bar matches the requirements of a bullish engulfing candle
isBearishEC(allowance, rejectionWickSize, engulfWick)
Checks if the current bar is a bearish engulfing candle
Parameters:
allowance (float) : (default=0) How many POINTS to allow the open to be off by (useful for markets with micro gaps)
rejectionWickSize (float) : (default=disabled) The maximum rejection wick size compared to the body as a percentage
engulfWick (bool) : (default=false) Does the engulfing candle require the wick to be engulfed as well?
Returns: A boolean - true if the current bar matches the requirements of a bearish engulfing candle
isInsideBar()
Detects inside bars
Returns: Returns true if the current bar is an inside bar
isOutsideBar()
Detects outside bars
Returns: Returns true if the current bar is an outside bar
barInSession(sess, useFilter)
Determines if the current price bar falls inside the specified session
Parameters:
sess (simple string) : The session to check
useFilter (bool) : (default=true) Whether or not to actually use this filter
Returns: A boolean - true if the current bar falls within the given time session
barOutSession(sess, useFilter)
Determines if the current price bar falls outside the specified session
Parameters:
sess (simple string) : The session to check
useFilter (bool) : (default=true) Whether or not to actually use this filter
Returns: A boolean - true if the current bar falls outside the given time session
dateFilter(startTime, endTime)
Determines if this bar's time falls within date filter range
Parameters:
startTime (int) : The UNIX date timestamp to begin searching from
endTime (int) : the UNIX date timestamp to stop searching from
Returns: A boolean - true if the current bar falls within the given dates
dayFilter(monday, tuesday, wednesday, thursday, friday, saturday, sunday)
Checks if the current bar's day is in the list of given days to analyze
Parameters:
monday (bool) : Should the script analyze this day? (true/false)
tuesday (bool) : Should the script analyze this day? (true/false)
wednesday (bool) : Should the script analyze this day? (true/false)
thursday (bool) : Should the script analyze this day? (true/false)
friday (bool) : Should the script analyze this day? (true/false)
saturday (bool) : Should the script analyze this day? (true/false)
sunday (bool) : Should the script analyze this day? (true/false)
Returns: A boolean - true if the current bar's day is one of the given days
atrFilter(atrValue, maxSize)
Parameters:
atrValue (float)
maxSize (float)
tradeCount()
Calculate total trade count
Returns: Total closed trade count
isLong()
Check if we're currently in a long trade
Returns: True if our position size is positive
isShort()
Check if we're currently in a short trade
Returns: True if our position size is negative
isFlat()
Check if we're currentlyflat
Returns: True if our position size is zero
wonTrade()
Check if this bar falls after a winning trade
Returns: True if we just won a trade
lostTrade()
Check if this bar falls after a losing trade
Returns: True if we just lost a trade
maxDrawdownRealized()
Gets the max drawdown based on closed trades (ie. realized P&L). The strategy tester displays max drawdown as open P&L (unrealized).
Returns: The max drawdown based on closed trades (ie. realized P&L). The strategy tester displays max drawdown as open P&L (unrealized).
totalPipReturn()
Gets the total amount of pips won/lost (as a whole number)
Returns: Total amount of pips won/lost (as a whole number)
longWinCount()
Count how many winning long trades we've had
Returns: Long win count
shortWinCount()
Count how many winning short trades we've had
Returns: Short win count
longLossCount()
Count how many losing long trades we've had
Returns: Long loss count
shortLossCount()
Count how many losing short trades we've had
Returns: Short loss count
breakEvenCount(allowanceTicks)
Count how many break-even trades we've had
Parameters:
allowanceTicks (float) : Optional - how many ticks to allow between entry & exit price (default 0)
Returns: Break-even count
longCount()
Count how many long trades we've taken
Returns: Long trade count
shortCount()
Count how many short trades we've taken
Returns: Short trade count
longWinPercent()
Calculate win rate of long trades
Returns: Long win rate (0-100)
shortWinPercent()
Calculate win rate of short trades
Returns: Short win rate (0-100)
breakEvenPercent(allowanceTicks)
Calculate break even rate of all trades
Parameters:
allowanceTicks (float) : Optional - how many ticks to allow between entry & exit price (default 0)
Returns: Break-even win rate (0-100)
averageRR()
Calculate average risk:reward
Returns: Average winning trade divided by average losing trade
unitsToLots(units)
(Forex) Convert the given unit count to lots (multiples of 100,000)
Parameters:
units (float) : The units to convert into lots
Returns: Units converted to nearest lot size (as float)
skipTradeMonteCarlo(chance, debug)
Checks to see if trade should be skipped to emulate rudimentary Monte Carlo simulation
Parameters:
chance (float) : The chance to skip a trade (0-1 or 0-100, function will normalize to 0-1)
debug (bool) : Whether or not to display a label informing of the trade skip
Returns: True if the trade is skipped, false if it's not skipped (idea being to include this function in entry condition validation checks)
fillCell(tableID, column, row, title, value, bgcolor, txtcolor, tooltip)
This updates the given table's cell with the given values
Parameters:
tableID (table) : The table ID to update
column (int) : The column to update
row (int) : The row to update
title (string) : The title of this cell
value (string) : The value of this cell
bgcolor (color) : The background color of this cell
txtcolor (color) : The text color of this cell
tooltip (string)
Returns: Nothing.
Bishop Chicken Biryani RibbonChicken Biryani is great and the greatest dish out there, if you havent had it you should defitinitley try it out at your local indian resturaunt
Double Inside Bar Scanner [Daily]Double Inside Bar Scanner . Captures Double Inside based on last 2 daily Bars
Returns Since Entry DateThis indicator shows the returns and max returns since entry date in a nice tabular format.
Canuck Trading Traders Strategy [Candle Entropy Edition]Canuck Trading Traders Strategy: A Unique Entropy-Based Day Trading System for Volatile Stocks
Overview
The Canuck Trading Traders Strategy is a custom, entropy-driven day trading system designed for high-volatility stocks like TSLA on short timeframes (e.g., 15m). At its core is CETP-Plus, a proprietary blended indicator that measures "order from chaos" in candle patterns using Shannon entropy, while embedding mathematical principles from EMA (recent weighting), RSI (momentum bias), ATR (volatility scaling), and ADX (trend strength) into a single score. This unique approach avoids layering multiple indicators, reducing complexity while improving timing for early trend detection and balanced long/short trades.
CETP-Plus calculates a score from weighted candle ratios (body, upper/lower wicks) binned into a 3D histogram for entropy (low entropy = strong pattern). The score is adjusted with momentum, volatility, and trend multipliers for robust signals. Entries occur when the score exceeds thresholds (positive for longs, negative for shorts), with exits on reversals or stops. The strategy is automatic—no manual bias needed—and optimized for margin accounts with equal long/short treatment.
Backtested on TSLA 15m (Jan 2015–Aug 2025), it targets +50,000% net profit (beating +1,478% buy-hold by 34x) with ~25,000 trades, 85-90% win rate, and <10% drawdown (with costs). Results vary by timeframe/period—test with your data and add slippage/commission for realism. Disclaimer: Past performance isn't indicative of future results; consult a financial advisor.
Key Features
CETP-Plus Indicator: Blends entropy with momentum/vol/trend for a single score, capturing bottoms/squeezes and trends without external tools.
Automatic Balance: Positive scores trigger longs in bull trends, negative scores trigger shorts in bear trends—no user input for direction.
Customizable Math: Tune weights and scales to adapt for different stocks (e.g., lower thresholds for NVDA's smoother trends).
Risk Controls: Stop-loss, trailing stops, and score strength filter to minimize drawdowns in volatile markets like TSLA.
Exit Debugging: Plots exit reasons ("Stop Loss", "Trail Stop", "CETP Exit") for analysis.
Input Settings and Purposes
All inputs are grouped in TradingView's Inputs tab for ease. Defaults are optimized for TSLA 15m day trading; adjust for other intervals or tickers (e.g., increase window for 1h, lower thresholds for NVDA).
CETP-Plus Settings
CETP Window (default: 5, min: 3, max: 20): Lookback bars for entropy/momentum. Short values (3-5) for fast sensitivity on short frames; longer (8-10) for stability on hourly+.
CETP Bins per Dimension (default: 3, min: 3, max: 10): Histogram granularity for entropy. Low (3) for speed/simple patterns; high (5+) for detail in complex markets.
Long Threshold (default: 0.15, min: 0.1, max: 0.8, step: 0.05): CETP score for long entries. Lower (0.1) for more longs in mild bull trends; higher (0.2) to filter noise.
Short Threshold (default: -0.05, min: -0.8, max: -0.1, step: 0.05): CETP score for short entries. Less negative (-0.05) for more shorts in mild bear trends; more negative (-0.2) for strong signals.
CETP Momentum Weight (default: 0.8, min: 0.1, max: 1.0, step: 0.1): Emphasizes momentum in score. High (0.9) for aggressive in fast moves; low (0.5) for entropy focus.
Momentum Scale (default: 1.6, min: 0.1, max: 2.0, step: 0.1): Amplifies momentum. High (2.0) for short intervals; low (1.0) for stability.
Body Ratio Weight (default: 1.2, min: 0.0, max: 2.0, step: 0.1): Weights candle body in entropy (trend focus). High (1.5) for strong trends; low (0.8) for wick emphasis.
Upper Wick Ratio Weight (default: 0.8, min: 0.0, max: 2.0, step: 0.1): Weights upper wick (reversal noise). Low (0.5) to reduce false ups.
Lower Wick Ratio Weight (default: 0.8, min: 0.0, max: 2.0, step=0.1): Weights lower wick. Low (0.5) to reduce false downs.
Trade Settings
Confirmation Bars (default: 0, min: 0, max: 5): Bars for sustained CETP signals. 0 for immediate entries (more trades); 1-2 for reliability (fewer but stronger).
Min CETP Score Strength (default: 0.04, min: 0.0, max: 0.5, step: 0.05): Min absolute score for entry. Low (0.04) for more trades; high (0.15) for quality.
Risk Management
Stop Loss (%) (default: 0.5, min: 0.1, max: 5.0, step: 0.1): % from entry for stop. Tight (0.4) for quick exits; wide (0.8) for trends.
ATR Multiplier (default: 1.5, min: 0.5, max: 3.0, step: 0.1): Scales ATR for stops/trails. Low (1.0) for tight; high (2.0) for room.
Trailing ATR Mult (default: 3.5, min: 0.5, max: 5.0, step: 0.1): ATR mult for trails. High (4.0) for longer holds; low (2.0) for profits.
Trail Start Offset (%) (default: 1.0, min: 0.5, max: 2.0, step: 0.1): % profit before trailing. Low (0.8) for early lock-in; high (1.5) for bigger moves.
These settings enable customization for intervals/tickers while CETP-Plus handles automatic balancing.
Risk Disclosure
Trading involves significant risk and may result in losses exceeding your initial capital. The Canuck Trading Trader Strategy is provided for educational and informational purposes only. Users are responsible for their own trading decisions and should conduct thorough testing before using in live markets. The strategy’s high trade frequency requires reliable execution infrastructure to minimize slippage and latency.
Hassi XAUUSD STRATEGY BOTGold (XAUUSD) 15m trend+momentum based signals with EMA(9/21/200), RSI, custom ADX, ATR-based SL/TP & alerts
Works on XAUUSD 15m.
Entry: EMA9/21 cross + price relative to EMA200 + RSI filter + custom ADX trend strength.
Risk: default SL=1.5×ATR, TP=2×ATR (editable).
Notes: No financial advice. Backtest before live use. Avoid high-impact news whipsaws.
Filtro Antirumore Ottimizzato by G.I.N.e TradingNoise Filter – Adaptive Version for Bund & DAX by G.I.N.e Trading
The Noise Filter is a market condition tool designed to help traders avoid false signals by identifying sideways or low-quality trading phases. This version has been specifically optimized to work effectively with both Bund and DAX price action behaviors.
⚙️ How It Works
The indicator analyzes four key components to determine if the market is in a "noise zone" (sideways, low volatility, or weak trend):
Bollinger Band Width – Detects price compression.
ADX – Measures the strength of the trend.
ATR – Captures recent volatility.
HMA Slope – Evaluates directional movement (trend or no trend).
A noise zone is triggered if at least two out of three core conditions are met:
Narrow Bollinger Bands
ADX below threshold
ATR below threshold
And it is confirmed only if there is no clear directional slope in price.
A strong directional slope overrides the noise signal, allowing valid trends with low volatility (common in instruments like the Bund).
🎯 Visual Output
Gray column → Noise zone: avoid signals in this phase (low quality environment).
Yellow column → Operational zone: conditions are more favorable for trend-following systems.
🛠️ Fully Customizable
You can adjust:
Bollinger Band period & width threshold
ADX length & threshold
ATR period & threshold
HMA slope sensitivity
💡 Best For
Filtering false signals in automated or manual trading strategies
Enhancing trend-following accuracy
Adapting behavior to both high-volatility instruments (DAX) and low-volatility instruments (Bund)
$TICK & TICKQ Sentiment IndicatorThe USI:TICK & USI:TICKQ Sentiment Indicator is a versatile tool for traders analyzing the NYSE Tick Index ( USI:TICK ) or Nasdaq Tick Index ( USI:TICKQ ) to gauge market sentiment. It provides clear visual signals, a customizable moving average, and statistical insights to identify bullish and bearish conditions in real-time.
Key Features:
Sentiment Signals: Green triangle (▲) labels at a user-defined level (default: +1200) when the Tick closes above zero, and red triangle (▼) labels (default: -1200) when below zero, indicating bullish or bearish sentiment.
Adjustable Moving Average: Plots a customizable moving average (SMA, EMA, WMA, VWMA, SMMA, HullMA) with user-defined length (default: 14) to smooth Tick data and highlight trends.
Close Statistics: Displays the percentage of positive and negative Tick closes over a user-specified lookback period (default: 100) in a customizable table (position and font size adjustable).
Threshold Lines: Includes reference lines at +800/-800 (gold) and +1000/-1000 (red) to mark key Tick levels, plus a zero line (gray, dashed) for context.
Customizable Display: Adjust symbol sizes (tiny, small, normal, large, huge), table position (top-right, top-left, etc.), and table font size for a tailored chart experience.
How to Use:
Apply the indicator to a USI:TICK or USI:TICKQ chart (e.g., TVC:TICK, TVC:TICKQ) on an intraday timeframe (e.g., 1-minute, 5-minute).
In the settings:
Set the TICK Symbol to your broker’s NYSE Tick ( USI:TICK ) or Nasdaq Tick ( USI:TICKQ ) symbol.
Adjust Top Level and Bottom Level (default: +1200/-1200) to position sentiment signals at chart edges.
Set Moving Average Length and Type to suit your analysis.
Configure Lookback Period for close percentage calculations.
Customize Dot Size , Table Position , and Table Font Size for optimal visibility.
Monitor green/red triangles for sentiment, the moving average for trends, and the table for statistical insights.
Notes:
This indicator is designed for both USI:TICK (NYSE Tick) and USI:TICKQ (Nasdaq Tick, NQ Tick), allowing analysis of either market’s breadth.
Ensure your chart’s timeframe supports USI:TICK or USI:TICKQ data.
Adjust Top Level / Bottom Level if symbols don’t appear at chart edges due to scaling.
Labels may stack with frequent signals; contact the developer for customization to limit frequency.
No symbol appears if the Tick closes at 0; a neutral marker can be added upon request.
Ideal For:
Day traders and scalpers using USI:TICK or USI:TICKQ to gauge market breadth.
Analysts seeking customizable visualizations and statistical insights for Tick data.
Created by northfieldwhale.
Filtro Universale Antirumore by G.I.N.e TradingNoise Filter Indicator by G.I.N.e Trading
The Noise Filter Indicator is designed to detect market conditions where price action is likely to generate false signals due to low volatility or lack of trend. These are typically sideways or congested phases that trend-following systems should avoid.
⚙️ How it works:
The indicator analyzes the current market structure using three components:
Bollinger Band Width
Measures price compression.
Narrow bands indicate a potential sideways phase.
Average Directional Index (ADX)
Measures the strength of the trend.
Low ADX values suggest absence of directional momentum.
Average True Range (ATR)
Measures recent price volatility.
When ATR is below its moving average, the market is likely ranging or losing energy.
A noise zone is identified when at least 2 out of 3 conditions are true:
Low volatility (Bollinger Band Width)
Weak trend (ADX < threshold)
ATR below reference value
🎯 Visual Output:
🟨 Yellow bar: Trend conditions favorable — signals are more reliable.
⬜️ Gray bar: Noise zone — high risk of false signals, avoid trading.
JOSITOThis indicator marks equal points that XAU will go to reach; it doesn’t work on other pairs, but on XAU it is quite accurate.
Preguntar a ChatGPT
Lot Size Calculator (Dynamic) with Manual Pip ValueDevoleper: Sheikh Rakib
This TradingView indicator helps you calculate the correct lot size based on your risk amount in USD and stop loss (SL) in pips. It dynamically detects pip value per lot depending on the trading instrument (e.g., Forex majors, minors, gold, crypto), and also allows manual override if needed.
✅ Key Features:
📏 Input SL in pips and risk amount in USD
⚙️ Automatically detects pip size and pip value per lot
🧮 Calculates lot size based on your inputs
✍️ Manual pip value override option if auto-detection is incorrect
🖥️ Clean, organized info panel displayed on chart
💹 Works with Forex, Gold (XAUUSD), Silver (XAGUSD), BTC, ETH, and more
📘 Usage Tips:
Set your SL in pips and how much you want to risk per trade (USD)
If the pip value is not calculated correctly (rare for exotic pairs), enable and set your own value using the “Manual Pip Value” input
Recommended for scalpers, day traders, and swing traders who want to manage risk smartly
Built with risk management in mind — because consistent trading starts with proper lot sizing.