Penunjuk dan strategi
Price‑EMA Z‑ScoreThis indicator calculates the delta between price and an ema and then goes to calculate zscore of this
SH Vertical LinesSH Vertical Lines for specific of the day which is 2am, 6am, 10am, 2pm, 6pm, and 10pm
Asia Opening Range [fjk]Draws a box based on a timeframe and highs/lows for that timeframe with a few other options available to customise the box itself.
RTH Session Range Position (0-100) with EMAA Pine Script indicator designed to help traders understand where the current price is located within the Regular Trading Hours (RTH) session range, from 0 (session low) to 100 (session high). It also plots a smoothed EMA of this position to provide insight into momentum or trend during the RTH session.
What the Indicator Does
Defines RTH (Regular Trading Hours):
Start: 9:30 AM
End: 4:00 PM
These are typical US equity market hours.
Tracks the session's high and low during RTH:
sessionHigh and sessionLow update only during RTH.
Calculates position of the current price within the RTH range:
Formula: ((close - sessionLow) / (sessionHigh - sessionLow)) * 100
Result is a percentage:
0 = at session low
100 = at session high
50 = middle of session range
Calculates an EMA of that position (posEMA):
Smooths out the raw position to help visualize momentum within the range.
Plots and table:
Plots pos and posEMA on a separate chart pane.
Adds horizontal lines at key levels (0, 30, 50, 70, 100).
Table shows current values for Position, EMA, and Range.
Visual cues:
bgcolor highlights when pos crosses over or under the EMA — potential momentum shifts.
Alerts:
Cross above/below 50 (session midpoint).
Cross above/below EMA.
How to Use It Effectively
1. Session Strength & Momentum
Position above 70: Price is near session highs — strong upward momentum.
Position below 30: Price is near session lows — strong downward momentum.
Use the EMA of position to filter out noise and identify trends.
2. Breakout or Reversal Detection
Cross above EMA: Momentum may be turning bullish.
Cross below EMA: Momentum may be turning bearish.
These crosses (especially near mid-levels like 50) can hint at session trend shifts.
3. Range Context for Entries
If you're a mean-reversion trader, look for:
Price > 70 + turning down below EMA → possible short.
Price < 30 + turning up above EMA → possible long.
For breakout traders, you might wait for:
Crosses above 70 with EMA support.
Crosses below 30 with EMA resistance.
4. Confirmation Tool
Use this indicator alongside others to confirm:
Whether price action has strength within the day.
Whether breakouts have real momentum or are extended already.
Open-Based Percentage Levelsv2
This is an updated version of my original script.
Changes:
I took off the displacement levels since there served no purpose on this script.
I also fixed it to where the percentage level lines are visible continually throughout the entire trading day. Old version had these lines disappearing.
I also updated the name to better reflect its purpose.
Now only works on 30 min and below as the higher time frames are meaningless. The older version allow higher time frames and the code is open source to adjust as desired
RTH Session Highs & LowsA Pine Script indicator designed to track and plot the Regular Trading Hours (RTH) session highs and lows on a chart, typically for U.S. equity markets (e.g., S&P 500, Nasdaq, etc.), which operate from 9:30 AM to 4:00 PM Eastern Time.
Session High & Low Lines:
During the RTH session, the indicator draws green and red horizontal lines that represent the highest and lowest price seen so far within that trading session.
These levels help traders identify intraday support (low) and resistance (high) levels.
New High/Low Markers:
Small triangle markers are placed:
Above the bar when a new intraday high is made (green triangle).
Below the bar when a new intraday low is made (red triangle).
This visually flags when momentum may be building or reversing.
Intraday Strategy Support:
Use the session high/low as dynamic support/resistance for scalping or breakout strategies.
For example:
Breakouts above session highs may indicate bullish strength.
Breakdowns below session lows may suggest bearish momentum.
Mean Reversion Tactics:
Prices approaching these lines and then rejecting can be used for mean reversion setups.
Combine with volume or candlestick patterns for confirmation.
Risk Management:
Set stops or targets relative to session highs/lows.
For instance, use session high as a stop-loss level in a short position.
Volatility Gauge:
Tracking how frequently new highs/lows are formed can help assess intraday volatility or range expansion.
Complement with Indicators:
Combine this with our "McGinley Dynamic Channel with Directional Shading" indicator or our "EMA Crossover with Shading" indicator to add context to breakouts or rejections.
Pi Cycle Gap (SMA Convergence, Normalized Option)This indicator visualizes the “gap” between the classic Pi Cycle Top moving averages, used for Bitcoin cycle analysis: the 111-day Simple Moving Average (SMA) and 2 × 350-day SMA.
Histogram Bars: Show the distance between these lines, highlighting when the cycle is healthy (green), near a historic “top” (orange), or at a rare crossover (red).
Normalization Option: You can view the gap as either:
Percent of 2 × 350-day SMA (recommended for multi-cycle analysis)
— This is the default.
Absolute USD difference (classic mode)
Orange bars warn when the gap is within a configurable proximity to zero (cycle convergence).
Red triangle marks the rare actual crossover event, historically correlated with market cycle tops.
Settings:
Fast MA Length (SMA): Default 111
Slow MA Length (SMA): Default 350 (doubled internally)
Proximity Warning (%): How close (as percent) to flag convergence
Show Normalized Gap (%): Toggle between percent and absolute USD
How to Use:
Green bars: Market is safely in “bull cycle mode”—top is not near
Orange bars: Approaching cycle convergence (potential top)
Red: Actual crossover—historically a signal of major cycle tops
Open-Based Adjustable LevelsThis indicator gives signals for levels where the buy or sell volume is above adjustable levels (ex, volume at 100,000). And these levels will only signal after the price has gone above/below a certain 'adjustable' percentage of the stocks opening price.
Example: Signal sell when the price action is 0.7% above market opening price and when sell volume is above 120,000
or
Signal buy when buy volume is above 80,000 and the price is 0.5% below market opening price.
Great for day trading and detecting potential swings in the market. Above image is on a 3min chart.
Doesn't work as well on daily time frames or above.
Should be combined with other indicators like buy/sell channels, for the best confirmations
MACD COM PONTOS//@version=5
indicator(title="MACD COM PONTOS", shorttitle="MACD COM PONTOS")
//Plot Inputs
res = input.timeframe("", "Indicator TimeFrame")
fast_length = input.int(title="Fast Length", defval=12)
slow_length = input.int(title="Slow Length", defval=26)
src = input.source(title="Source", defval=close)
signal_length = input.int(title="Signal Smoothing", minval = 1, maxval = 999, defval = 9)
sma_source = input.string(title="Oscillator MA Type", defval="EMA", options= )
sma_signal = input.string(title="Signal Line MA Type", defval="EMA", options= )
// Show Plots T/F
show_macd = input.bool(true, title="Show MACD Lines", group="Show Plots?", inline="SP10")
show_macd_LW = input.int(3, minval=0, maxval=5, title = "MACD Width", group="Show Plots?", inline="SP11")
show_signal_LW= input.int(2, minval=0, maxval=5, title = "Signal Width", group="Show Plots?", inline="SP11")
show_Hist = input.bool(true, title="Show Histogram", group="Show Plots?", inline="SP20")
show_hist_LW = input.int(5, minval=0, maxval=5, title = "-- Width", group="Show Plots?", inline="SP20")
show_trend = input.bool(true, title = "Show MACD Lines w/ Trend Color", group="Show Plots?", inline="SP30")
show_HB = input.bool(false, title="Show Highlight Price Bars", group="Show Plots?", inline="SP40")
show_cross = input.bool(false, title = "Show BackGround on Cross", group="Show Plots?", inline="SP50")
show_dots = input.bool(true, title = "Show Circle on Cross", group="Show Plots?", inline="SP60")
show_dots_LW = input.int(5, minval=0, maxval=5, title = "-- Width", group="Show Plots?", inline="SP60")
//show_trend = input(true, title = "Colors MACD Lines w/ Trend Color", group="Show Plots?", inline="SP5")
// MACD Lines colors
col_macd = input.color(#FF6D00, "MACD Line ", group="Color Settings", inline="CS1")
col_signal = input.color(#2962FF, "Signal Line ", group="Color Settings", inline="CS1")
col_trnd_Up = input.color(#4BAF4F, "Trend Up ", group="Color Settings", inline="CS2")
col_trnd_Dn = input.color(#B71D1C, "Trend Down ", group="Color Settings", inline="CS2")
// Histogram Colors
col_grow_above = input.color(#26A69A, "Above Grow", group="Histogram Colors", inline="Hist10")
col_fall_above = input.color(#B2DFDB, "Fall", group="Histogram Colors", inline="Hist10")
col_grow_below = input.color(#FF5252, "Below Grow", group="Histogram Colors",inline="Hist20")
col_fall_below = input.color(#FFCDD2, "Fall", group="Histogram Colors", inline="Hist20")
// Alerts T/F Inputs
alert_Long = input.bool(true, title = "MACD Cross Up", group = "Alerts", inline="Alert10")
alert_Short = input.bool(true, title = "MACD Cross Dn", group = "Alerts", inline="Alert10")
alert_Long_A = input.bool(false, title = "MACD Cross Up & > 0", group = "Alerts", inline="Alert20")
alert_Short_B = input.bool(false, title = "MACD Cross Dn & < 0", group = "Alerts", inline="Alert20")
// Calculating
fast_ma = request.security(syminfo.tickerid, res, sma_source == "SMA" ? ta.sma(src, fast_length) : ta.ema(src, fast_length))
slow_ma = request.security(syminfo.tickerid, res, sma_source == "SMA" ? ta.sma(src, slow_length) : ta.ema(src, slow_length))
macd = fast_ma - slow_ma
signal = request.security(syminfo.tickerid, res, sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length))
hist = macd - signal
// MACD Trend and Cross Up/Down conditions
trend_up = macd > signal
trend_dn = macd < signal
cross_UP = signal >= macd and signal < macd
cross_DN = signal <= macd and signal > macd
cross_UP_A = (signal >= macd and signal < macd) and macd > 0
cross_DN_B = (signal <= macd and signal > macd) and macd < 0
// Condition that changes Color of MACD Line if Show Trend is turned on..
trend_col = show_trend and trend_up ? col_trnd_Up : trend_up ? col_macd : show_trend and trend_dn ? col_trnd_Dn: trend_dn ? col_macd : na
//Var Statements for Histogram Color Change
var bool histA_IsUp = false
var bool histA_IsDown = false
var bool histB_IsDown = false
var bool histB_IsUp = false
histA_IsUp := hist == hist ? histA_IsUp : hist > hist and hist > 0
histA_IsDown := hist == hist ? histA_IsDown : hist < hist and hist > 0
histB_IsDown := hist == hist ? histB_IsDown : hist < hist and hist <= 0
histB_IsUp := hist == hist ? histB_IsUp : hist > hist and hist <= 0
hist_col = histA_IsUp ? col_grow_above : histA_IsDown ? col_fall_above : histB_IsDown ? col_grow_below : histB_IsUp ? col_fall_below :color.silver
// Plot Statements
//Background Color
bgcolor(show_cross and cross_UP ? col_trnd_Up : na, editable=false)
bgcolor(show_cross and cross_DN ? col_trnd_Dn : na, editable=false)
//Highlight Price Bars
barcolor(show_HB and trend_up ? col_trnd_Up : na, title="Trend Up", offset = 0, editable=false)
barcolor(show_HB and trend_dn ? col_trnd_Dn : na, title="Trend Dn", offset = 0, editable=false)
//Regular Plots
plot(show_Hist and hist ? hist : na, title="Histogram", style=plot.style_columns, color=color.new(hist_col ,0),linewidth=show_hist_LW)
plot(show_macd and signal ? signal : na, title="Signal", color=color.new(col_signal, 0), style=plot.style_line ,linewidth=show_signal_LW)
plot(show_macd and macd ? macd : na, title="MACD", color=color.new(trend_col, 0), style=plot.style_line ,linewidth=show_macd_LW)
hline(0, title="0 Line", color=color.new(color.gray, 0), linestyle=hline.style_dashed, linewidth=1, editable=false)
plot(show_dots and cross_UP ? macd : na, title="Dots", color=color.new(trend_col ,0), style=plot.style_circles, linewidth=show_dots_LW, editable=false)
plot(show_dots and cross_DN ? macd : na, title="Dots", color=color.new(trend_col ,0), style=plot.style_circles, linewidth=show_dots_LW, editable=false)
//Alerts
if alert_Long and cross_UP
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD Crosses Up.", alert.freq_once_per_bar_close)
if alert_Short and cross_DN
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD Crosses Down.", alert.freq_once_per_bar_close)
//Alerts - Stricter Condition - Only Alerts When MACD Crosses UP & MACD > 0 -- Crosses Down & MACD < 0
if alert_Long_A and cross_UP_A
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD > 0 And Crosses Up.", alert.freq_once_per_bar_close)
if alert_Short_B and cross_DN_B
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD < 0 And Crosses Down.", alert.freq_once_per_bar_close)
//End Code
Key Open LevelsThis Pine Script indicator (Key Open Levels) allows users to highlight up to six specific open prices from different times of the trading day as horizontal lines on the chart.
Each line can be customized with user-defined style, width, and color settings.
Users also have the option to display price labels directly on the lines for added clarity.
The indicator is designed to work seamlessly across all intraday timeframes, including seconds, minutes, and hourly intervals, making it versatile for various trading strategies that rely on key intraday price levels.
This indicator has proved to be a key indicator especially for people studying Futures market reaction around Key Open Levels.
wma+ tendance🟢 Wma+ tendance– Trend Ribbon with Weighted Moving Averages and Alerts
Description:
Wma+ tendance is a visual trend indicator that uses two Weighted Moving Averages (WMA) – a fast and a slow one – to clearly highlight market direction. It fills the space between the two WMAs with dynamic colors and includes alerts for trend changes.
🟩 Green: Uptrend – the fast WMA is above the slow WMA, and both are rising.
🟥 Red: Downtrend – the fast WMA is below the slow WMA, and both are falling.
⬜ Gray: No clear trend – indicating potential sideways or consolidating price action.
Features:
Trend ribbon visualized between fast and slow WMAs
Alerts for bullish and bearish trend detection
Customizable inputs for MA lengths and price source
Use cases:
Spot early trend formations
Combine with other indicators for confirmation
Adaptable for intraday and swing trading strategies
This script helps traders stay on the right side of the trend with minimal noise and real-time alerts.
ATR Overlay with Trailing Flip [ask2maniish]📘 ATR Overlay with Trailing Flip
🔍 Overview
The ATR Overlay with Trailing Flip is a dynamic, visually-enhanced overlay indicator designed to assist traders in trend detection, trailing stop management, and volatility-based decision making. It leverages the Average True Range (ATR) with optional dynamic multipliers, filters, and alerts to enhance trade execution precision.
⚙️ Features Summary
✅ Static & dynamic ATR multiplier
✅ Customizable trailing stop logic
✅ Volume & Bollinger Band filters
✅ Buy/Sell label signals with alerts
✅ ATR bands with color fill
✅ Optional candle coloring based on trend
✅ Table showing current ATR multiplier
✅ Fully customizable visual controls
🔧 User Inputs
📘 Info Panel
ATR Usage Guide
Tooltip with trading-style recommendations:
Scalping: ATR 5–10, Intraday: ATR 10–14 , Swing: ATR 14–21 , Position: ATR 21–50
📊 Visual Elements
📈 Plots
Upper/Lower ATR Bands
ATR Fill Zone
Dynamic Trailing Stop Line
🕯 Candle Coloring
Candles colored green (uptrend) or red (downtrend)
Wick coloring matches body
🏷 Signal Labels
"BUY" below candle when trend flips up
"SELL" above candle when trend flips down
📊 Table (Top Right)
Displays current multiplier value:
If static: Static: x.x
If dynamic: percentage format based on ATR ratio
🔔 Alerts
Two alert conditions:
Flip to Long → "📈 ATR flip to LONG"
Flip to Short → "📉 ATR flip to SHORT"
Sound can be enabled for real-time feedback.
🧠 Best Practices
Combine this tool with support/resistance or order flow indicators
Use dynamic ATR during volatile periods for better adaptability
Filter signals in ranging markets with BBand Width Filter
For scalping, reduce ATR period and multiplier for tighter risk
🛠️ Customization Tips
Adjust trailingPeriod for tighter/looser stops
Use color inputs to match your charting theme
Disable features (labels/fill) to declutter chart
Levels & Flow📌 Overview
Levels & Flow is a visual trading tool that combines daily pivot levels with a dynamic EMA ribbon to help traders identify structure, momentum, and key decision zones in the market.
This script is designed for discretionary traders who rely on clean visual cues for intraday and swing trading strategies.
⚙️ Key Features
Daily Pivot, Support, and Resistance Lines
Automatically plots the daily pivot level based on the previous day’s OHLC data, along with calculated support and resistance levels.
Fibonacci Retracement Levels
Two dashed lines above and below the pivot represent the retracement of the pivot-resistance and pivot-support range, forming the boundaries of the “no-trade zone.”
No-Trade Zone (Shaded Box)
A gray shaded box between the two Fibonacci levels to visually mark a high-chop/low-conviction zone.
Trend-Based Candle Coloring (Current Day Only)
Candles are colored green if the close is above the pivot, red if below (only on the current trading day).
Bullish/Bearish Trend Label
A small table in the bottom-right corner displays “Bullish” or “Bearish” depending on whether price is above or below the pivot.
20-EMA Gradient Ribbon
A stack of 20 EMAs, each smoothed and color-coded from blue to green to reflect short- to long-term trend alignment.
Cumulative EMA with Adaptive Weighting
An intelligent moving average line that adjusts weight distribution among the 20 EMAs based on recent predictive accuracy using a learning rate and lookback period.
🧠 How It Works
📍 Levels
The script calculates daily pivot, resistance, and support levels using standard formulas:
Pivot = (High + Low + Close) / 3
Resistance = (2 × Pivot) – Low
Support = (2 × Pivot) – High
These levels update each day and extend 143 bars to the right.
📏 Fib Lines
Fib Up = Pivot + (Resistance – Pivot) × 0.382
Fib Down = Pivot – (Pivot – Support) × 0.382
These lines form the “no-trade zone” box.
📈 EMA Ribbon
20 EMAs starting from the user-defined Base Length, each incremented by 1
Each EMA is smoothed using the Smoothing Period
Color-coded from blue to green for intuitive visual flow
Filled between EMAs to visualize trend strength and alignment
🧠 Cumulative EMA Learning
Each EMA’s historical error is calculated over a Lookback Period
Lower-error EMAs receive higher weight; weights are normalized to sum to 1
The result is a cumulative EMA that adapts based on historical predictive power
🔧 User Inputs
Input
Base EMA Length: Sets the period for the shortest EMA (default: 20)
Smoothing Period: Smooths all EMAs and the cumulative EMA
Lookback for Learning: Number of bars to evaluate EMA prediction accuracy
Learning Rate: Adjusts how quickly weights shift in favor of more accurate EMAs
✅ How to Use It
Use the pivot level to define directional bias.
Watch for price breakouts above resistance or breakdowns below support to consider entry.
Avoid trading inside the shaded zone, where direction is less reliable.
Use the EMA ribbon gradient to confirm short/long alignment.
The cumulative EMA helps define trend with noise reduction.
🧪 Best For
Intraday traders who want to blend structure with flow
Swing traders needing clean daily levels with dynamic confirmation
Anyone looking to avoid choppy zones and improve visual clarity
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice or a trading recommendation. Always test scripts in simulation or on demo accounts before live use. Use at your own risk.
Ultimate Minute Marker Pro V4Mark individual minutes using Algo path. Added 9 time slots with customizable options.
Ichimoku Cloud Breakout Only LongThis is a very simple trading strategy based exclusively on the Ichimoku Cloud. There are no additional indicators or complex rules involved. The key condition is that we only open long positions when the price is clearly above the cloud — indicating a bullish trend.
For optimal results, the recommended timeframes are 1D (daily) or 1W (weekly) charts. These higher timeframes help filter out market noise and provide more reliable trend signals.
We do not short the market under any circumstances. The focus is purely on riding upward momentum when the price breaks out or stays above the cloud.
This strategy works best when applied to growth stocks with strong upward trends and good fundamentals — such as Google (GOOGL), Tesla (TSLA), Apple (AAPL), or NVIDIA (NVDA).
Buy sell ATR Bollinger [vivekm8955]Buy Sell ATR Bollinger
This script combines Bollinger Bands with an optional ATR-based filter to generate high-probability Buy/Sell signals with trend confirmation.
🔹 Buy Signal: Price breaks above the upper Bollinger Band and trend flips bullish.
🔹 Sell Signal: Price drops below the lower Bollinger Band and trend flips bearish.
🔹 ATR Filter (Optional): Smoothens signals by filtering out weak breakouts based on volatility.
🔹 Visual Aids: Color-coded trend bands (Yellow for bullish, Red for bearish) with clean BUY/SELL labels.
🔹 Alerts Enabled: Get notified on signal generation.
✅ Suitable for intraday and swing traders
✅ Works across all timeframes
✅ Fully customizable inputs
trade safe with risk management! Happy trading!!
ATR to Horiz LinePick a price and this indicator will show you how far away it is from the current price in terms of daily and weekly ATR and ADR. Useful for setting realistic targets or estimating how long it may take to reach a target.
CANX Supply and Demand - Order Block - Candle Identification© CanxStixTrader
CANX Supply and Demand - Order Block - Candle Identification
Description
Designed as a visual aid, to highlight the last up or down candle before a fractal break. We can assume these candles where the point of origin that generated enough strength to break recent structure. By using them as reference points, traders are expected to follow their own set of rules and mark higher probability supply and demand zones in the area.
How to use:
Expect price to retest in these areas, and if they fail, a potential retest in the opposite direction . The greater the number of times a zone is tested, the more likely it is to break. A fresh zone that has not yet been tested will have a higher probability of a bounce.
Fractal period and candle break type can be customized in the settings. This works on all time frames.
**The indicator is set to my optimal settings for the 5 minute or 15 minute time frame** Please mess around to find your comfort zone and back test the results.
The lower the period number the more noise this creates on the market. The higher the number the less noise and more potential for a stronger zone.
Keep it simple
ATR TargetsMark daily ATR levels above and below the current price. Pick the multiples you prefer. Useful for setting profit targets and stop losses based on ATR
RVOL - Relative Volume IntradayIn the context of intraday trading, RVOL stands for Relative Volume. It is a technical indicator that compares the current volume of a stock to its average volume over a specified period. A RVOL above 1 suggests higher than average trading volume, potentially indicating increased interest and volatility.
The precise definition of real time relative volume is current cumulative volume up to the time of day divided by average cumulative volume up to this time of day. It means for example taking the volume from 09:45 to 10:00 and comparing it to what it does from 09:45 to 10:00 every day.
This indicator supports all timeframes from1 minute to 4 hours.
ATR Rays with Daily and WeeklyDraws rays at 1 daily ATR and 1 weekly ATR above and below the current price