CFD & Warrant Position & RR Calculator (Simple & Clean)This tool helps you calculate your position size and risk/reward ratio quickly and easily.
Simply fill in your:
Account balance
Risk % or fixed risk in currency
Stop Loss % (distance from entry to stop loss)
Target % (distance from entry to target)
Leverage
The panel will instantly calculate and display:
Position size (how much to buy for)
Stop Loss % and Target %
Risk amount (in your currency)
Risk/Reward ratio (RR)
The design is simple and minimalistic with customizable background and text color for easy readability during live trading.
Ideal for scalpers, intraday and swing traders who want a fast and easy way to plan their trades and follow proper risk management.
No complicated graphical interface or lines, just clean numbers and focus.
Utiliti Pine
Kaito Box with RSI Div(Dynamic Adjustment + MA + Long)The script implements a dynamic trading strategy that combines box range detection, RSI divergence signals, and moving average trend analysis. It is designed for use on OKX Signal Bots and includes features for dynamic position scaling and partial position closing. Below is a summary of its key functionalities:
Key Features:
Box Range Detection:
The script identifies price ranges using the highest high and lowest low of a configurable boxLength period.
These levels are plotted on the chart to visualize the price range.
RSI Divergence Detection:
The script calculates RSI using a configurable rsiLength.
Detects bullish divergence when price makes a lower low, but RSI makes a higher low.
Detects bearish divergence when price makes a higher high, but RSI makes a lower high.
Includes separate left and right lookback periods (leftLookback, rightLookback) for precise local extrema detection.
Customizable Moving Averages:
Supports multiple types of Moving Averages (SMA, EMA, SMMA, WMA, VWMA).
Calculates and plots MA20, MA50, MA100, and MA200 on a user-defined timeframe (custom_timeframe).
Identifies uptrends and downtrends based on the alignment of the moving averages and price levels.
Dynamic Position Scaling:
Implements dynamic position sizing for long entries and partial position closing for exits.
The percentage of position size added or closed is based on the difference between the current price and the average position price (avgPrice), with configurable minimum thresholds (minEnterPercent, minExitPercent).
Signal Integration for OKX Bots:
Sends buy/sell signals to OKX Signal Bots using the configured signalToken.
Supports market or limit orders with configurable price offsets and investment types.
Trend-Based Signal Filtering:
Only triggers long signals during downtrends and short signals during uptrends, ensuring trades align with the overall market context.
Visual Annotations:
Plots bullish and bearish divergence signals on the chart.
Displays labels showing dynamic position size adjustments and current average price during trades.
How It Works:
Long Signals:
Triggered when the price breaches the lower box range, and a bullish RSI divergence is detected.
Additional filtering ensures long trades are executed only during downtrend conditions.
Dynamically adjusts the position size based on the price difference from the average entry price.
Short Signals:
Triggered when the price breaches the upper box range, and a bearish RSI divergence is detected.
Additional filtering ensures short trades are executed only during uptrend conditions.
Dynamically closes portions of the position based on price movement relative to the average entry price.
Alerts:
Generates actionable alerts formatted for OKX bots, including order type, signal token, and dynamically calculated position sizes.
Use Case:
This strategy is well-suited for automated trading on platforms like OKX, where it can:
Exploit price ranges and RSI divergences for precise entries and exits.
Dynamically manage position sizes to optimize risk-reward.
Adapt to different market conditions using configurable parameters like moving averages, divergence lookbacks, and trend filters.
This script provides a robust foundation for traders looking to automate their strategies while maintaining flexibility and control over their trading logic.
PORTFOLIO TABLE Simple [Titans_Invest]PORTFOLIO TABLE Simple
This is a simple table for you to monitor your assets or cryptocurrencies in your SPOT wallet without needing to access your broker’s website or wallet app.
⯁ HOW TO USE THIS TABLE❓
You only need to select the asset and enter the amount of each one.
The table will show how much you have of each asset and the total value of your portfolio.
You’ll be able to monitor up to 39 assets in real time.
⯁ CONVERT VALUES
You can also activate and select a currency for conversion.
For example, cryptocurrency assets are calculated in US dollars, but you can select euros as the conversion currency.
The values originally in dollars will then be displayed in euros.
⯁ Track your Portfolio in real time:
⯁ Add your local Currency to Convert Values:
⯁ Follow your Portfolio Live:
___________________________________________________________
📜 SCRIPT : PORTFOLIO TABLE Simple
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
___________________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
ETH to RTH Gap DetectorETH to RTH Gap Detector
What It Does
This indicator identifies and tracks custom-defined gaps that form between Extended Trading Hours (ETH) and Regular Trading Hours (RTH). Unlike traditional gap definitions, this indicator uses a specialized approach - defining up gaps as the space between previous session close high to current session initial balance low, and down gaps as the space from previous session close low to current session initial balance high. Each detected gap is monitored until it's touched by price.
Key Features
Detects custom-defined ETH-RTH gaps based on previous session close and current session initial balance
Automatically identifies both up gaps and down gaps
Visualizes gaps with color-coded boxes that extend until touched
Tracks when gaps are filled (when price touches the gap area)
Offers multiple display options for filled gaps (color change, border only, pattern, or delete)
Provides comprehensive statistics including total gaps, up/down ratio, and touched gap percentage
Includes customizable alert system for real-time gap filling notifications
Features toggle options for dashboard visibility and weekend sessions
Uses time-based box coordinates to avoid common TradingView drawing limitations
How To Use It
Configure Session Times : Set your preferred RTH hours and timezone (default 9:30-16:00 America/New York)
Set Initial Balance Period : Adjust the initial balance period (default 30 minutes) for gap detection sensitivity
Monitor Gap Formation : The indicator automatically detects gaps between the previous session close and current session IB
Watch For Gap Fills : Gaps change appearance or disappear when price touches them, based on your selected style
Check Statistics : View the dashboard to see total gaps, directional distribution, and touched percentage
Set Alerts : Enable alerts to receive notifications when gaps are filled
Settings Guide
RTH Settings : Configure the start/end times and timezone for Regular Trading Hours
Initial Balance Period : Controls how many minutes after market open to calculate the initial balance (1-240 minutes)
Display Settings : Toggle gap boxes, extension behavior, and dashboard visibility
Filled Box Style : Choose how filled gaps appear - Filled (color change), Border Only, Pattern, or Delete
Color Settings : Customize colors for up gaps, down gaps, and filled gaps
Alert Settings : Control when and how alerts are triggered for gap fills
Weekend Session Toggle : Option to include or exclude weekend trading sessions
Technical Details
The indicator uses time-based coordinates (xloc.bar_time) to prevent "bar index too far" errors
Gap boxes are intelligently limited to avoid TradingView's 500-bar drawing limitation
Box creation and fill detection use proper range intersection logic for accuracy
Session detection is handled using TradingView's session string format for reliability
Initial balance detection is precisely calculated based on time difference
Statistics calculations exclude zero-division scenarios for stability
This indicator works best on futures markets with extended and regular trading hours, especially indices (ES, NQ, RTY) and commodities. Performs well on timeframes from 1-minute to 1-hour.
What Makes It Different
Most gap indicators focus on traditional open-to-previous-close gaps, but this tool offers a specialized definition more relevant to ETH/RTH transitions. By using the initial balance period to define gap edges, it captures meaningful price discrepancies that often provide trading opportunities. The indicator combines sophisticated gap detection logic with clean visualization and comprehensive tracking statistics. The customizable fill styles and integrated alert system make it practical for both chart analysis and active trading scenarios.
SPX Intraday Call SignalThis indicator identifies intraday SPX call option trade setups based on a simple trend and momentum strategy. It detects when the 9-period EMA crosses above the 21-period EMA (bullish momentum) while price is trading above the VWAP (confirming intraday bullish bias) and the RSI (14) is above 55 (confirming momentum strength). The indicator is designed to trigger only during a defined trading window between 9:45 AM and 11:30 AM ET and plots a signal only once per day (the first valid setup) to avoid overtrading. It also includes alert conditions for automated notifications when a valid setup is detected.
weighted support or resistance linesQ: Why should users choose this script?
A: I found that in all the publicly available scripts about support and resistance lines, there is basically no weight identification for these lines. In other words, users do not know which support or resistance lines are the most important. So I specifically wrote this script.
1. By adjusting the weights, only the most effective support or resistance lines are displayed. (Length threshold of trend price (Bar))
2. By selecting the number of K-lines, only the latest number of support or resistance lines generated will be displayed. (Maximum number of reserved S/R lines)
3. By selecting whether to automatically remove lines, only support or resistance lines that have not been penetrated by the k-line will be displayed. If this function is checked, the weight can be adjusted lower, as high-weight SR may have already been penetrated, and the newly generated SR may have a lower weight. (Automatically remove lines penetrated by closing price confirmation)
4. Notes: The default parameters work well in 15-minute candlestick charts. For candlestick charts with other time periods, the parameters can be adjusted appropriately. It is suitable for sideways trading but not for strong trends.
5. I'm quite satisfied with the performance of the script, as I specifically optimized it, lol
BB 20-2 + RSI-10 + Stoch 14-3-3 | 5-minOn the 1-minute chart, using the indicators Stochastic %K/%D, RSI-10 and Bollinger Bands (20-period MA ± 2 σ):
Buy setup:
When RSI-10 is below 29, Stochastic %K/%D is below 19, and at least one candle touches the lower Bollinger band, open a long trade.
Sell setup:
When RSI-10 is above 72, Stochastic %K/%D is above 81, and at least one candle touches the upper Bollinger band, open a short trade.
Squeeze Momentum Indicator Version3This is an efficient plugin based on the squeeze kinetic energy theory.
这是一个基于挤压动能理论的有效插件
1,Determining Fast and Slow Lines
快慢线判断
When the fast line (blue) crosses above the slow line (red), forming a golden cross, it is considered a bullish signal.
当快线(蓝色)穿过红线(慢线)时候,既发生金叉的时候,看多。
When the slow line (red) crosses below the fast line (blue), it is known as a "death cross," and is typically considered a bearish signal.
当慢线(红色)穿过蓝线(快线)时候,既发生金叉的时候,看空。
2,Judgment of Bullish and Bearish Areas
空头多头区域判断
When the two lines are above the center point, the overall trend is bullish. Even if a death cross occurs, the downward momentum is relatively weak.
当两条线在中心点上方时整体是多头趋势,就算发生死叉也相对没那么大动能跌。
Conversely, when the two lines are below the center point, the overall trend is bearish. Even if a golden cross occurs, the upward momentum is relatively weak.
反之当两条线在中心点下方时整体是多头趋势,就算发生金叉也相对没那么大动能突破。
3,Judgment of Compressed Momentum Dots
压缩动能圆点判断
Center Point Dot Judgment Method
中心点园点判断法
When a gray dot appears, it indicates that the momentum is very weak, and the trend has dissipated, with changes possible at any time. (Note! A change in trend does not mean a shift from bullish to bearish or from bearish to bullish; it simply suggests that the market may enter a consolidation phase and will no longer exhibit high-intensity trend movements.)
当灰色圆点出现时代表动能很弱,趋势已经消失,随时变化(注!趋势随时变化并不是由多头变为空头或者空头转为多头的意思,只是说可能接下来将进入震荡区间。不在继续高强度趋势动作。)
当中间圆点出现白色时代表,趋势开始越来越强劲,开始单边行情,
When a white dot appears in the middle, it indicates that the trend is becoming stronger and a one-sided market is beginning.
当中间圆点出现白色时代表,趋势开始越来越强劲,开始单边行情,
Usage Method
使用方法
First, judge the entry conditions for momentum, then assess the area, and finally consider golden and death crosses for entry.
先判断动能进场条件,后判断区域,再考虑金叉死叉进场。
3 > 2 > 1
When the compressed momentum dot changes from white to gray, consider exiting and wait for the consolidation phase to end before re-entering.
当压缩动能圆点从白色转为灰色后考虑离场,等待震荡行情结束后再进场
30-70 RSI Strategy with Colored BarThis script colors price bars based on Relative Strength Index (RSI) levels, giving traders a quick and visual way to assess overbought or oversold market conditions directly on the chart.
📈 Key Features:
✅ RSI-Based Bar Coloring:
Green bars when RSI is above the upper threshold (default 70) – suggests bullish momentum.
Red bars when RSI is below the lower threshold (default 30) – indicates bearish pressure.
Bars remain uncolored when RSI is between thresholds – a neutral zone.
🔧 Customizable RSI Settings:
Adjustable RSI length (default: 14 periods)
Adjustable overbought/oversold levels (default: 70/30)
🧠 Helps traders:
Quickly spot potential reversals or trend continuations
Visually align price action with momentum
🛠️ Usage:
Ideal for trend-following, reversal, and momentum strategies.
Works across any timeframe (1m, 5m, 1h, daily, etc.).
nineLivesUtilLibLibrary "nineLivesUtilLib"
isDateInRange(currentTime, useTimeFilter, startDate, endDate)
Checks if the current time is within the specified date range.
Parameters:
currentTime (int) : The current bar's time (time).
useTimeFilter (bool) : Bool 📅: Enable the date range filter.
startDate (int) : Timestamp 📅: The start date for the filter.
endDate (int) : Timestamp 📅: The end date for the filter.
Returns: True if the current time is within the range or filtering is disabled, false otherwise.
@example
inDateRange = nineLivesUtilLib.isDateInRange(time, useTimeFilter, startDate, endDate)
if inDateRange
// Execute trading logic
checkVolumeCondition(currentVolume, useVolumeFilter, volumeThresholdMultiplier, volumeLength)
Checks if the current volume meets the threshold condition.
Parameters:
currentVolume (float) : The current bar's volume (volume).
useVolumeFilter (bool) : Bool 📊: Enable the volume filter.
volumeThresholdMultiplier (float) : Float 📊: Volume threshold relative to average (e.g., 1.5 for 1.5x average).
volumeLength (int) : Int 📊: Lookback length for the volume average.
Returns: True if the volume condition is met or filtering is disabled, false otherwise.
@example
volumeOk = nineLivesUtilLib.checkVolumeCondition(volume, useVolumeFilter, volumeThreshold, volumeLength)
if volumeOk
// Proceed with trading logic
checkMultiTimeframeCondition(currentClose, currentOpen, htfClose, htfOpen, useMultiTimeframe, alignment)
Checks alignment with higher timeframe direction.
Parameters:
currentClose (float) : Float: The current bar's closing price (close).
currentOpen (float) : Float: The current bar's opening price (open).
htfClose (float) : Float: The closing price from the higher timeframe (must be fetched by the calling script using request.security).
htfOpen (float) : Float: The opening price from the higher timeframe (must be fetched by the calling script using request.security).
useMultiTimeframe (bool) : Bool ⏱️: Enable multi-timeframe analysis.
alignment (string) : String ⏱️: Desired alignment ("same", "opposite", "any").
Returns: True if the timeframe alignment condition is met or analysis is disabled, false otherwise.
@example
// In the calling script:
= request.security(syminfo.tickerid, higherTimeframe, )
tfOk = nineLivesUtilLib.checkMultiTimeframeCondition(close, open, htfClose, htfOpen, useMultiTimeframe, tfAlignment)
if tfOk
// Proceed with trading logic
checkMarketRegime(useMarketRegime, regimeIndicator, regimeThreshold, regimeLength, regimeMode)
Detects the market regime (trending or ranging) and checks if trading is allowed.
Parameters:
useMarketRegime (bool) : Bool 🔍: Enable market regime detection.
regimeIndicator (string) : String 🔍: Indicator to use ("ADX" or "Volatility").
regimeThreshold (int) : Int 🔍: Threshold for trend strength/volatility.
regimeLength (simple int) : Int 🔍: Lookback length for the indicator.
regimeMode (string) : String 🔍: Trading mode based on regime ("trend_only", "range_only", "adaptive").
Returns: A tuple containing:
: conditionMet (bool) - True if trading is allowed based on the regime mode and detection, false otherwise.
: inTrendingRegime (bool) - True if the current regime is trending based on the indicator and threshold.
@example
= nineLivesUtilLib.checkMarketRegime(useMarketRegime, regimeIndicator, regimeThreshold, regimeLength, regimeMode)
if regimeOk
// Proceed with trading logic
applyCooldown(buySignal, sellSignal, cooldownBars)
Applies a cooldown period after a signal.
Parameters:
buySignal (bool) : Bool: Buy signal (potentially after primary entry logic).
sellSignal (bool) : Bool: Sell signal (potentially after primary entry logic).
cooldownBars (int) : Int ⏳: The number of bars to wait after a signal before allowing another.
Returns: A tuple containing:
: cooldownFilteredBuy (bool) - Buy signal after cooldown filter.
: cooldownFilteredSell (bool) - Sell signal after cooldown filter.
@example
= nineLivesUtilLib.applyCooldown(rawBuySignal, rawSellSignal, iCool)
applyAllFilters(rawBuy, rawSell, inDateRange, tradeDirection, volumeOk, tfOk, regimeOk, drawdownOk, cooldownOkBuy, cooldownOkSell)
Applies all filtering conditions to the buy and sell signals.
Parameters:
rawBuy (bool) : Bool: The initial buy signal candidate (from primary entry logic, e.g., after cooldown).
rawSell (bool) : Bool: The initial sell signal candidate (from primary entry logic, e.g., after cooldown).
inDateRange (bool) : Bool 📅: Result from isDateInRange.
tradeDirection (string) : String 🔄: Overall trade direction preference ("longs_only", "shorts_only", "both").
volumeOk (bool) : Bool 📊: Result from checkVolumeCondition.
tfOk (bool) : Bool ⏱️: Result from checkMultiTimeframeCondition.
regimeOk (bool) : Bool 🔍: Result from checkMarketRegime.
drawdownOk (bool) : Bool 📉: Result from checkDrawdownExceeded (or equivalent).
cooldownOkBuy (bool) : Bool ⏳: Result from applyCooldown for buy.
cooldownOkSell (bool) : Bool ⏳: Result from applyCooldown for sell.
Returns: A tuple containing:
: finalBuySignal (bool) - The final buy signal after all filters.
: finalSellSignal (bool) - The final sell signal after all filters.
@example
= nineLivesUtilLib.applyAllFilters(cooldownBuy, cooldownSell, inDateRange, tradeDirection, volumeOk, tfOk, regimeOk, !drawdownExceeded, cooldownBuy, cooldownSell)
NOTE: This function filters signals generated by your primary entry logic (e.g., EMA crossover).
checkDrawdownExceeded(currentEquity, useMaxDrawdown, maxDrawdownPercent)
Tracks maximum equity and checks if current drawdown exceeds a threshold.
Parameters:
currentEquity (float) : Float: The strategy's current equity (strategy.equity).
useMaxDrawdown (bool) : Bool 📉: Enable max drawdown protection.
maxDrawdownPercent (float) : Float 📉: The maximum allowed drawdown as a percentage.
Returns: True if drawdown protection is enabled and the current drawdown exceeds the threshold, false otherwise.
@example
drawdownExceeded = nineLivesUtilLib.checkDrawdownExceeded(strategy.equity, useMaxDrawdown, maxDrawdownPercent)
if drawdownExceeded
// Consider stopping entries or exiting positions in the strategy script
calculateExitPrice(positionAvgPrice, percentage, isStop, isLong)
Calculates a stop loss or take profit price based on a percentage from the average entry price.
Parameters:
positionAvgPrice (float) : Float: The average price of the current position (strategy.position_avg_price).
percentage (float) : Float: The stop loss or take profit percentage (e.g., 2.0 for 2%).
isStop (bool) : Bool: True if calculating a stop loss price, false if calculating a take profit price.
isLong (bool) : Bool: True if the position is long, false if short.
Returns: The calculated stop price or take profit price, or na if no position or percentage is invalid.
@example
longSL = nineLivesUtilLib.calculateExitPrice(strategy.position_avg_price, stopLossPercent, true, true)
shortTP = nineLivesUtilLib.calculateExitPrice(strategy.position_avg_price, takeProfitPercent, false, false)
calculateTrailingStopLevel(positionAvgPrice, trailOffsetPercent, trailPercent, currentHigh, currentLow, isLong)
Calculates the current trailing stop level for a position.
Parameters:
positionAvgPrice (float) : Float: The average price of the current position (strategy.position_avg_price).
trailOffsetPercent (float) : Float 🔄: The percentage price movement to activate the trailing stop.
trailPercent (float) : Float 🔄: The percentage distance the stop trails behind the price.
currentHigh (float) : Float: The current bar's high (high).
currentLow (float) : Float: The current bar's low (low).
isLong (bool) : Bool: True if the position is long, false if short.
Returns: The calculated trailing stop price if active, otherwise na.
@example
longTrailStop = nineLivesUtilLib.calculateTrailingStopLevel(strategy.position_avg_price, trailOffset, trailPercent, high, low, true)
shortTrailStop = nineLivesUtilLib.calculateTrailingStopLevel(strategy.position_avg_price, trailOffset, trailPercent, high, low, false)
if not na(longTrailStop)
strategy.exit("Long Trail", from_entry="Long", stop=longTrailStop)
Custom Time Session Background (Amsterdam Time, DST Safe)This indicator highlights two custom intraday time ranges with background colors on your chart. The times are set based on your local Amsterdam time and automatically adjust for Daylight Saving Time (DST).
📌 Features:
- Define two separate time ranges (Start & End) in local Amsterdam time
- Background color highlighting for each range
- Fully DST-aware using the "Europe/Amsterdam" timezone
- Works across all intraday timeframes
🎯 Use Cases:
- Highlight key market sessions (e.g., EU open, NY overlap)
- Visually segment your trading hours
- Eliminate manual DST adjustments
Developed with Pine Script v5.
Made for traders who want clarity during specific time zones, without worrying about time shifts across the year.
Bar Count for XAUThis TradingView indicator labels every other five-minute candle for XAU during the current Beijing session, which runs from 06:00 to 05:00 the next day. It shows the actual bar numbers—1, 3, 5, and so on—only for today’s session; yesterday’s labels are automatically cleared at the new open. The tags appear just below each qualifying candle with no background box, and you can adjust the font size in the settings. In short, it gives you a clean, real-time visual of intraday bar order without clutter
Overnight ES Strategy: CBC + Fractal + RSI + ATR FilterThis script is designed for overnight trading of the E-mini S&P 500 futures (ES) between 6 PM and 11 PM EST.
It combines multiple technical confluences to generate high-probability buy and sell signals, focusing on volatility-rich, low-liquidity evening sessions.
Key Features:
Candle Body Confluence (CBC) Approximation:
Identifies candles with small real bodies compared to total range, simulating consolidation zones where price is likely to reverse.
Williams Fractal Confirmation:
Detects local tops and bottoms based on 5-bar fractal reversal patterns, helping validate breakout or reversal points.
RSI Filter:
Ensures momentum is supportive — buys only when RSI < 35 (oversold) and sells only when RSI > 65 (overbought).
ATR Volatility Filter:
Trades are only allowed if the Average True Range (ATR) exceeds a user-defined threshold, filtering out low-volatility, risky environments.
Time Session Control:
Signals are only generated during the user-defined evening session (default: 6 PM to 11 PM EST) to match market behavior.
Real-Time Alerts Enabled:
Alerts can be set for BUY or SELL conditions, enabling mobile notifications, emails, or pop-ups without constant chart monitoring.
Recommended Settings:
Chart Timeframe: 15-minute or 30-minute candles
Assets: ES Mini (ES1!), NQ Mini, or other CME futures
Session: New York Time (EST)
ATR Threshold: Adjust based on market conditions; 5.0 suggested starting point for ES Mini on 15m.
Important:
This script only plots signals, it does not auto-execute trades.
Always backtest and paper trade before using live capital.
Volatility can vary; consider adjusting RSI and ATR filters based on market environment.
Credits:
Script designed based on confluence of price action, momentum, reversal structure, and volatility filtering principles used by professional traders.
Inspired by Candle Body Confluence (CBC) theory and Williams fractal techniques.
RSI + MACD + Liquidity FinderLiquidity Finder: The liquidity zones are heuristic and based on volume and swing points. You may need to tweak the volumeThreshold and lookback to match the asset's volatility and timeframe.
Timeframe: This script works on any timeframe, but signals may vary in reliability (e.g., higher timeframes like 4H or 1D may reduce noise).
Customization: You can modify signal conditions (e.g., require only RSI or MACD) or add filters like trend direction using moving averages.
Backtesting: Use TradingView's strategy tester to evaluate performance by converting the indicator to a strategy (replace plotshape with strategy.entry/strategy.close).
Sweep Reversal 5M PRO – by [TuNombre]🔹 **Sweep Reversal 5M PRO – by ** 🔹
This indicator is built to detect high-probability *Institutional Sweeps* using Swing Failure Patterns (SFP), fully filtered with Smart Money Concepts (SMC) logic and volume confirmation.
✅ Identifies key liquidity grabs
✅ Confirms with strong impulse candle + increasing volume
✅ Filters out false signals (doji, weak zones, low volume)
✅ Optimized for the 5-minute timeframe (5M)
✅ Compatible with push alerts to your mobile
---
**How to use it:**
1. Wait for a “BUY” or “SELL” signal on the chart
2. Only enter if the next candle confirms with momentum
3. Place a tight stop just beyond the sweep
4. Recommended Take Profit: 1:1 minimum / 2:1 ideal
---
💡 Inspired by institutional trading (SMC, ICT-style setups)
🔒 Developed by – private or team-based use
📲 Activate alerts to get real-time trade opportunities on your phone
---
⚠️ This script does not repaint.
Built for serious traders who want precision, not noise.
The Hebrew CalendarThis indicator displays the current Hebrew (Jewish) calendar date based on the real-time Gregorian calendar. Features included:
Calculates and displays the current Hebrew day, month, and year.
Recognizes leap years and adjusts month counts accordingly.
Aligns with traditional Hebrew month names (Tishrei, Cheshvan, Kislev, etc.).
The calculations align with the Hebrew Calendar Converter from:
👉 www.chabad.org
The results are shown in a table overlay on your chart's top-right corner. This indicator is great for symbolic traders, astro enthusiasts, or anyone interested in ancient timekeeping systems woven into financial timeframes. Enjoy, time travelers! ⌛
The Mayan CalendarThis indicator displays the current date in the Mayan Calendar, based on real-time UTC time. It calculates and presents:
🌀 Long Count (Baktun.Katun.Tun.Uinal.Kin) – A linear count of days since the Mayan epoch (August 11, 3114 BCE).
🔮 Tzolk'in Date – A 260-day sacred cycle combining a number (1–13) and one of 20 day names (e.g., 4 Ajaw).
🌾 Haab' Date – A 365-day civil cycle divided into 18 months of 20 days + 5 "nameless" days (Wayeb').
The calculations follow Smithsonian standards and align with the Maya Calendar Converter from the National Museum of the American Indian:
👉 maya.nmai.si.edu
The results are shown in a table overlay on your chart's top-right corner. This indicator is great for symbolic traders, astro enthusiasts, or anyone interested in ancient timekeeping systems woven into financial timeframes. Enjoy, time travelers! ⌛
Sentiment Bias Gauge📌 Overview
The Sentiment Bias Gauge (SBG) is a unique overlay-style indicator that visually maps a sentiment value—such as market bullishness or bearishness—onto your price chart. It converts sentiment data (in this case, RSI-based) into a floating line that moves between defined price zones, allowing users to quickly understand the current market mood in the context of price.
⚙️ How It Works
• The indicator uses RSI (Relative Strength Index) as a proxy for market sentiment (0 to 100 scale).
• This sentiment value is then mapped to a vertical price range on your chart using a configurable zone (via top and bottom percent of chart range).
• The line floats up or down within the price chart, reflecting how bullish or bearish the sentiment is.
• It includes background shading to represent the sentiment level:
• 🔴 Red (Bearish): sentiment < 30
• 🟡 Yellow (Neutral): 30 ≤ sentiment ≤ 70
• 🟢 Green (Bullish): sentiment > 70
• A floating label shows the current sentiment score.
🌟 Key Features
• 📈 Overlay-Based Sentiment Line: Plots sentiment as a price-level line, giving intuitive spatial reference.
• 🔧 Configurable Range Placement: Adjust where the sentiment line appears within the chart’s high-low range.
• 🖌️ Color-Coded Background: Visually distinguish bullish, bearish, and neutral conditions.
• 🏷️ Real-Time Sentiment Label: Displays updated sentiment score on the most recent bar.
🧠 How to Use
• Use this indicator alongside your price action or technical strategy to gauge market mood.
• Combine with other sentiment indicators (e.g., fear/greed, delta volume, news sentiment).
• Especially helpful in sideways markets to identify potential shifts in bias before price reacts.
Why This Combination?
• RSI offers a reliable and intuitive proxy for market sentiment.
• Mapping the value directly onto the chart helps avoid constantly looking at a separate panel.
• The customizable chart range lets traders fit sentiment visuals within any market structure.
🎯 Why It’s Worth Using
• Makes sentiment visually accessible directly on the chart.
• Helps detect bullish/bearish bias shifts earlier than traditional indicators.
• A great tool for sentiment-aware discretionary trading or contextual overlays in algo strategies.
Apex Edge SMC Tactical Suite
🛰 Apex Edge SMC Tactical Suite
Apex Edge SMC Tactical Suite is a precision-engineered multi-signal tool designed for advanced traders who demand real-time edge detection, breakout identification, and smart volatility-based risk placement. Built to blend seamlessly into any price action, SMC, or momentum-based strategy.
🔧 Core Features:
📍 Entry Signals
Green & red arrows appear only when a candle meets strict "Power Candle" criteria:
High momentum breakout
Volume spike confirmation
OBV spike divergence
Trend & HTF filter optional
Volatility-adjusted stop placement
💥 Power Candles
Smart detection of explosive volume+range candles
Custom "fuel score" system ranks their momentum potential
Displays as either candle highlights or subtle labels
📊 Fuel Meter
RSI-based energy tracker with customizable threshold
Plots real-time bar strength on a mini histogram
🧠 Trap Detection + Reversals
Detects stop hunt wicks or "liquidity traps"
Shows reversal diamonds on potential reclaim setups
Built-in swing logic confirms trap reversals
🧮 HTF Filtering
Optional higher-timeframe trend filter via Hull MA
Keeps signals aligned with broader market direction
📦 TP/SL Zones
Risk is calculated using volatility clustering (recent swing zones)
TP auto-calculated using ATR-based expansion
🔔 Alerts Included:
✅ Power Candle Detection
✅ Long/Short Entry Alerts
✅ Exit Signal Alerts
✅ Trap Defense Alerts
✅ Trap Reversal Confirmations
🎯 Ideal For:
SMC / ICT traders
Breakout traders
Trend followers
Scalpers / intraday setups
Momentum + volume combo traders
⚠️ Tip: Best paired with clean chart layouts, market structure, or order block frameworks. Can be combined with internal/external liquidity sweep logic for extra confluence.
Feel free to play around with the code and if you're a professional coder (unlike me) then please tag me into any versions that you can make better. Enjoy!
Disclaimer - This script was created entirely with many hours using the assistance of ChatGPT
GranDoc - Week, Day, Month, and Session Separator5Indicator Name: GranDoc's - Week, Day, Month, and Session Separator
Version: Pine Script v5
Author: Jonpaul Nnamdi Opara (GranDoc )
Description
The "GranDoc - Week, Day, Month, and Session Separator" is a highly customizable TradingView indicator designed to enhance chart analysis by visually marking critical time-based transitions. Developed by Jonpaul Nnamdi Opara, this tool plots vertical lines with labels or background highlights to denote the start and end of weeks, days, months, and major trading sessions (Frankfurt, London, NY Morning, NY Afternoon, Sydney, and Tokyo). Traders can tailor colors, line styles, widths, transparency, and session times to align with their strategies and timezones.
Ideal for forex, stocks, futures, and crypto traders, this indicator simplifies the identification of key market periods—such as session openings/closings or new weeks—that often signal increased volatility or trend shifts. It’s optimized for intraday timeframes for session separators but supports all timeframes for week, day, and month markers, making it a versatile addition to any trader’s toolkit.
Features
Week Separators: Marks Monday starts with customizable lines and "Week Start" labels.
Day Separators: Highlights daily openings with lines and "Day Start" labels.
Month Separators: Indicates new months with lines and "Month Start" labels.
Session Separators: Plots lines and labels for major trading sessions’ start and end:
Frankfurt (default: 07:00–15:00 UTC)
London (default: 08:00–16:00 UTC)
NY Morning (default: 13:00–16:00 UTC)
NY Afternoon (default: 16:00–21:00 UTC)
Sydney (default: 22:00–06:00 UTC)
Tokyo (default: 00:00–08:00 UTC)
Timezone Support: Adjusts session times with a UTC offset (±12 hours).
Display Flexibility : Toggle between labeled vertical lines or background highlights.
Customization: Fine-tune colors, line styles (solid, dashed, dotted), widths, and transparency.
Background Mode: Highlights periods with translucent backgrounds for cleaner charts.
[ i]Labeled Lines: Each line includes descriptive labels (e.g., "London Open", "Tokyo Closed") when not in background mode.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor.
Click "Add to Chart" to apply the indicator.
Customize Settings:
Open settings via double-click or the "Settings" gear icon.
Timezone Offset: Set your UTC offset (e.g., -5 for EST) to align sessions.
Toggles: Enable/disable week, day, month, or session separators.
Appearance: Adjust colors, line styles, widths, and transparency for each separator.
Session Times: Modify start/end hours and minutes if defaults don’t suit your market.
Background Mode: Enable "Show as Background" for colored backgrounds instead of lines, and tweak "Session Background Transparency."
Labels: Labeled lines (e.g., "Sydney Open") appear automatically unless background mode is active.
Chart Compatibility:
Session separators require intraday timeframes (e.g., 1-minute to 4-hour).
Week, day, and month separators work across all timeframes.
Confirm your chart’s timezone aligns with your analysis.
Analyze:
Use separators to pinpoint session transitions, daily openings, or weekly shifts for trade planning.
Labels make it easy to spot key periods on busy charts.
Pair with indicators like RSI, volume, or support/resistance for deeper insights.
Example Use Cases
Forex Trading: Highlight London and NY session opens/closes for high-liquidity entries.
Day Trading: Reset strategies at daily separators and monitor intraday volatility.
Swing Trading: Use week/month separators to track longer-term trends.
Session Focus: Isolate sessions like Tokyo for regional market analysis.
Chart Clarity: Background mode declutters charts while marking key times.
Notes
Session separators are disabled on daily+ timeframes to prevent clutter.
Verify timezone offset for accurate session alignment.
Background mode suits lower timeframes for readability.
Labels are visible only when background mode is disabled.
Feedback
Share your thoughts or suggestions to make this indicator even better! Reach out via TradingView or connect with the author for insights. Happy trading!
About the Author
Dr. Jonpaul Nnamdi Opara, a PhD graduate from Ehime University, Japan, is a researcher and developer specializing in AI and machine learning. His work on automated landslide mapping and defect detection, published in journals like GEOMATE, showcases his precision-driven approach. With the "GranDoc" indicator, Jonpaul brings intuitive, data-driven clarity to financial markets, reflecting his expertise in creating impactful tools.
Win-Loss Streak PlotterWin-Loss Streak Plotter
This indicator tracks the win/loss streaks of moving average crossovers (using simple moving averages for illustration purposes). It calculates the price change after each crossover, marking each as a win (green) or loss (red). The win rate is shown separately.
Inputs:
Source: Price series (default: open)
Fast MA: Fast moving average (default: open)
Slow MA: Slow moving average (default: open)
Total Crosses to Analyze: Number of crossovers to track
Crosses per Row: Number of crossovers per row in the table
Output:
A table displays each crossover’s result (win/loss).
A separate win rate table shows the percentage of wins.
Suggestions are always welcomed!
NQ/MNQ Position Sizing
Despite having my own position sizing calculator in an excel sheet, the manual process of having to identify my next trade, switch tabs/screens, input my values into the sheet, go back into TV, input the trade parameters with appropriate contract sizing, has always really gotten to me. I also found that I would often miss ideal entries due to the delay this caused.
I searched TV for position sizing calculators but almost all the ones I found seemed to be similar: based on some form of manual input for the entry and stop parameters, many of which had way more settings and parameters than I needed, also over complicated things.
I just needed something that would allow me to dynamically set my entry and stop levels directly on the chart, and spit out the appropriate contracts I should be using, either on NQ or MNQ, to maintain my desired level of risk, so I could quickly execute the necessary trade.
So, I coded my own and it's been a huge help to me already, so I thought I may as well publish the script as can't imagine there aren't others out there that also hate the manual data entry process of calculating risk.
Upon first load, the script will ask you to set your Entry and Stop levels, before drawing respective lines for these on the chart, and calculating contract sizing based on your risk settings, which you can update directly. The reset values may be buggy, will be easier to just remove the script and re-apply it to your chart if you ever lose track of the levels you've set.
Hope it's useful.