//@version=5
indicator("Stoch Price Envelope [1-99] - No BB", overlay=true)
// --- PARAMÈTRES ---
k_period = input.int(200, "Période (Mémoire 200)", minval=1)
smooth_k = input.int(3, "Lissage K", minval=1)
d_period = input.int(200, "Période D (Signal)", minval=1)
level_high = input.float(99.0, "Niveau Haut (%)")
level_low = input.float(1.0, "Niveau Bas (%)")
// --- CALCULS DES BORNES (HH / LL) ---
hh = ta.highest(high, k_period)
ll = ta.lowest(low, k_period)
range_price = hh - ll
// --- CALCUL STOCHASTIQUE CLASSIQUE (INTERNE) ---
raw_k = 100 * (close - ll) / range_price
smoothed_k = ta.sma(raw_k, smooth_k)
d_signal = ta.sma(smoothed_k, d_period)
// --- REVERSE ENGINEERING (PROJECTION SUR LE PRIX) ---
price_99 = (level_high / 100) * range_price + ll
price_01 = (level_low / 100) * range_price + ll
price_mid = (50.0 / 100) * range_price + ll
price_signal = (d_signal / 100) * range_price + ll
// --- DÉTECTION DU MODE "ESCALIER" (TENDANCE) ---
// Si le plus haut ou le plus bas historique des 200 bougies bouge, on est en tendance
is_breaking_up = hh > hh[1]
is_breaking_down = ll < ll[1]
// --- AFFICHAGE DES LIGNES ---
plot(price_99, "Plafond (99%)", color=color.new(color.red, 0), linewidth=2)
plot(price_01, "Plancher (1%)", color=color.new(color.lime, 0), linewidth=2)
plot(price_mid, "Milieu (50%)", color=color.new(color.orange, 50), linewidth=1, style=plot.style_stepline)
plot(price_signal, "Signal Stoch", color=color.new(color.orange, 0), linewidth=2)
Overview
Using the highest high and lowest low over a lookback window of 200 bars by default, it plots a ceiling at the high stochastic level, a floor at the low level, a midpoint, and a line showing where a smoothed stochastic signal sits in price terms. The upper and lower percent levels, smoothing and signal period are adjustable. It draws on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Période (Mémoire 200)
int
200
k_period
Lissage K
int
3
smooth_k
Période D (Signal)
int
200
d_period
Niveau Haut (%)
float
99.0
level_high
Niveau Bas (%)
float
1.0
level_low
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period
Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly