demark_utilsLibrary "demark_utils"
f_grade(score)
Parameters:
score (float)
f_clampScore(score)
Parameters:
score (float)
f_px(v)
Parameters:
v (float)
f_pxOrDash(v)
Parameters:
v (float)
f_sum(src, length)
Parameters:
src (float)
length (int)
f_hasAnyBits(bus, mask)
Parameters:
bus (int)
mask (int)
f_busSetMask(bus, mask)
Parameters:
bus (int)
mask (int)
f_evSet(bus, flag)
Parameters:
bus (int)
flag (int)
f_evSet2(bus, flag)
Parameters:
bus (int)
flag (int)
지표 및 전략
demark_renderLibrary "demark_render"
f_renderMaxBack(lookbackBars)
Parameters:
lookbackBars (float)
f_renderExtendBars(levelLineExtendBarsMax)
Parameters:
levelLineExtendBarsMax (int)
f_upsertLevelLine(lnIn, show, y, col, width, style, levelLineExtendBarsMax)
Parameters:
lnIn (line)
show (bool)
y (float)
col (color)
width (int)
style (string)
levelLineExtendBarsMax (int)
f_upsertZoneBox(bxIn, show, x1, lo, hi, bg, brd, brdW, lookbackBars, levelLineExtendBarsMax)
Parameters:
bxIn (box)
show (bool)
x1 (int)
lo (float)
hi (float)
bg (color)
brd (color)
brdW (int)
lookbackBars (float)
levelLineExtendBarsMax (int)
f_upsertTdLine(lnIn, show, p1Idx, p1Price, p0Idx, p0Price, col, width, style, lookbackBars, levelLineExtendBarsMax)
Parameters:
lnIn (line)
show (bool)
p1Idx (int)
p1Price (float)
p0Idx (int)
p0Price (float)
col (color)
width (int)
style (string)
lookbackBars (float)
levelLineExtendBarsMax (int)
f_levelTagX(levelLineExtendBarsMax)
Parameters:
levelLineExtendBarsMax (int)
f_stackY(baseY, step, idx, stackUp)
Parameters:
baseY (float)
step (float)
idx (int)
stackUp (bool)
f_upsertLevelTag(lbIn, show, y, txt, bg, tc, sz, levelLineExtendBarsMax)
Parameters:
lbIn (label)
show (bool)
y (float)
txt (string)
bg (color)
tc (color)
sz (string)
levelLineExtendBarsMax (int)
f_upsertPointTag(lbIn, show, x, y, txt, bg, tc, sz, sty)
Parameters:
lbIn (label)
show (bool)
x (int)
y (float)
txt (string)
bg (color)
tc (color)
sz (string)
sty (string)
Anchored OBV + A/DAnchored OBV + A/D is a single-pane indicator that allows On-Balance Volume (OBV) and Accumulation/Distribution (A/D) to be plotted together using a period-anchored approach.
OBV and A/D are cumulative by nature, which makes their full-history absolute values arbitrary and often incomparable when plotted side-by-side . This script addresses that limitation by anchoring each indicator to a user-defined period (daily, weekly, monthly, etc.) and plotting their relative change from that baseline rather than their raw values. The result is a comparison that preserves each indicator’s internal structure (trends, inflections, and divergences) while minimizing scale conflicts.
How it Works
At the start of each selected anchor period, the script records the current OBV and A/D values as baselines. All subsequent values are plotted as changes relative to those baselines:
- Percent mode measures the % change from the baseline.
- Delta mode measures the absolute change from the baseline.
Optional anchor markers and a zero line make it easy to see when resets occur and how each indicator behaves relative to the period’s starting point.
Advantages vs using OBV and A/D separately
- Direct visual comparison: Both indicators are on the same anchored scale, making relative movement immediately readable.
- Preserved analytical structure: Trends, inflections, and divergences remain intact; time-based shape is not distorted.
- Cleaner workflow: One indicator, one pane, and less chart clutter.
Interpretation
- Values above zero indicate net accumulation or positive volume pressure since the anchor.
- Values below zero indicate net distribution or negative volume pressure since the anchor.
- Trend confirmation: Rising price accompanied by rising anchored OBV and A/D suggests healthy participation.
- Price Divergence: Price making new highs or lows while one or both indicators fail to confirm can indicate weakening participation or a potential change in behavior.
- OBV vs A/D Interaction: When both move together, volume and close-location effects broadly agree. When they diverge, it highlights differences between net up/down volume (OBV) and intrabar accumulation/distribution (A/D).
Warnings!
- Percent mode can become visually unstable when baseline OBV or A/D values are near zero due to division effects inherent in percent-change calculations.
- It is not recommended to interpret structure across periods as each period is relative to a different baseline. Structure is not preserved across periods - only within each individual period.
Credits
This script is inspired by Multi-Ticker Anchored Candles (MTAC) by @SamRecio . MTAC's anchored-baseline concept and open-source nature provided an important conceptual foundation for adapting the same idea to OBV and A/D. Many thanks to @SamRecio for publishing his work openly.
LevelsOverview
HL Marking Pro is a clean, multi-timeframe level marker designed for traders who prioritize a clutter-free workspace. Unlike standard indicators that crowd the chart area with text labels, this script utilizes native Price Scale Tags to display key historical and intraday levels directly on the Y-axis.
Key Features
Axis-Integrated Labels: Key levels are displayed as colored tags on the right-hand price scale, keeping the candle area clear for price action analysis.
Dynamic Session Tracking: Includes real-time tracking for the current Session High (SH) and Session Low (SL).
Multi-Timeframe Logic: Automatically tracks Previous Daily (PDH/L), Weekly (PWH/L), Monthly (PMH/L), Quarterly (PQH/L), and Yearly (PYH/L) levels.
Smart Visibility: To prevent "color waterfalls" on the axis, lower-tier levels (Daily/Session) are automatically hidden on higher timeframe charts (Weekly/Monthly).
Reliable ATH: The All-Time High (ATH) is calculated via security calls to ensure it remains visible and accurate even on high-timeframe charts where bar history might be limited.
No Repainting: All historical levels reference completed candles to ensure levels stay fixed and reliable throughout the trading session.
How to Use
Add the script to your chart.
To get the cleanest look (matching the screenshots), Right-click the Price Scale -> Labels -> and select "Value Only". This removes the indicator name and the colon (:) prefix.
The script will automatically adjust which levels are shown based on the timeframe you are currently viewing.
David's Macro FVG [v6]Describe the script. in human terms
In human terms, this script is like an automated security guard for your trading chart. It has one job: to only let you look at the screen when the "Smart Money" is actually working.
Here is the breakdown of how it "thinks" in plain English:
1. The Gatekeeper (The Clock)
The script starts by looking at the clock. It knows your rule: 10 minutes before the hour to 10 minutes after.
If it’s 2:30 PM: The guard is "asleep." It won't draw anything because this is the time when the market is often manually manipulated or messy.
If it’s 2:55 PM: The guard "wakes up." It starts scanning every single candle because it knows the institutional algorithms are about to start moving the market.
2. Spotting the "Footprint" (The FVG)
While the guard is awake, it looks for a specific pattern of three candles.
Imagine the market is a snowy field. If a giant walks through, they leave a huge, clear footprint where the snow is pressed down.
An FVG is that footprint. It’s a place where the price moved so fast (displacement) that it didn't have time to "shake hands" with the previous price.
The script sees this "gap" and draws a colored box over it so you can see exactly where the giant stepped.
3. Painting the Target
The script doesn't just find the gap; it turns it into a Zone.
Green Boxes: These are "Buy Zones." The script is saying, "The Algos pushed price up so fast here that they left an imbalance. They will likely come back to this box to fill their remaining orders."
Red Boxes: These are "Sell Zones." The script is saying, "The Algos slammed the price down. Watch for the price to return to this red box so you can go short."
4. Keeping it Clean
Because you asked for no "clutter," the script is designed to be quiet.
It doesn't draw lines in the middle.
It doesn't draw boxes outside of your macro times.
It just puts a Blue Background on your chart when it's "Macro Time." If you see blue, you look for a box. No blue? No trade.
Summary Checklist for You:
Blue Background? If yes, the "Security Guard" is awake.
Did a Box Appear? If a green or red box appears, that is your Fiji/FVG setup.
The Touch: You wait for the price to move back and "step inside" that box. That is your entry.
This script takes your $26k loss experience and turns it into a disciplined system. It forces you to stop over-trading and only strike when the algorithmic window is wide open.
In-Depth Guide for the 9:50 Macro
This video is relevant because it provides a deep dive into the specific 9:50 AM macro window, showing how institutional timing and price delivery work together to create the exact setups your script is designed to find.
In-Depth Guide for the 9:50 Macro | ICT Concepts - YouTube
flux trades · 41K views
Vishall Candle Power X Value// === Base values ===
longPower = close - low
shortPower = high - close
// === Y calculation ===
// For completed candles, close is the candle close
// For the running candle, close is the current spot price automatically
Y = close
// === Final X formula ===
x = ((longPower - shortPower) / Y) * 100
23:00 London 15m -> Asia Close (No colors)//@version=5
indicator("23:00 London 15m -> Asia Close (No colors)", overlay=true, max_lines_count=50, max_labels_count=50)
tz = "Europe/London"
// set Asia close in London time
asiaCloseHour = input.int(6, "Asia close hour (London)", minval=0, maxval=23)
asiaCloseMin = input.int(0, "Asia close minute", minval=0, maxval=59)
is15 = timeframe.period == "15"
is2300 = hour(time, tz) == 23 and minute(time, tz) == 0
cond = is15 and is2300
var line hiLine = na
var line loLine = na
var label info = na
f_asiaCloseTs(_t) =>
y = year(_t, tz)
m = month(_t, tz)
d = dayofmonth(_t, tz)
closeToday = timestamp(tz, y, m, d, asiaCloseHour, asiaCloseMin)
closeNext = timestamp(tz, y, m, d + 1, asiaCloseHour, asiaCloseMin)
_t >= closeToday ? closeNext : closeToday
if cond
hi = high
lo = low
endTs = f_asiaCloseTs(time)
if not na(hiLine)
line.delete(hiLine)
if not na(loLine)
line.delete(loLine)
if not na(info)
label.delete(info)
// High line
hiLine := line.new(time, hi, endTs, hi, xloc=xloc.bar_time, extend=extend.none, width=2)
// Low line
loLine := line.new(time, lo, endTs, lo, xloc=xloc.bar_time, extend=extend.none, width=2)
// Label with exact values
info := label.new(endTs, hi, xloc=xloc.bar_time,
text="23:00 London (15m) High: " + str.tostring(hi, format.mintick) + " Low: " + str.tostring(lo, format.mintick),
style=label.style_label_left)
Trader Baboo Aanaa V 1.2this script uses ema five to generate bullish signal. it is comprised only of 5 ema
Liquidity Sweeps by EVThis indicator is designed to detect liquidity sweeps and stop hunts by identifying when price briefly moves beyond key swing highs or lows and then rejects those levels. It highlights areas where buy-side or sell-side liquidity has been taken, offering traders a clear and objective way to read liquidity-driven market behavior.
Buy-side liquidity sweeps occur when price trades above a previous swing high and fails to hold, while sell-side liquidity sweeps occur when price trades below a previous swing low and quickly recovers. All detections are based on confirmed pivots, ensuring the indicator is fully non-repainting and reliable in live trading conditions.
The indicator allows users to choose between close-based or wick-based confirmation and can optionally mark only the first sweep of each liquidity level to reduce chart noise. Liquidity levels can be visualized directly on the chart, providing precise contextual references for market structure, VWAP confluence, and potential reversals.
RSI-SAR-Fibonacci StrategyIngresar en el Retroceso del 0.61 del Fibonacci, Tp 3 a 1 o RSI en 70 o 30 Salir.
BOS + CHoCH by EVThis indicator is designed to identify market structure shifts through Break of Structure (BOS) and Change of Character (CHoCH) using confirmed swing highs and lows. It provides a clear and objective way to read price structure by distinguishing between continuation moves and genuine directional changes.
BOS events represent structural continuation, occurring when price breaks a previous swing level in the direction of the prevailing bias. CHoCH events highlight potential trend reversals, triggering when price breaks a key level against the current structural bias. This distinction allows traders to better contextualize momentum, trend strength, and possible regime changes.
All calculations are based on confirmed pivots, ensuring the indicator is fully non-repainting and reliable in live market conditions. Break confirmation can be evaluated using candle closes or wicks, depending on user preference, and optional level lines can be drawn to visualize the exact structure point that was broken.
Futures Risk Manager (Futures)Risk management table for consistency trading.
Auto adjustable for MINI/MICRO based on your account.
can change RR shows SL and TP and amount to enter.
Please take note that you need to update every trade the stop tick and RR ratio.
Good luck in your trading journey.
BIST Commander - Strategic MomentumDescription : This indicator is designed for retail investors who want to follow the trend without getting caught in market noise. It is optimized for 1-Hour, 2-Hour, and 4-Hour timeframes.
Key Features:
Triple Filter Mechanism: Checks Daily Bullish structure, Weekly Confirmation, and Momentum (CCI) simultaneously.
No Repaint: Signals are calculated based on fixed daily/weekly data to ensure stability.
Anti-Noise: By using a strict CCI threshold (95/-85), it avoids premature entries in sideways markets.
Strategy Logic:
BUY: Active when the price is above Today's Open AND Yesterday's High AND Weekly Open AND CCI is above 95.
SELL: Triggered when CCI loses momentum (falls below 85) or enters a bearish zone.
Note: This is a trend-following tool. It works best in trending markets and helps you stay disciplined.
Vwap by EVThis indicator provides a complete multi-VWAP framework designed for traders who rely on price acceptance, value areas, and mean reversion across different market horizons. It plots Session, Daily, and Weekly VWAPs simultaneously, allowing users to understand short-term, intraday, and higher-timeframe value in a single, uncluttered view.
The Session VWAP supports custom trading hours and timezones, making it adaptable to equities, indices, forex, and crypto markets. All VWAP calculations are volume-weighted and non-repainting, with optional standard deviation bands based on true volume dispersion rather than fixed offsets. This ensures that each VWAP reflects genuine market participation and volatility.
Daily and Weekly VWAPs act as higher-timeframe equilibrium references, helping traders identify premium and discount zones, dynamic support and resistance, and directional bias. Optional band visibility and independent styling allow the indicator to remain clean while still providing depth when needed.
PSP Suite for Algo 1HTF -25% Target## 🔹 PSP Suite for Algo 1HTF – 25% Target
**(Nifty Options – CE / PE)**
### 📌 What this indicator is for
PSP Suite for Algo is a **trend-based directional options indicator** designed specifically for **NIFTY index options trading**.
It helps traders capture **high-probability directional moves** with **clear CE / PE signals**, controlled risk, and predefined targets.
---
## ⏱ Best Timeframe
* **Primary Timeframe:** ✅ **1 Hour (1H TF)**
* Do **not** use on lower timeframes for best accuracy
* Works best during **trending sessions**
---
## 📊 Instrument Best Suited
* **NIFTY Index**
* **NIFTY Weekly Options**
* Buy **CE** on BUY signal
* Buy **PE** on SELL signal
⚠️ Avoid Bank Nifty / Fin Nifty unless properly back-tested.
---
## 🟢 How to Trade (Simple Rules)
### ▶ BUY CE Signal
* When **BUY CE** label appears:
* Buy **ATM or slight ITM CE**
* Prefer same-week expiry
* Enter **after candle close** on 1H timeframe
### ▶ BUY PE Signal
* When **SELL PE** label appears:
* Buy **ATM or slight ITM PE**
* Prefer same-week expiry
* Enter **after candle close** on 1H timeframe
🚫 No over-trading: **Only one position per signal**
---
## 🎯 Target & Stop Loss (Strict Rule)
* **Target:** 🎯 **25% Option Premium**
* **Stop Loss:** ❌ **25% Option Premium**
* **Risk : Reward:** ⚖️ **1 : 1**
👉 When trade moves strongly in your favor, **manual trailing is recommended** (as shown on chart).
---
## 💰 Expected Returns on Nifty
* **Per Trade:**
* ~ **100 – 250 Nifty points equivalent move**
* Option premium typically gives **20–40% moves**
* **Accuracy:** High during **clear trends**
* Best results when market is **not sideways**
---
## 📅 Ideal Market Conditions
✅ Trending Market
✅ Expansion after consolidation
❌ Avoid very low-volatility / choppy sessions
---
## 🔔 Alerts
* Built-in alerts available for:
* **BUY CE**
* **BUY PE**
* Recommended to enable **Once Per Bar Close**
---
## 🧠 Important Notes
* This is **not a scalping tool**
* Designed for **positional intraday / short swing**
* Follow **discipline in SL & position sizing**
* Works best with **trend confirmation from price structure**
---
## ⚠️ Disclaimer
This indicator is for **educational and analytical purposes only**.
Options trading involves risk. Please trade responsibly.
eBacktesting - Learning: Support & ResistanceeBacktesting - Learning: Support & Resistance helps you spot the price levels where the market repeatedly reacts, bounces, or rejects — the classic “floors” (support) and “ceilings” (resistance) that many day traders use to plan entries, stops, and targets.
This indicator automatically marks historical support and resistance levels right where they formed, so you can scroll back and study how price respected (or broke) those zones over time. It also highlights important moments when a level is broken, showing you how a broken resistance can later act like support (and vice-versa).
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Evil's Weekly Momentum ScoreA momentum scoring system that ranks any ticker on a 0-100 scale based on multi-timeframe relative strength. Built for weekly rotation decisions - example, I like to check this every Tuesday when it's nice and quiet, then rotate into the 3 strongest names.
Works on sector ETFs (XLK, XLF, XLE, etc.), mega caps (AAPL, NVDA, MSFT, GOOGL), or any liquid ticker watchlist you'd like to rank. Sector ETFs are probably more stable, mega caps have higher volatility; build your watchlist according to your comfort threshold.
How It Works
The indicator combines four components into a single score:
13-Week Momentum (40%) - Quarterly relative strength vs SPY. Where are institutions rotating?
4-Week Momentum (25%) - Monthly trend confirmation. Is the medium-term move intact?
2-Week Acceleration (20%) - Is momentum speeding up or fading? Catches turns early.
10-Week MA (15%) - Trend filter. Price above or below the 10-week moving average.
Each component is measured relative to SPY by default, so you're seeing true outperformance - not just whether something is going up, but whether it's beating the market.
Signal Levels
90+ : ON FIRE 🔥
80-89 : STRONG BUY
70-79 : BUY
50-69 : HOLD
Below 50 : AVOID
In my opinion, cash is a valid position so I don't rotate into scores below 80.
Features
Toggle each component on/off — weights auto-redistribute
Compare to SPY or use absolute momentum
Dashboard overlay sits on your price chart
Position dashboard anywhere: top/bottom, left/right
Alerts for signal level crossings
How To Use It
Add to your watchlist and flip through charts. Compare scores across sectors or mega caps. Rotate into the highest-scoring names, trim or avoid the lowest. Green values in the dashboard = outperforming. Red = underperforming. Simple.
Best Used For
Weekly sector rotation
Mega cap relative strength ranking
Momentum-based stock selection
Identifying leadership shifts before they're obvious
Bollinger BandsThis indicator is a locked Bollinger Band system designed around a long-term volatility envelope. It uses an EMA(100) as the central “basis” line and builds the upper and lower bands at 3.5 standard deviations from the basis, creating a wide channel that highlights extreme price expansion rather than frequent mean-reversion touches. In addition to the standard bands, the script plots two intermediate guide lines located at 33.33% of the distance from the basis toward the upper and lower bands. These 1/3-zone lines help visually segment the band into core, mid, and extreme areas, making it easier to judge how far price has stretched relative to the EMA and current volatility. Traders can use the basis as a trend reference, the 33.33% lines as “early extension” or pullback checkpoints, and the outer bands as high-stretch boundaries for risk management, scaling, and contextual decision-making on intraday charts.
Support Resistance by EVThis indicator is designed to provide a clean and practical market structure view by combining automatic support and resistance detection with dynamic trend analysis. It identifies key support and resistance levels using confirmed swing highs and lows, intelligently merging nearby levels based on market volatility and filtering out outdated or irrelevant zones to keep the chart clear and focused on what matters now.
In addition to horizontal support and resistance, the indicator offers two complementary ways to read trend context. It can display diagonal trendlines built from the most recent swing highs and swing lows to visualize directional structure, or horizontal trend rays based on the latest pivots to highlight dynamic support and resistance acting as trend references. The user can switch between these modes depending on trading style and market conditions.
All visual elements are anchored by time rather than bar index to ensure stability when zooming or scrolling the chart. The indicator is fully non-repainting, relies only on confirmed pivots, and is suitable for any market or timeframe. It is intended as an open-source, professional-grade tool that helps traders quickly identify structure, trend bias, and key reaction levels without clutter or visual noise.
SMC_Momentum_Signal## SMC Structure & Momentum Strategy
This indicator is a comprehensive trading tool built on Pine Script v5, utilizing Smart Money Concepts (SMC) combined with trend momentum filters.
### Key Features:
* **Primary Signal (Structure Break):** Identifies potential points of interest based on structural changes (pivots), often associated with Order Blocks or Breaker Blocks.
* **Momentum & Trend Filter:** Uses an 8/21 EMA crossover to define the current trend direction and momentum strength, helping filter out low-probability signals.
* **Dynamic Support/Resistance Zones:** Automatically plots and updates accumulation/distribution zones (Support/Resistance) based on configurable volume lookback periods.
* **Automated Risk Management:** Calculates and plots fixed Take Profit (TP) and Stop Loss (SL) lines automatically upon entry, based on a user-defined **Risk:Reward Ratio** and volatility (ATR multiplier).
---
**DISCLAIMER:** This tool is intended for educational purposes only. It is not financial advice, and the user should always practice proper risk management. Past performance is not indicative of future results.
Bollinger Bands (Locked: EMA100, 3.5) + 33.33% LinesThis indicator is a locked Bollinger Band system designed around a long-term volatility envelope. It uses an EMA(100) as the central “basis” line and builds the upper and lower bands at 3.5 standard deviations from the basis, creating a wide channel that highlights extreme price expansion rather than frequent mean-reversion touches. In addition to the standard bands, the script plots two intermediate guide lines located at 33.33% of the distance from the basis toward the upper and lower bands. These 1/3-zone lines help visually segment the band into core, mid, and extreme areas, making it easier to judge how far price has stretched relative to the EMA and current volatility. Traders can use the basis as a trend reference, the 33.33% lines as “early extension” or pullback checkpoints, and the outer bands as high-stretch boundaries for risk management, scaling, and contextual decision-making on intraday charts.






















