Trader Marks Trailing SL + TP (BE @ 66%)📌 Title
Trader Marks Trailing SL + TP (BE @ 66%)
📌 Description
This indicator combines Stop-Loss, Take-Profit, and Trailing Stop management into one tool.
It offers two different modes:
S/L+ EXACT → Reproduces the classic ATR Trailing Stop Indicator (by ZenAndTheArtOfTrading) with full accuracy.
Advanced (Delay + BE + Ratchet) →
Uses a fixed SL until X hours after entry
Then switches to ATR-based trailing stop (ratchet, never reverses)
Moves the stop to Break-Even once Y% of the distance to the target has been reached
📌 Features
✅ Two modes: Classic & Advanced
✅ Works for both Long & Short trades
✅ Manual entry, SL and TP levels
✅ Start delay for trailing (e.g. 12 hours)
✅ ATR-based ratcheting (never moves backwards)
✅ Automatic Break-Even stop at 66% of the way to TP (adjustable)
✅ Visual plots for Entry, SL, TP, current Stop, and 66%-threshold
✅ Alerts for Stop-Hit, TP-Hit, and BE activation
📌 Parameters
Setup
Direction: Long / Short
Entry Price
Stop-Loss
Take-Profit (manual)
Mode
S/L+ EXACT
Advanced (Delay+BE+Ratchet)
S/L+ Parameters
ATR Length (default 14)
High/Low lookback (default 7)
ATR Multiplier (default 1.0)
Basis: High/Low, Close, or Open
Advanced Parameters
ATR Length (e.g. 14)
ATR Multiplier (e.g. 1.0)
Update only on bar close (true/false)
Start delay in hours (e.g. 12)
BE Threshold in % of distance to TP (default 66%)
Option to stop trailing after BE
📌 Alerts
Stop Hit (Long)
Stop Hit (Short)
TP Reached (Long)
TP Reached (Short)
Break-Even Active
📌 Recommended Defaults
Mode: Advanced (Delay+BE+Ratchet)
ATR Length: 14
Lookback: 7
ATR Multiplier: 1.0
Start Delay: 12 hours
Break-Even Threshold: 66%
Chỉ báo và chiến lược
Dual Relative Strength (vs NIFTY) Nikrun1. Fast RS (Early Leadership)
• Indicator: Relative Strength (by modhelius)
• Comparative Symbol: NIFTY
• Period: 26 weeks (~6 months)
• Purpose: Detects early shifts in relative strength before price fully confirms.
⸻
2. Slow RS (Confirmation)
• Add the same indicator again.
• Comparative Symbol: NIFTY
• Period: 52 weeks (1 year)
• Purpose: Confirms sustained leadership. Helps filter noise & false positives.
⸻
3. Visuals
• Style tip:
• Make RS(26) = blue line (fast, responsive).
• Make RS(52) = thicker black/green line (slow, authority).
• Keep zero line visible so you instantly see outperformance/underperformance.
⸻
VWAP + EMA50 + EMA200 (with optional Anchored VWAP)VWAP + EMA50 + EMA200 (with optional Anchored VWAP)
ROV - Rising Only VolumeROV - Rising Only Volume
It will show the volume only if it is above the previous period
Multi-Session High/Low Trackertable that shows rth eth and full weekly range high and low with range difference from high and low
Gronk-Style Lunar Cycle Projection (fixed 30m base)Based on the lunar cycle timing provided by Gronko Polo - A Bromance in Finance
FVG & SMA @danciFVG zones with 200 SMA & daily dividers for intraday analysis, customizable and clear.
Stacey Burke Signal Day LTE“Previously published as ‘Day Zero Fakeout Detector MTF’”
Stacey Burke Signal Day LTE
Automatic detection of Day Zero, Inside Days, and Outside Days for Stacey Burke’s intraday playbook
🔎 Stacey Burke’s Signal Days
This indicator highlights the key daily patterns that often lead to high-probability intraday setups in Stacey Burke’s methodology:
1️⃣ Day Zero
The reset days within a 3-day cycle (e.g. breakout → continuation → exhaustion/reversal).
Can mark the beginning of a new directional phase.
Trades back inside the prior range after a Peak Formation High (PFH) or Peak Formation Low (PFL).
Bias: Look for measured parabolic session moves. When combined with trend following indicators, these signal days can be very powerful.
2️⃣ Inside Day
A day where the entire range is contained within the prior day’s range.
Signals consolidation and energy build-up.
Often leads to explosive breakouts in the next session.
Bias: Trade breakouts of the inside day’s high/low or breakout reversal in the session at key timings in the direction of higher timeframe bias. When combined with trend following indicators, these signal days can be very powerful.
3️⃣ Outside Day (Engulfing Day)
`
A day where the range is larger than the prior day’s range, engulfing both high and low.
Marks trapped traders and fakeouts on both sides.
Often precedes strong continuations or sharp reversals from outside of the ranges.
Bias: Align trades with the true continuation move. When combined with trend following indicators, these signal days can be very powerful.
📌 How They Work Together
Day Zero → Signals the new cycle after PFH/PFL.
Inside Day → Signals compression → expect breakout setups.
Outside Day → Signals exhaustion/fakeouts → expect reversals or continuations.
Together, they give traders a clear daily roadmap for where liquidity sits and when to expect the highest-probability setups.
✅ Example in Practice
Market rallies for 3 days → PFH forms → Day Zero short bias.
Next day prints an Inside Day → watch for breakout continuation short, and breakout reversals.
Later, an Outside Day traps both longs and shorts → the following session offers a clean intraday reversal or continuation trade in line with the underlying MTF trend/bias.
⚙️ Features of This Indicator
Automatic detection of Day Zero, Inside Days, and Outside Days
Multi-Timeframe (MTF) support for cycle alignment
Visual markers for PFH/PFL and consolidation zones
Measured move projections for breakout targets
👉 Stacey Burke Signal Day LTE gives traders just a few of the most important signal days — Day Zero, Inside Day, and Outside Day — to structure their intraday trades around fake outs, breakouts, and reversals within the daily cycles of the week. (This is work in progress: Next up, FRD/FGD's, 3-day cycle detecting, 3DLs, 3DSs).
Prev Swing High/Low Before Session (TF 1H/4H)Higher Lows (HL) indicate weakening selling pressure and possible upward trends. Lower Highs (LH) show reduced buying strength and potential bearish trends.
Prev Day Volume ProfileWhat the script does
Calculates yesterday’s Volume Profile from the bars on your chart (not tick data) and derives:
POC (Point of Control)
VAL (Value Area Low)
VAH (Value Area High)
Draws three horizontal lines for today:
POC in orange
VAL and VAH in purple
Adds labels on the right edge that show the level name and the exact price (e.g., POC 1.2345).
Why it’s bar-based (not tick-based)
Pine Script can’t fetch external tick/aggTrades data. The script approximates a volume profile by distributing each bar’s volume across the price bins that the bar’s high–low range covers. For “yesterday”, this produces a stable, TV-native approximation that’s usually sufficient for intraday trading.
Key inputs
Value Area %: Defaults to 0.70 (70%)—the typical value area range.
TZ Offset vs Exchange (hours): Shifts the day boundary to match your desired session (e.g., Europe/Berlin: +1 winter / +2 summer). This ensures “yesterday” means 00:00–24:00 in your target timezone.
Row Size: Manual? / Manual Row Size: If enabled, you can set the price bin size yourself. Otherwise, the script chooses a TV-like step from syminfo.mintick.
Colors & Line width: POC orange; VAL/VAH purple; configurable width.
Time-Based Vertical LinesFeatures:
8 Customizable Lines: Each line can be individually enabled/disabled
Time Selection: Set specific times for each line (e.g., 9:30 AM)
Daily Repetition: Lines automatically repeat at the same time every trading day
Color Customization: Choose any color for each line
Additional Options: Width and style (solid, dashed, dotted) for each line
How to Use:
Copy the entire script
In TradingView, open the Pine Editor (at the bottom of the chart)
Create a new indicator and paste the code
Click "Add to Chart"
Configure your lines by clicking the settings gear icon:
Enable/disable each line
Set the time using the time picker
Choose colors
Adjust width and style as desired
Default Setup:
Line 1 is enabled by default at 9:30 AM (blue)
Lines 2-8 are disabled by default but can be enabled
Each line has a different default color for easy identification
The indicator will draw vertical lines that extend across the entire price range at your specified times, repeating every day. The lines use your chart's timezone settings, so they'll appear at the correct local time for your market.
My script//@version=5
strategy("Algo Bot Starter (EMA+ATR, RR, Webhook)",
overlay=true,
initial_capital=10000,
commission_type=strategy.commission.percent,
commission_value=0.02,
calc_on_every_tick=false,
calc_on_order_fills=true,
pyramiding=0,
process_orders_on_close=true)
//================ Inputs ================
emaFastLen = input.int(20, "EMA Fast", minval=1)
emaSlowLen = input.int(50, "EMA Slow", minval=1)
atrLen = input.int(14, "ATR Length", minval=1)
atrMultSL = input.float(2.0, "SL = ATR x", step=0.1)
rr = input.float(1.5, "Risk:Reward (TP = RR x Risk)", step=0.1, minval=0.2)
riskPct = input.float(1.0, "Risk % per Trade", step=0.1, minval=0.1, maxval=5)
slipPips = input.float(0.0, "Extra buffer (price units)", step=0.0001)
sessionFilt = input.session("0000-2400", "Trading Session")
useSession = input.bool(false, "Use Session Filter?")
closeOnFlip = input.bool(true, "Close & Reverse on signal flip?")
useBarClose = input.bool(true, "Signal on Bar Close? (recommended)")
//================ Helpers ================
inSess = useSession ? time(timeframe.period, sessionFilt) : true
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
atr = ta.atr(atrLen)
// Cross conditions (optionally on bar close)
bull = useBarClose ? ta.crossover(emaFast, emaSlow) : ta.cross(emaFast, emaSlow) and (emaFast > emaSlow)
bear = useBarClose ? ta.crossunder(emaFast, emaSlow) : ta.cross(emaFast, emaSlow) and (emaFast < emaSlow)
//================ Risk & Position Sizing ================
// ملاحظة: TradingView ما يعرف رصيدك الحقيقي، فاعتمدنا على initial_capital أو عدّل أدناه يدويًا
equity = strategy.equity
riskAmount = equity * (riskPct/100.0)
// سنحسب الكمية حسب المسافة إلى وقف الخسارة بالوحدات السعرية (تقريب عام)
calcQty(entryPrice, slPrice) =>
riskPerUnit = math.abs(entryPrice - slPrice)
riskPerUnit := risk
Multi-Timeframe HTS Retest Strategy v6Multi-Timeframe HTS Retest Strategy v6 is a trend-following tool designed to detect high-probability retest entries aligned with higher timeframe direction. The indicator applies HTS bands (short & long) on both the current and higher timeframe (4x–8x multiplier) to confirm market bias.
A strong trend is validated when HTS bands separate on the higher timeframe. On the lower timeframe, the strategy tracks price behavior relative to the bands: after breaking outside, price must retest either the fast (blue) or slow (red) band, confirmed by a rejection candle. This generates precise BUY or SELL retest signals.
Features include flexible average methods (RMA, EMA, SMA, etc.), customizable cross detection (final cross, 4 crosses, or both), volume-based retest conditions, and clear visual signals (dots for trend start, triangles for retests). Alerts are integrated for automation.
This strategy is suitable for forex, crypto, indices, and stocks, supporting both scalping and swing trading.
Volume 2.0Volume with standard deviations.
Helps to identify moderately high/low volume and very high/low volume.
Low volume indicates less market participation. High volume indicates higher market participation.
It forecasts potential changes of sentiment.
Volume with standard deviations (n=14).
Helps to identify moderately high/low volume and very high/low volume. Low volume indicates less market participation. High volume indicates higher market participation.
It forecasts potential changes of sentiment. This indicator has to be used with others. It is an adjunct tool, but a powerful one.
NB:
My previous version "Volume" violated the Pine Code house rules, so it got shielded from public view. This is my first experience with writing in Pine Code and publishing. I suspect it was because I didn't publish with a clean chart without other indicators added. My apologies in advance if version 2.0 is again another violation, which will then get shielded again. I am only publishing out of good will to share that's all.
Day And Week SeparatorA day separator plots a vertical line at the beginning of each new trading day. This is useful for identifying daily trading sessions and resetting your perspective on price movements. It can help you spot key reversal points or breakouts that often occur at the start of a new session.
ATR Bands with SL and TPATR Bands with SL and TP (TanTechTrades™)
This indicator uses the Average True Range (ATR) to dynamically calculate stop-loss and take-profit levels around the current price.
🔹 Features
Adjustable ATR period for volatility sensitivity
Separate multipliers for stop-loss and take-profit
Plots long/short SL and TP levels simultaneously
Color-coded bands for quick visual reference (orange = SL, blue = TP)
🔹 How to Use
For long positions: SL is plotted below price, TP above price.
For short positions: SL is plotted above price, TP below price.
The wider the ATR, the further the levels adjust, reflecting higher volatility.
This tool helps traders set volatility-based exits instead of fixed pip/point levels, making risk management more adaptive to market conditions.
⚠️ Disclaimer: For educational purposes only. Not financial advice.
DCA Anchor (Weekly/Monthly/N Bars) [CHE] What is Dollar-Cost Averaging (DCA)?
DCA is a position-building method where you invest a fixed amount at fixed intervals (e.g., weekly or monthly) regardless of price. Over time, this:
reduces timing risk (you don’t need to guess tops/bottoms),
smooths entry price by buying more units when price is low and fewer when price is high,
keeps decisions simple and repeatable.
Trade-offs:
You’ll never catch the exact bottom.
In strong uptrends, lump-sum can outperform.
Fees matter if you buy very frequently.
Simple math:
Qty bought at time t = `amount / price_t` (net of fees if fees are not “on top”).
Total qty = sum of all buys.
Average price (cost basis) = `total invested / total qty`.
Equity = `total qty last price`.
P\&L = `equity − total invested` (and `%` = `P&L / total invested`).
DCA Anchor (Weekly/Monthly/N Bars)
Purpose: automate scheduled DCA buys on chart data, optionally add extra buys on drawdowns, track stats, and fire alerts.
Core features
Schedules:
1. Every N bars,
2. Weekly (first bar of a new week),
3. Monthly (first bar of a new month).
A Start time input gates when the logic begins.
Fees model:
Fee on top: you pay `amount + fee` in cash; quantity = `amount / close`.
Fee from amount: fee is deducted from the amount; quantity is smaller, cash outlay equals `amount`.
Optional drawdown buys:
Trigger when `close ≤ avgCost (1 − ddPct/100)`.
Controls: drawdown % threshold, multiplier (extra size vs. base amount), and cooldown in bars.
State & metrics: tracks total invested, total quantity, average price, equity, P\&L (abs/%).
Visuals:
Line plot of Average Price.
Buy labels at execution bars (plan and drawdown).
Compact table (positionable) with key stats (trades, invested, qty, avg price, equity, P\&L).
Alerts:
Plan Buy (Bar Close) and Drawdown Buy (Bar Close) — robust, non-repainting.
Optional Intrabar Preview alerts for early heads-up (can fire before bar close).
How to use it (quick start)
1. Add to chart → Inputs:
Buy frequency: pick Every N bars, Weekly, or Monthly.
Start time: date from which buys may begin.
Buy amount: fixed cash per planned buy.
Fees % and Fee on top? to match your broker/exchange model.
(Optional) Enable drawdown buy, set threshold %, multiplier, and cooldown.
Toggle Show buy labels and Show stats table.
2. Alerts (recommended):
Use “DCA Plan Buy (Bar Close)” and/or “DCA Drawdown Buy (Bar Close)” with Once per bar close.
If you need early signals, enable Intrabar pre-alerts and add the two Intrabar Preview alerts with Once per bar.
3. Interpretation:
The yellow line is your average price.
Green/orange markers show plan buys and drawdown buys.
The table summarizes total trades, invested capital, quantity, average price, current equity, and P\&L.
Practical notes
All executions occur at bar close by default to avoid intrabar repainting.
Weekly/monthly roll depends on the symbol’s exchange calendar.
Backtest realism: no slippage, no partial fills. Fees are modeled as configured.
If you buy very frequently, consider higher “N” or weekly/monthly to keep fees under control.
If you want, I can tailor the defaults (amount, fee model, drawdown rules) to your typical markets and timeframes.
Disclaimer
No indicator guarantees profits. DCA Anchor (Weekly/Monthly/N Bars) is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
Trend Score with Dynamic Stop Loss HTF
How the Trend Score System Works
This indicator uses a Trend Score (TS) to measure price momentum over time. It tracks whether price is breaking higher or lower, then sums these moves into a cumulative score to define trend direction.
⸻
1. Trend Score (+1 / -1 Mechanism)
On each new bar:
• +1 point: if the current bar breaks the previous bar’s high.
• −1 point: if the current bar breaks the previous bar’s low.
• If both happen in the same bar, they cancel each other out.
• If neither happens, the score does not change.
This creates a simple running measure of bullish vs bearish pressure.
⸻
2. Cumulative Trend Score
The Trend Score is cumulative, meaning each new +1 or -1 is added to the total score, building a continuous count.
• Rising scores = buyers are consistently pushing price to higher highs.
• Falling scores = sellers are consistently pushing price to lower lows.
This smooths out noise and helps identify persistent momentum rather than single-bar spikes.
⸻
3. Trend Flip Trigger (default = 3)
A trend flip occurs when the cumulative Trend Score changes by 3 points (default setting) in the opposite direction of the current trend.
• Bullish Flip:
• Cumulative TS rises 3 points from its most recent low pivot.
• Marks a potential start of a new uptrend.
• A bullish stop-loss (SL) is set at the most recent swing low.
• Bearish Flip:
• Cumulative TS falls 3 points from its most recent high pivot.
• Marks a potential start of a new downtrend.
• A bearish SL is set at the most recent swing high.
Example:
• TS is at -2, then climbs to +1.
• That’s a +3 change, triggering a bullish flip.
⸻
4. Visual Summary
• Green background: Active bullish trend.
• Red background: Active bearish trend.
• ▲ Triangle Up: A bullish flip occurred this bar.
• Stop Loss Line: Shows the structural low used for risk management.
⸻
Why This Matters
The Trend Score measures trend pressure simply and objectively:
• +1 / -1 mechanics track real price behavior (breakouts of highs and lows).
• Cumulative changes of 3 points act like a momentum filter, ignoring small reversals.
• This helps you see true regime shifts on higher timeframes, which is especially useful for swing trades and investing decisions.
⸻
Key Takeaways
• Only flips after meaningful swings: prevents overreacting to single-bar noise.
• SL shows invalidation point: helps you know where a trend thesis fails.
• Works best on Daily or Weekly charts: for smoother, more reliable signals. Using Trend Score for Long-Term Investing
This indicator is designed to support decision-making for higher timeframe investing, such as swing trades, multi-month positions, or even multi-year holds.
It helps you:
• Identify major bullish regimes.
• Decide when to add to winning positions (DCA up).
• Know when to pause buying or consider trimming during weak periods.
• Stay disciplined while holding long-term winners.
Important Note:
These are suggestions for context. Always combine them with your own analysis, portfolio allocation rules, and risk tolerance.
⸻
1. Start With the Higher Timeframe
• Use Weekly charts for a broad investing view.
• Use Daily charts only for fine-tuning entry points or deciding when to add.
• A Bullish Flip on Weekly suggests the market may be entering a major uptrend.
• If Weekly is bullish and Daily also turns bullish, it’s extra confirmation of strength.
⸻
2. Building a Position with DCA
Goal: Grow your position gradually during strong bullish regimes while staying aware of risk.
A. Initial Buy
• Start with a small initial allocation when a Bullish Flip appears on Weekly or Daily.
• This is just a starter position to get exposure while the new trend develops.
B. Adding Through Strength (DCA Up)
• Consider adding during pullbacks, as long as price stays above the active SL line.
• Each add should be smaller or equal to your first buy.
• Spread out adds over time or price levels, instead of going all-in at once.
C. Pause Buying When:
• Price approaches or touches the SL level (trend invalidation).
• A Bearish Flip appears on Weekly or Daily — this signals potential weakness.
• Your total position size reaches your maximum allocation limit for that asset.
⸻
3. Holding Winners
When a position grows in profit:
• Stay in the trend as long as the Weekly regime remains bullish.
• The indicator’s green background acts as a reminder to hold, not panic sell.
• Use the SL bubble to monitor where the trend could potentially break.
• Avoid selling just because of small pullbacks — focus on big-picture trend health.
⸻
4. Taking Partial Profits
While this tool is designed to help hold long-term winners, there may be times to lighten risk:
• After large, rapid moves far above the SL, consider trimming a small portion of your position.
• When MFE (Maximum Favorable Excursion) in the table reaches unusually high levels, it may signal overextension.
• If the Weekly chart turns Neutral or Bearish, you can gradually reduce exposure while waiting for the next Bullish Flip.
⸻
5. Using the Stop Loss Line for Awareness
The Dynamic SL line represents a structural level that, if broken, may suggest the bullish trend is weakening.
How to think about it:
• Above SL: Market remains structurally healthy — continue holding or adding gradually.
• Close to SL: Pause adds. Be cautious and consider tightening your risk.
• Below SL: Treat this as a potential signal to reassess your position, especially if the break is confirmed on Weekly.
The SL is not a hard stop — it’s a visual guide to help you manage expectations.
⸻
6. Example Use Case
Imagine you are investing in a growth stock:
• Weekly Bullish Flip: You open a small starter position.
• Price pulls back slightly but stays above SL: You add a second, smaller tranche.
• Trend continues up for months: You hold and stop adding once your desired allocation is reached.
• Price doubles: You trim 10–20% to lock some profits, but continue holding the majority.
• Price later dips below SL: You slow down, reassess, and decide whether to reduce exposure.
This keeps you:
• Participating in major uptrends.
• Avoiding overcommitment during weak phases.
• Making adjustments gradually, not emotionally.
⸻
7. Suggested Workflow
1. Check Weekly chart → is it Bullish?
2. If yes, review Daily chart to fine-tune entry or adds.
3. Build exposure gradually while Weekly remains bullish.
4. Watch SL bubbles as awareness points for risk management.
5. Use partial trims during big rallies, but avoid exiting entirely too soon.
6. Reassess if Weekly turns Neutral or Bearish.
⸻
Key Takeaways
• Use this as a compass, not a command system.
• Weekly flips = big picture direction.
• Daily flips = timing and precision.
• Add gradually (DCA) while above SL, pause near SL, reassess below SL.
• Hold winners as long as Weekly remains bullish.
Minute speciale universale (3,11,17,29,41,47,53,59)//@version=5
indicator("Minute speciale universale (3,11,17,29,41,47,53,59)", overlay=true, max_labels_count=500)
// lista de minute speciale
var int specials = array.from(3, 11, 17, 29, 41, 47, 53, 59)
// minutul de start al barei (0..59)
mStart = minute(time)
// durata barei (secunde) -> minute
secInBar = timeframe.in_seconds(timeframe.period)
isIntraday = timeframe.isintraday
minutesInBar = (isIntraday and not na(secInBar)) ? math.max(1, int(math.ceil(secInBar / 60.0))) : 0
// caută dacă vreo valoare din `specials` cade în intervalul barei
bool hit = false
var int first = na
if minutesInBar > 0
for i = 0 to array.size(specials) - 1
s = array.get(specials, i)
delta = (s - mStart + 60) % 60
if delta < minutesInBar
hit := true
if na(first)
first := s
// etichetă (o singură linie ca să evităm parse issues)
if hit
label.new(bar_index, high, str.tostring(first), xloc=xloc.bar_index, yloc=yloc.abovebar, style=label.style_label_up, color=color.black, textcolor=color.white, size=size.tiny)
FX Sessions (DTS)FX Sessions (DST-Safe)
This indicator highlights the four main Forex trading sessions — Sydney, Tokyo, London, and New York — using the local timezone of each market.
• DST handled automatically: Sessions shift correctly when London or New York move clocks forward/back.
• Clear visualization: Light background shading for each session, with the London–New York overlap emphasized for peak liquidity.
• Customizable: Toggle individual sessions, labels, and the on-chart legend table.
• Intraday focus: Works best on lower timeframes (1m–1h) for identifying active trading hours and volatility windows.
Use this tool to instantly spot when liquidity and volatility are likely to increase, so you know where to focus your trading.
Logit Transform -EasyNeuro-Logit Transform
This script implements a novel indicator inspired by the Fisher Transform, replacing its core arctanh-based mapping with the logit transform. It is designed to highlight extreme values in bounded inputs from a probabilistic and statistical perspective.
Background: Fisher Transform
The Fisher Transform, introduced by John Ehlers , is a statistical technique that maps a bounded variable x (between a and b) to a variable approximately following a Gaussian distribution. The standard form for a normalized input y (between -1 and 1) is F(y) = 0.5 * ln((1 + y)/(1 - y)) = arctanh(y).
This transformation has the following properties:
Linearization of extremes:
Small deviations around the mean are smooth, while movements near the boundaries are sharply amplified.
Gaussian approximation:
After transformation, the variable approximates a normal distribution, enabling analytical techniques that assume normality.
Probabilistic interpretation:
The Fisher Transform can be linked to likelihood ratio tests, where the transform emphasizes deviations from median or expected values in a statistically meaningful way.
In technical analysis, this allows traders to detect turning points or extreme market conditions more clearly than raw oscillators alone.
Logit Transform as a Generalization
The logit function is defined for p between 0 and 1 as logit(p) = ln(p / (1 - p)).
Key properties of the logit transform:
Maps probabilities in (0, 1) to the entire real line, similar to the Fisher Transform.
Emphasizes values near 0 and 1, providing sharp differentiation of extreme states.
Directly interpretable in terms of odds and likelihood ratios: logit(p) = ln(odds).
From a statistical viewpoint, the logit transform corresponds to the canonical link function in binomial generalized linear models (GLMs). This provides a natural interpretation of the transformed variable as the logarithm of the likelihood ratio between success and failure states, giving a rigorous probabilistic framework for extreme value detection.
Theoretical Advantages
Distributional linearization:
For inputs that can be interpreted as probabilities, the logit transform creates a variable approximately linear in log-odds, similar to Fisher’s goal of Gaussianization but with a probabilistic foundation.
Extreme sensitivity:
By amplifying small differences near 0 or 1, it allows for sharper detection of market extremes or overbought/oversold conditions.
Statistical interpretability:
Provides a link to statistical hypothesis testing via likelihood ratios, enabling integration with probabilistic models or risk metrics.
Applications in Technical Analysis
Oscillator enhancement:
Apply to RSI, Stochastic Oscillators, or other bounded indicators to accentuate extreme values with a well-defined probabilistic interpretation.
Comparative study:
Use alongside the Fisher Transform to analyze the effect of different nonlinear mappings on market signals, helping to uncover subtle nonlinearity in price behavior.
Probabilistic risk assessment:
Transforming input series into log-odds allows incorporation into statistical risk models or volatility estimation frameworks.
Practical Considerations
The logit diverges near 0 and 1, requiring careful scaling or smoothing to avoid numerical instability. As with the Fisher Transform, this indicator is not a standalone trading signal and should be combined with complementary technical or statistical indicators.
In summary, the Logit Transform builds upon the Fisher Transform’s theoretical foundation while introducing a probabilistically rigorous mapping. By connecting extreme-value detection to odds ratios and likelihood principles, it provides traders and analysts with a mathematically grounded tool for examining market dynamics.