SMA Crossover Strategy📈 Indicator: SMA Crossover Strategy
This strategy uses optimized fast and slow SMA values tailored to popular timeframes for more responsive trend detection. You can let the script auto-select values or manually define your own crossover settings. Clean visual cues and per-candle signal filtering keep your chart sharp and actionable.
🔧 Key Features:
- Auto Mode: Smart defaults for each timeframe with trader-tested pairs
- Manual Mode: User-defined flexibility when custom values are needed
- Signal Clarity: BUY/SELL labels are plotted only once per confirmed candle
🧠 Default Auto Values (Based on Chart Timeframe)
- 1-min: Fast = 5, Slow = 20
- 5-min: Fast = 5, Slow = 10
- 15-min: Fast = 5, Slow = 13
- 30-min: Fast = 15, Slow = 30
- 1-hr: Fast = 50, Slow = 200
- 4-hr: Fast = 20, Slow = 50
- Daily: Fast = 50, Slow = 200
- Weekly: Fast = 10, Slow = 30
If your timeframe isn't matched exactly, the script falls back to sensible defaults.
📊 How to Improve Conviction
SMA crossovers are strong signals when confirmed by other tools. Here are some add-ons you can layer into your chart:
🔍 Confirmation Indicators
- RSI (14): Look for crossovers near RSI crossing 50 or at oversold/overbought zones for momentum confirmation.
- MACD: Use histogram alignment with crossover signals to detect real trend shifts.
- Volume Filters: Pair signals with rising volume for institutional confirmation.
🌀 Trend & Volatility Filters
- ATR (Average True Range): Helps filter signals during consolidation—watch for expanding ATR as a volatility cue.
- ADX: Trade only when ADX > 20 to avoid false signals in ranging markets.
- HMA (Hull MA): A smoother, faster MA that can act as a trend bias overlay.
🔭 Multi-Timeframe Awareness
Overlay higher-timeframe trend indicators (like a daily 200 SMA on an intraday chart) to avoid trading against macro momentum.
Moving Averages
Pegasus Returns EMAs (Green Above, Red Below)This indicator plots up to four customizable Exponential Moving Averages (EMAs) on the price chart, each with user-defined settings for visibility and period length. It is designed to provide a clear visual representation of bullish and bearish momentum based on the closing price relative to each EMA.
Key Features:
Custom EMA Periods: Easily modify the length of each EMA (default: 20, 50, 100, 200).
Dynamic Color Coding:
Green Line when the closing price is above the EMA (bullish signal).
Red Line when the closing price is below the EMA (bearish signal).
Toggle Visibility: You can choose to display or hide any of the four EMAs via checkboxes in the settings.
Overlay on Price Chart: EMAs are plotted directly on the candlestick chart for intuitive analysis.
Inputs:
Show EMA 1–4: Enable or disable each EMA.
EMA 1–4 Period: Set a custom period for each EMA (min 1).
Use Cases:
Identifying trend direction and strength.
Spotting dynamic support and resistance zones.
Entry/exit confirmation in trending markets
TeeLek-HedgingLineXThis indicator is suitable for use with charts that are Down Trend and are about to change to Sideway or Up Trend. It works opposite to another indicator that I created called TeeLek Hedging Line.
Calculation method :
We will use the Highest value of 600 candlesticks in the past to create the average line. After that, we will create the All Time Low line.
How to use :
It is used to tell that this point is the lowest historical High value. This means that this is the point where the best Short buyers start to reach the loss point. At the same time, it is the point where the worst Long buyers start to make a profit. Therefore, it is suitable to be the point of changing from Down Trend to Up Trend.
There are 2 lines that are used to divide the range. If the graph is at the bottom, it will be Down Trend. If the graph is in the middle, it will be Sideway. And if the graph is at the top of both lines, it will be Up Trend.
//-------------------------------------------------------------------
อินดิเคเตอร์นี้ เหมาะสำหรับใช้กับกราฟที่เป็น Down Trend และกำลังจะเปลี่ยนเป็น Sideway หรือ Up Trend จะทำงานตรงข้ามกับ อินดิเคเตอร์อีกตัวที่ผมสร้างขึ้นมา ที่ชื่อว่า TeeLek Hedging Line
วิธีการคำนวณ
เราจะใช้ค่า Highest 600 แท่งเทียนย้อนหลัง ในการสร้างเส้นค่าเฉลี่ย หลังจากนั้น ก็จะสร้างเส้น All Time Low ขึ้นมา
วิธีใช้งาน
เอาไว้บอกว่า จุดนี้คือ ค่า High ย้อนหลังที่ต่ำที่สุด หมายความว่า นี่คือจุดที่คนซื้อ Short ที่ดีที่สุดก็เริ่มถึงจุดขาดทุน ขณะเดียวกัน ก็เป็นจุดที่คนที่ซื้อ Long ที่แย่ที่สุด เริ่มกำไร จึงเหมาะจะเป็นจุดเปลี่ยนจาก Down Trend ไปเป็น Up Trend
มี 2 เส้น ก็เอาไว้ใช้แบ่งช่วง ถ้ากราฟอยู่ด้านล่าง จะเป็น Down Trend ถ้ากราฟอยู่ระหว่างกลางก็จะเป็น Sideway และถ้ากราฟอยู่ด้านบนของทั้งสองเส้น ก็จะเป็น Up Trend
Universal Valuation | Lyro RSUniversal Valuation
⚠️Disclaimer: This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Overview
The Universal Valuation indicator helps identify whether the market is undervalued/cheap or overvalued/expensive. And another mode this indicator offers is This cutting-edge tool works flawlessly ACROSS ALL TIMEFRAMES & TICKERS/CHARTS.
By combining regular TradingView indicators & some of our valuation indicators basic/simple with advanced statistical functions, this indicator offers a powerful, universal valuation tool.
Key Features
INPUTS: The Universal Valuation indicator offers flexibility through its customizable input sections. The "Indicator Settings" let you adjust lengths for the raw indicators and statistical functions. The "Signals" section defines thresholds for background color changes, helping you visually spot key market moments. The "Colors" section allows you to pick from pre-defined schemes or personalize colors for better clarity. Lastly, the "Tables" section gives you full control over the UV table’s size and positioning, including options to overlay it on the chart or place it in the allocated space.
A DEEPER INSIGHT: This indicator is built around three distinct categories: "UVM Andromeda," "UVM Sentinel," and "UVM Nexus." Each category has three different drivers. The statistical function powering this indicator is the Z-score. The Z-score is an incredibly powerful tool that helps determine if the market is overvalued/expensive or undervalued/cheap, offering critical insights for traders."
Plotting: The plotted value represents the average of all the drivers. In other words, it is the combined average of all 9 Z-scored indicators, providing a balanced and comprehensive market valuation.
What is Z-score? & Why does this system use it?
Z-score is an advanced statistical function used to measure how far a value deviates from the average in a data set. The formula for Z-score is: (x - h) / o, where x is the observed value, h is the average (mean) of the data set, and o is the standard deviation.
This system uses the Z-score because it helps determine whether the market is overvalued or undervalued based on historical data and how we apply the calculation. By measuring how far a value deviates from the average, the Z-score provides a clearer and more objective valuation of market conditions. In our case, a Z-score of -3 indicates an undervalued market, while a Z-score of 3 signals an overvalued market.
UVM Andromeda:
UVM stands for Universal Valuation Model, which is the core of this indicator. Andromeda, one of the most stunning galaxies in the universe, inspired by its name. We chose this name because a powerful indicator should not only be effective but also visually appealing.
You might be wondering what drives UVM Andromeda. The three key drivers are Price, RSI, and ROC. These indicators are pre-defined, while the "Indicator Settings" allow you to adjust the length of the Z-score calculation, refining how the model analyzes market conditions.
UVM Sentinel:
Sentinel, refers to a guard or watchman, someone or something that keeps watch and provides protection. In our case this name refers to a model that actively observes market conditions, acting as a vigilant tool that signals important shifts in valuation.
Wondering what drives UVM Sentinel? The three key drivers are BB%, CCI, and Crosby. While these indicators are simple on their own, applying our Z-score function elevates them to a whole new level, enhancing their ability to detect market conditions with greater accuracy.
UVM Nexus:
We chose the name Nexus simply because it sounds cool—there’s no deeper meaning behind it for us. However, the word itself does have a meaning; it refers to a connection or link between multiple things.
The three key drivers for UVM Nexus are the Sharpe, Sortino, and Omega ratios. These are all asset performance metrics, but by applying the Z-score, we transform them into powerful valuation indicators/drivers, giving you a deeper insight into market conditions.
Why do we use 9 different indicators instead of 1?
That's a great question, and the answer is quite simple. Think of it like this: if you have one super soldier, and they miss a shot, it’s game over. But if you have many soldiers, even if one misses, the others can step in and take the shot. The strength of using multiple indicators lies in their collective power – if one misses, the others still provide valuable insights, making the overall system more reliable.
Final Thoughts:
In our Universal Valuation indicator, you have the flexibility to customize it however you like using our inputs. The system is divided into three distinct categories, with each category containing three indicators. The value plotted on the chart is the average of all nine indicators. We apply the Z-score, an advanced statistical function, to each of these nine indicators. The final plotted average is the average of all the Z-scores, giving you a comprehensive and refined market valuation. This indicator can work on any timeframe & chart ticker.
Multi Timeframe 50EMA CloudDescription:
The Multi Timeframe 50EMA Cloud is a powerful tool for multi-timeframe trend analysis. This indicator allows you to display the 50-period Exponential Moving Average (EMA) and its volatility "cloud" from several higher timeframes directly on any chart.
Features:
* See the 50EMA cloud from multiple timeframes at once: 15m, 1H, 4H, and 1D.
* Flexible controls: Easily turn each timeframe’s cloud on or off in the settings - overlay as many as you want.
* Distinct colors: Each timeframe has customizable colors for its EMA line, cloud and borders to keep your chart clear and organized.
* Universal perspective: Great for identifying higher timeframe support and resistance, confluence zones and market structure without switching charts.
How it works:
Each enabled EMA cloud is plotted with a band above and below the EMA line, showing ± one-quarter standard deviation (stdev) of price. This "cloud" highlights short-term volatility around the higher timeframe EMA, making it easier to spot dynamic support, resistance and trend strength.
Best for:
* Day traders and swing traders who want to track key EMAs from multiple timeframes on a single chart
* Identifying multi-timeframe confluence, trend direction and volatility zones
Tip:
Try overlaying the 15m, 1H, and 4H EMA clouds on lower timeframe charts (e.g., 1m, 5m, or 15m) for deeper market insight and better trade timing.
⚠️ Important Notice
This tool is provided for educational and informational purposes only . It is designed to assist in technical analysis learning and visual chart study.
It is not intended to be used as financial advice, a buy/sell signal, or any form of investment recommendation .
By using this indicator, you acknowledge that all actions you take are your own and you assume full responsibility for any decisions made.
50/100 EMA Crossover with Candle Confirmation📘 **50/100 EMA Crossover with Candle Confirmation – Strategy Description**
The **50/100 EMA Crossover with Candle Confirmation** is a trend-following strategy designed to filter high-probability entries by combining exponential moving average (EMA) crossovers with strong price action confirmation. This strategy aims to reduce false signals commonly associated with EMA-only systems by requiring a **candle close confirmation in the direction of the trend**, making it more reliable for intraday or swing trading across Forex, crypto, and stock markets.
---
### 🔍 **Core Logic**
* The strategy is based on the interaction of the **50 EMA** (fast-moving average) and the **100 EMA** (slow-moving average).
* **Trend direction** is determined by the crossover:
* **Bullish Trend**: When the 50 EMA crosses **above** the 100 EMA.
* **Bearish Trend**: When the 50 EMA crosses **below** the 100 EMA.
* To **filter out false breakouts**, a **candle confirmation** is used:
* For a **Buy signal**: After a bullish crossover, wait for a strong bullish candle (e.g., full-body green candle) to **close above both EMAs**.
* For a **Sell signal**: After a bearish crossover, wait for a strong bearish candle to **close below both EMAs**.
---
### ✅ **Entry Conditions**
**Buy Entry:**
* 50 EMA crosses above 100 EMA.
* Latest candle closes **above both EMAs**.
* Candle must be bullish (green/full body preferred).
**Sell Entry:**
* 50 EMA crosses below 100 EMA.
* Latest candle closes **below both EMAs**.
* Candle must be bearish (red/full body preferred).
---
### 🛑 **Exit or Take-Profit Options**
* **Fixed TP/SL**: 1:2 or 1:3 risk-reward.
* **Trailing Stop**: Based on recent swing highs/lows or ATR.
* **EMA Exit**: Exit trade when the candle closes on the opposite side of 50 EMA.
---
### ⚙️ **Best Settings**
* **Timeframes**: 5M, 15M, 1H, 4H (works well on most).
* **Markets**: Forex, Crypto (e.g., BTC/ETH), Indices (e.g., NASDAQ, NIFTY50).
* **Recommended filters**:
* Use with RSI divergence or volume confirmation.
* Avoid using during high-impact news (especially on lower timeframes).
---
### 🧠 **Why This Works**
The 50/100 EMA crossover provides a **medium-term trend signal**, reducing noise seen in fast EMAs (like 9 or 21). The candle confirmation adds a **momentum filter**, ensuring price supports the directional bias. This makes it suitable for traders who want a balance of trend and entry precision without overcomplicating with too many indicators.
---
### 📈 **Advantages**
* Simple yet effective for identifying trends.
* Filters out fakeouts using candle confirmation.
* Easy to automate in Pine Script or other trading bots.
* Can be combined with support/resistance or SMC zones for better confluence.
---
### ⚠️ **Limitations**
* May lag slightly in ranging markets.
* Late entries possible due to confirmation candle.
* Works best with additional volume or volatility filter.
PK's Buffer Zones with Extra Zone + EMA + VWAPuse as support and resistance. for any market and stocks.
Trend Continuation IndicatorTrend Continuation Indicator
The Trend Continuation Indicator is designed to assist traders in identifying potential continuation setups within established market trends. It is particularly suited for use in strong trending environments and is optimized for lower timeframes, with a recommended chart setting of 5-minute candles and an EMA timeframe set to 1 hour.
The indicator combines multiple technical elements:
RSI (Relative Strength Index): Used to assess potential overbought and oversold conditions relative to the trend.
EMA (Exponential Moving Average): A multi-timeframe EMA is used as a directional filter, helping to align entries with the broader trend.
Candle Structure and Momentum Filters: The logic includes real-time candle analysis and volume dynamics to identify momentum-driven signals.
Buy signals are generated when price action shows bullish momentum and RSI confirms potential oversold conditions within an uptrend. Conversely, sell signals are triggered when bearish momentum aligns with overbought RSI levels in a downtrend.
This tool is intended for use as part of a broader trading strategy and is best applied in trending markets where continuation patterns are more likely to follow through.
THE INDICATOR ITSELF IS NO FINANCIAL ADVISE!
Here are some usecase examples:
Momentum-Reversal System Signals Pro
Momentum-Reversal System Signals Pro
Overview
A sophisticated signaling system designed to identify high-probability trend-following entries after a price pullback. This indicator is optimized for index futures like the S&P 500 (ES/SPX) on a 5-minute timeframe .
It performs best during periods of established trends and lower volatility. To aid in this, the indicator includes a customizable "No-Trade Zone" highlighter, which is pre-set to the often volatile 8:30 AM - 11:30 AM EST market open. While the default settings are robust and effective in most conditions, the indicator is fully customizable to suit your specific trading style.
How It Works
The core logic is based on a three-step process to filter for high-quality setups:
Trend Confirmation: The script first establishes the overall market direction using an EMA on a higher timeframe (15-minute by default). This ensures you are only looking for trades that align with the dominant trend.
Pullback Detection: Once the trend is confirmed, the script waits for the price to pull back to a dynamic area of value on the main chart (5-minute by default). This "pullback zone" is defined by the 5m EMA and an ATR-based channel around it, which adapts to current market volatility.
Momentum Entry: After a valid pullback occurs, the script waits for a clear sign that momentum is returning in the direction of the primary trend. This is confirmed by a combination of a MACD crossover and a strong RSI reading, signaling that the pullback has likely ended and the trend is ready to resume.
Advanced Quality Filters
What makes this indicator powerful is its multi-layered filtering system designed to weed out low-probability signals and avoid choppy market conditions.
Trend Strength: It doesn't just check the trend direction; it measures the slope of the 15m EMA to ensure the trend has sufficient strength. This is a key filter for avoiding flat, sideways markets.
Momentum Confirmation: An RSI "Dead Zone" around the 50-level ensures that the RSI shows decisive momentum before a signal is generated.
Signal Cooldown: A built-in timer ( Min Bars Between Signals ) prevents the same signal from firing repeatedly in a short period, reducing noise and over-trading.
RSI Volatility: The script checks that the RSI itself is not flat, which is often a sign of market indecision and a precursor to chop.
Pullback Quality: An optional filter ensures that by the time the signal fires, the price has already moved back to the "correct" side of the 5m EMA, confirming the reversal's strength.
Volatility Filter: A crucial risk management filter that blocks signals on abnormally large, high-risk "gasoline" bars that could lead to immediate stops.
How To Use
For Long Signals (Green 'Long' Tag):
Look for the 15m EMA to be green and trending upwards.
Wait for price to pull back towards the orange 5m EMA.
A "Long" signal appears when momentum indicators confirm a reversal back in the direction of the trend.
For Short Signals (Red 'Short' Tag):
Look for the 15m EMA to be red and trending downwards.
Wait for price to pull back towards the orange 5m EMA.
A "Short" signal appears when momentum indicators confirm a reversal back in the direction of the trend.
This tool provides high-probability signals, not guarantees. It is designed to be a core component of a complete trading plan. Always use proper risk management and confluence from your own analysis.
Fine-Tuning & Customization
All settings are fully adjustable in the script's "Inputs" tab to match your risk tolerance and market conditions.
Timeframe & EMA Settings: Adjust the core moving averages that define the trend and pullback zones.
Pullback Settings: Define what constitutes a valid pullback by adjusting the lookback period and the size of the ATR-based "near" zone.
Quality Filters: This is the most important section for tailoring the script's strictness. Increase the EMA Slope, RSI Dead Zone, or Signal Cooldown to receive fewer but potentially higher-quality signals.
Advanced Filters: Enable or disable the Pullback Quality and Volatility filters for an extra layer of confirmation or risk management.
No-Trade Zone Highlighter: Adjust the session and timezone to highlight periods you wish to avoid, such as news events or low-liquidity hours.
Happy trading, and please use this tool responsibly.
20-Day SMA BIAS%20-day Bias is a commonly used indicator in technical analysis. It is used to measure the gap between the stock price and its 20-day moving average to determine whether the stock price deviates from the normal state and whether there is an overbought or oversold phenomenon.
How to calculate the 20-day deviation value:
The calculation formula of the deviation rate is: ((closing price of the day - 20-day moving average price) / 20-day moving average price) * 100%.
Interpretation of 20-day deviation value:
Positive deviation rate:
Indicates that the stock price is higher than the 20-day moving average, which means that the stock price is high and may face correction pressure.
Negative deviation rate:
Indicates that the stock price is lower than the 20-day moving average, which means that the stock price is low and there may be a rebound opportunity.
Absolute value of the deviation rate:
The larger the absolute value, the higher the deviation of the stock price, and the higher the degree of overbought or oversold.
Apply the deviation rate to determine the buying and selling opportunities:
Positive deviation rate is too large:
When the positive deviation rate of the stock price from the 20-day moving average is too large, and the stock price is already at a high level, this may be a sell signal.
Negative deviation rate is too large:
When the negative deviation rate of the stock price from the 20-day moving average is too large, and the stock price is already at a low level, this may be a buy signal.
Stock price fluctuates around the moving average:
Stock price usually fluctuates around the moving average and adjusts after over-rising or over-falling.
Practical operation suggestions:
The standards of the market and individual stocks are different:
When the positive and negative deviation rate of the market and the quarterly line is greater than 5%, there is a greater chance of correction; large-cap stocks are between 5% and 10%; small and medium-sized stocks may be above 15% to 20%.
Combined with other indicators:
The deviation rate is only one of the technical analysis indicators. It is recommended to combine it with other indicators, such as KD indicators, RSI, etc., to make a comprehensive judgment and improve accuracy.
Reference to historical experience:
You can refer to the situation where the deviation rate of the stock was too large in the past to determine whether the current deviation rate is also too large.
Summary:
The 20-day deviation value is an indicator to determine whether the stock price is overbought or oversold, which can help investors determine the timing of buying and selling, but it needs to be combined with other indicators and historical data, and adjusted according to market conditions.
📊 TREND Indicator by Yogesh Mandloi 📊This custom-built TradingView indicator provides a visual and logic-based trend analysis dashboard using 4-hour RSI and EMA/SMA conditions, combined with entry/exit signals, alerts, and a toggle-controlled condition table.
🔍 Core Logic
The strategy uses 4-hour timeframe data to identify potential bullish or bearish trends based on:
RSI (14):
Buy: RSI > 48
Sell: RSI < 52
EMA/SMA (Trend Filters):
Buy: EMA 21 > SMA 55 High → uptrend confirmation
Sell: EMA 21 < SMA 55 Low → downtrend confirmation
Buy Signal = RSI > 48 AND EMA21 > SMA55 High
Sell Signal = RSI < 52 AND EMA21 < SMA55 Low
It only signals on first bar of condition (no repetitive signals) and gives exit alerts when the condition ends.
📈 Features
✅ Signal Plotting
Green "BUY" arrows below bars when buy setup forms
Red "SELL" arrows above bars when sell setup forms
Gray "EXIT" markers when the trend condition invalidates
✅ Real-Time Alerts
Entry alerts for both BUY and SELL signals
Exit alerts to close positions
✅ Dynamic Visual Table
An on-screen signal table shows the live status of each condition with color-coded clarity:
✅ Green: Condition met
❌ Red: Condition not met
🟧 Orange: Warning (bearish potential forming)
✅ Toggle Switches for Sections
Users can control the visibility of each table section:
Buy Conditions ✔️
Sell Conditions 🔻
Signal Summary 📌
Indicator Values 📊
This makes it easier to focus on relevant sections or declutter the chart view.
✅ Customizable Table Position
You can change the table location:
top_left, top_right, bottom_left, bottom_right
✅ Background Highlights
Light Green background when buy conditions are active
Light Red background when sell conditions are active
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]Strategy Overview
This is an experimental trend-following strategy combining directional movement indicators, momentum filters, and time-based exits. Built for low timeframes like BTCUSDT 5m, it aims to detect clean directional setups while managing risk tightly.
Indicator Components
• DI+/DI- + ADX – Confirms trend direction and strength
• RSI (14) – Momentum filter (entries only if RSI > 55 or < 45)
• MACD Histogram – Confirms momentum shift in signal direction
• Candle Body % Filter – Screens for strong price commitment bars
• EMA 600 & EMA 2400 – Defines long-term trend alignment
• Time-Based Stop – Closes trade if it doesn’t move 0.75% in 85 bars
• Reward:Risk – 1% stop-loss, 7.5:1 reward-to-risk
• One Trade per EMA Cross – Only trades first valid signal per trend shift
Entry Logic
Long Entry:
• DI+ crosses above DI−
• RSI > 55
• MACD histogram > 0
• Strong bullish candle
• EMA600 > EMA2400
• Occurs within 25 bars of an EMA crossover
Short Entry:
• DI+ crosses below DI−
• RSI < 45
• MACD histogram < 0
• Strong bearish candle
• EMA2400 > EMA600
• Occurs within 25 bars of an EMA crossover
Exit Logic
• Stop-loss: 1% from entry
• Take-profit: 7.5x risk
• Time-stop: Trade closed if price doesn’t move 0.75% in 85 bars
Testing Parameters
• Initial Capital: $10,000
• Commission: 0.04% per trade
• Timeframe: 5-minute
• Tested on: BTCUSDT
• ⚠️ Early-stage strategy — trade count may be low depending on market context. This is shared for educational use and community feedback.
Notes
• This script is experimental and educational
• Please forward-test in a demo environment before using it live
• Open-source for learning and improvement — contributions welcome!
10/20 MA Coil: Progressive Colors & Multi-Day BreakoutThis indicator detects price “coil” setups and highlights potential breakout or breakdown opportunities using moving average alignment and volatility compression.
Features:
• Coil Detection:
• Identifies consolidation when:
• The 10 and 20 MAs are tightly aligned (within user-defined tolerance)
• Price is above both MAs and within 1.5x ADR of them
• The 50 MA is rising
• Progressive Coil Coloring:
• Coil candles are colored in progressively darker orange as the streak continues
• Bullish Breakout Signal:
• Triggers when a green candle follows a coiled bar
• The candle’s body must be greater than or equal to 1 ATR
• Colored lime green
• Bearish Breakdown Signal:
• Triggers when a red candle follows a coiled bar
• The candle’s body must be greater than or equal to 1 ATR to the downside
• Colored black
• Custom Candle Rendering:
• Candle body color represents coil or breakout state
• Wick and border are red or green to reflect price direction
• Optional Debug Tools:
• Coil streak, ATR, and distance from MAs can be plotted for deeper analysis
This script is designed for traders looking to spot price compression and prepare for high-probability moves following low-volatility setups.
Hybrid Strategy with Position Control//@version=6
indicator('Hybrid Strategy with Position Control', overlay=true)
// === INPUTS ===
emaFastLen = input.int(8, 'Fast EMA')
emaSlowLen = input.int(21, 'Slow EMA')
rsiLen = input.int(14, 'RSI Length')
rsiOverbought = input.int(70, 'RSI Overbought')
rsiOversold = input.int(30, 'RSI Oversold')
macdFast = input.int(12, 'MACD Fast')
macdSlow = input.int(26, 'MACD Slow')
macdSignal = input.int(9, 'MACD Signal')
// === CALCULATIONS ===
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
rsi = ta.rsi(close, rsiLen)
= ta.macd(close, macdFast, macdSlow, macdSignal)
// === POSITION TRACKING ===
var int position = 0 // 0 = no position, 1 = long, -1 = short
// === ENTRY CONDITIONS ===
longCondition = ta.crossover(emaFast, emaSlow) and rsi < rsiOverbought and macdLine > signalLine and position != 1
shortCondition = ta.crossunder(emaFast, emaSlow) and rsi > rsiOversold and macdLine < signalLine and position != -1
// === EXIT CONDITIONS (Optional logic for reset) ===
exitLong = ta.crossunder(emaFast, emaSlow)
exitShort = ta.crossover(emaFast, emaSlow)
// === SIGNAL PLOTS ===
buySignal = longCondition
sellSignal = shortCondition
plotshape(buySignal, title='Buy Signal', location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text='BUY')
plotshape(sellSignal, title='Sell Signal', location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text='SELL')
// === STATE MANAGEMENT ===
if (longCondition)
position := 1
if (shortCondition)
position := -1
// Reset position if trend reverses
if (exitLong and position == 1)
position := 0
if (exitShort and position == -1)
position := 0
// === PLOT EMAs ===
plot(emaFast, color=color.orange, title='Fast EMA')
plot(emaSlow, color=color.blue, title='Slow EMA')
CerberusFX Midnight Line UTC+2Daily Vertical Line UTC+2
Plots a vertical blue line spanning the full chart height at the start of each day at 00:00 UTC+2 (or the next available candle). Includes a label ("00:00 UTC+2") above the candle for clarity. Ideal for separating trading days on intraday charts in the UTC+2 timezone.
Crypto Trend StrengthCrypto Trend Strength Dashboard (11-Point System)
Description:
This indicator is a visually enhanced dashboard that evaluates 11 key technical signals to assess bullish momentum for crypto. Each condition is displayed in a easy reading table for quick interpretation and visual appeal.
Signals include:
Higher highs and higher lows
Price above SMA18 and SMA365
SMA180 > SMA365
Positive slope on SMA180 and SMA365
RSI trending upward
Ideal for traders who want a clean, at-a-glance summary of market strength without scanning multiple charts or indicators.
EMA Curl Strength+EMA Curl Strength+
Description:
This indicator provides a statistically normalized view of EMA slope momentum using Z-score transformation. By evaluating the rate of change of an EMA and comparing it against its historical behavior, the script highlights momentum shifts in a dynamic, adaptive way.
⸻
How It Works:
• Calculates the slope (percentage change) of a chosen EMA.
• Normalizes the slope using Z-score over a custom lookback period.
• Smooths the resulting signal and computes two signal lines for comparison.
• Assigns dynamic colors based on user-defined Z-score thresholds for mild, moderate, and strong momentum in both directions.
⸻
Visual Features:
• Gradient fill between the Z Curl Line and Signal 1 to highlight slope acceleration.
• Histogram showing the difference between the Z Curl Line and its signal.
• Optional signal crossover shapes between configurable pairs (e.g., Z Curl vs. Signal).
• Background highlights when the Z Curl Line exceeds ±2, indicating strong trending behavior.
⸻
Customization:
• Adjustable EMA length, smoothing lengths, signal lengths, histogram smoothing, and Z-score lookback.
• Separate color controls for:
• Z-score strength bands (mild/moderate/strong up/down)
• Histogram bars
• Signal lines
• Background highlight zones
• Crossover shapes
⸻
Use Cases:
• Momentum Confirmation: Confirm strength when Z Curl exceeds ±2 with matching background highlights.
• Trend Entry Timing: Look for trades when Z Curl crosses above or below the 0-line.
• Scalping: Capture quick directional moves when momentum accelerates.
• Trend Following: Use strong Z Curl values to confirm trade direction and filter sideways action.
• Divergence Detection: Spot divergences between price and Z Curl movement to anticipate reversals.
AI Breakout Bands (Zeiierman)█ Overview
AI Breakout Bands (Zeiierman) is an adaptive trend and breakout detection system that combines Kalman filtering with advanced K-Nearest Neighbor (KNN) smoothing. The result is a smart, self-adjusting band structure that adapts to dynamic market behavior, identifying breakout conditions with precision and visual clarity.
At its core, this indicator estimates price behavior using a two-dimensional Kalman filter (position + velocity), then enhances the smoothing process with a nonlinear, similarity-based KNN filter. This unique blend enables it to handle noisy markets and directional shifts with both speed and stability — providing breakout traders and trend followers a reliable framework to act on.
Whether you're identifying volatility expansions, capturing trend continuations, or spotting early breakout conditions, AI Breakout Bands gives you a mathematically grounded, visually adaptive roadmap of real-time market structure.
█ How It Works
⚪ Kalman Filter Engine
The Kalman filter models price movement as a state system with two components:
Position (price)
Velocity (trend direction)
It recursively updates predictions using real-time price as a noisy observation, balancing responsiveness with smoothness.
Process Noise (Position) controls sensitivity to sudden moves.
Process Noise (Velocity) controls smoothing of directional flow.
Measurement Noise (R) defines how much the filter "trusts" live price data.
This component alone creates a responsive yet stable estimate of the market’s center of gravity.
⚪ Advanced K-Neighbor Smoothing
After the Kalman estimate is computed, the script applies a custom K-Nearest Neighbor (KNN) smoother.
Rather than averaging raw values, this method:
Finds K most similar past Kalman values
Weighs them by similarity (inverse of absolute distance)
Produces a smoother that emphasizes structural similarity
This nonlinear approach gives the indicator an AI feature — reacting fast when needed, yet staying calm in consolidation.
█ How to Use
⚪ Trend Recognition
The line color shifts dynamically based on slope direction and breakout confirmation.
Bullish conditions: price above the mid band with positive slope
Bearish conditions: price below the mid band with negative slope
⚪ Breakout Signals
Price breaking above or below the bands may signal momentum acceleration.
Combine with your own volume or momentum confirmation for stronger entries.
Bands adapt to market noise, helping filter out low-quality whipsaws.
█ Settings
Process Noise (Position): Controls Kalman filter’s sensitivity to price changes.
Process Noise (Velocity): Controls smoothing of directional component.
Measurement Noise (R): Defines how much trust is placed in price data.
K-Neighbor Length: Number of historical Kalman values considered for smoothing.
Slope Calculation Window: Number of bars used to compute trend slope of the smoothed Kalman.
Band Lookback (MAE): Rolling period for average absolute error.
Band Multiplier: Multiplies MAE to determine band width.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
EMA and Dow Theory Strategies🌐 Strategy Description
📘 Overview
This is a hybrid strategy that combines EMA crossovers, Dow Theory swing logic, and multi-timeframe trend overlays. It is suitable for intraday to short-term trading on any asset class: crypto, forex, stocks, and indices.
The strategy provides precise entry/exit signals, dynamic stop-loss and scale-out, and highly visual trade guidance.
🧠 Key Features
・Dual EMA crossover system (applied to both symbol and external index)
・Dow Theory-based swing high/low detection for trend confirmation
・Visual overlay of higher timeframe swing trend (htfTrend)
・RSI filter to avoid overbought/oversold entries
・Dynamic partial take-profit when trend weakens
・Custom stop-loss (%) control
・Visualized trade PnL labels directly on chart
・Alerts for entry, stop-loss, partial exit
・Gradient background zones for swing zones and trend visualization
・Auto-tracked metrics: APR, drawdown, win rate, equity curve
⚙️ Input Parameters
| Parameter | Description |
| ------------------------- | -------------------------------------------------------- |
| Fast EMA / Slow EMA | Periods for detecting local trend via EMAs |
| Index Fast EMA / Slow EMA | EMAs applied to external reference index |
| StopLoss | Maximum loss threshold in % |
| ScaleOut Threshold | Scale-out percentage when trend changes color |
| RSI Period / Levels | RSI period and overbought/oversold levels |
| Swing Detection Length | Number of bars used to detect swing highs/lows |
| Stats Display Options | Toggle PnL labels and position of statistics table |
🧭 About htfTrend (Higher Timeframe Trend)
The script includes a higher timeframe trend (htfTrend) calculated using Dow Theory (pivot highs/lows).
This trend is only used for visual guidance, not for actual entry conditions.
Why? Strictly filtering trades by higher timeframe often leads to missed opportunities and low frequency.
By keeping htfTrend visual-only, traders can still refer to macro structure but retain trade flexibility.
Use it as a contextual tool, not a constraint.
ストラテジー説明
📘 概要
本ストラテジーは、EMAクロスオーバー、ダウ理論によるスイング判定、**上位足トレンドの視覚表示(htfTrend)**を組み合わせた複合型の短期トレーディング戦略です。
仮想通貨・FX・株式・指数など幅広いアセットに対応し、デイトレード〜スキャルピング用途に適しています。
動的な利確/損切り、視覚的にわかりやすいエントリー/イグジット、統計表示を搭載しています。
🧠 主な機能
・対象銘柄+外部インデックスのEMAクロスによるトレンド判定
・ダウ理論に基づいたスイング高値・安値検出とトレンド判断
・上位足スイングトレンド(htfTrend)の視覚表示
・RSIフィルターによる過熱・売られすぎの回避
・トレンドの弱まりに応じた部分利確(スケールアウト)
・**損切り閾値(%)**をカスタマイズ可能
・チャート上に損益ラベル表示
・アラート完備(エントリー・決済・部分利確)
・トレンドゾーンを可視化する背景グラデーション
・勝率・ドローダウン・APR・資産増加率などの自動表示
| 設定項目名 | 説明内容 |
| --------------------- | -------------------------- |
| Fast EMA / Slow EMA | 銘柄に対して使用するEMAの期間設定 |
| Index Fast / Slow EMA | 外部インデックスのEMA設定 |
| 損切り(StopLoss) | 損切りラインのしきい値(%で指定) |
| 部分利確しきい値 | トレンド弱化時にスケールアウトする割合(%) |
| RSI期間・水準 | RSI計算期間と、過熱・売られすぎレベル設定 |
| スイング検出期間 | スイング高値・安値の検出に使用するバー数 |
| 統計表示の切り替え | 損益ラベルや統計テーブルの表示/非表示選択 |
🧭 上位足トレンド(htfTrend)について
本スクリプトには、上位足でのスイング高値・安値の更新に基づく**htfTrend(トレンド判定)が含まれています。
これは視覚的な参考情報であり、エントリーやイグジットには直接使用されていません。**
その理由は、上位足を厳密にロジックに組み込むと、トレード機会の損失が増えるためです。
このスクリプトでは、**判断の補助材料として「表示のみに留める」**設計を採用しています。
→ 裁量で「利確を早める」「逆張りを避ける」判断に活用可能です。
Multi-Method Moving Average v6.0Multi-Methods Moving Average Indicator is a versatile tool designed for traders who want to identify key price levels that can act as support and resistance in the market. This indicator utilizes multiple moving averages (MAs) to help visualize price trends and potential reversal points, aiding traders in making informed decisions.
Features
Multiple Moving Averages: The indicator calculates and displays six different moving averages (MA1 to MA6) based on user-defined periods. This allows traders to analyze short-term and long-term trends effectively.
Customizable Inputs: Users can customize the periods for each moving average and select the type of moving average (SMA, EMA, WMA) that best suits their trading strategy.
Price Source Selection: The indicator allows users to choose the price source (Open, Close, High, Low, or the average of Open and Close) for calculating the moving averages, providing flexibility in analysis.
Color-Coded Signals: The moving averages are color-coded based on the current price relative to the moving average, helping traders quickly identify bullish or bearish conditions.
How to Use
Adding the Indicator:
Open TradingView and navigate to the chart you wish to analyze.
Click on the "Indicators" button at the top of the chart.
Search for "Multi-Methods Moving Average" and select the indicator to add it to your chart.
Customizing Settings:
Click on the gear icon next to the indicator's name in the chart legend to open the settings menu.
Adjust the periods for each moving average to fit your trading style. Common settings include 9, 26, 52, 100, 200, and 500 periods.
Choose the type of moving average you prefer (SMA, EMA, or WMA).
Select the price source that aligns with your trading strategy.
Interpreting the Indicator:
Moving Averages: Observe the position of the moving averages relative to the price. If the price is above the moving average, it indicates a bullish trend; if below, it suggests a bearish trend.
Crossover Signals: Look for crossovers between the moving averages. A crossover where a shorter moving average crosses above a longer moving average may signal a potential buy opportunity, while a crossover in the opposite direction may indicate a sell opportunity.
Support and Resistance Levels: Use the moving averages as dynamic support and resistance levels. Price often reacts at these levels, providing potential entry and exit points for trades.
Risk Management:
Always combine the insights from this indicator with other forms of analysis, such as price action, volume analysis, and market sentiment.
Set stop-loss and take-profit levels based on the identified support and resistance levels to manage your risk effectively.
Conclusion
The Support & Resistance Indicator is an essential tool for traders looking to enhance their market analysis. By leveraging multiple moving averages and customizable settings, traders can gain a clearer understanding of market trends and make more informed trading decisions.
15m EMA 50 CloudDescription:
The 15m EMA 50 Cloud is a simple but powerful tool designed for scalpers and intraday traders who hunt for low timeframe patterns while staying anchored to higher timeframe trend context.
This indicator displays the 50-period EMA and its volatility cloud from the 15-minute chart on any timeframe - including 1m, 3m, or 5m. The cloud adapts dynamically and remains visible even when you zoom into lower timeframes, helping you instantly see whether price is trading above, below or within the 15m trend structure.
Features:
* Plots the 15-minute 50 EMA Cloud on any chart, regardless of your selected timeframe.
* Cloud width is based on 15m price volatility (standard deviation), inspired by the popular "Traders Reality" indicator.
* Option to enable or hide the EMA line for a cleaner look.
* Customizable colors for the cloud fill, border, and EMA line.
* Works with all markets and all symbols.
How to Use:
* Perfect for scalpers who want to spot micro patterns (e.g., on 1m or 3m charts) while keeping
the 15m EMA cloud as a visual "road map".
* Use the cloud as a dynamic support/resistance zone or to define higher timeframe trend bias.
* Combine with your favorite price action or orderflow setups for multi-timeframe confluence.
Settings:
* Toggle EMA line ON/OFF.
* Adjust cloud and border colors for your chart style.
For educational purposes only. This indicator does not provide financial advice or signals. Always use proper risk management.
⚠️ Important Notice
This tool is provided for educational and informational purposes only . It is designed to assist in technical analysis learning and visual chart study.
It is not intended to be used as financial advice, a buy/sell signal, or any form of investment recommendation .
By using this indicator, you acknowledge that all actions you take are your own and you assume full responsibility for any decisions made.
Auto Intelligence Selective Moving Average(AI/MA)# 🤖 Auto Intelligence Moving Average Strategy (AI/MA)
**AI/MA** is a state-adaptive moving average crossover strategy designed to **maximize returns from golden cross / death cross logic** by intelligently switching between different MA types and parameters based on market conditions.
---
## 🎯 Objective
To build a moving average crossover strategy that:
- **Adapts dynamically** to market regimes (trend vs range, rising vs falling)
- **Switches intelligently** between SMA, EMA, RMA, and HMA
- **Maximizes cumulative return** under realistic backtesting
---
## 🧪 materials amd methods
- **MA Types Considered**: SMA, EMA, RMA, HMA
- **Parameter Ranges**: Periods from 5 to 40
- **Market Conditions Classification**:
- Based on the slope of a central SMA(20) line
- And the relative position of price to the central line
- Resulting in 4 regimes: A (Bull), B (Pullback), C (Rebound), D (Bear)
- **Optimization Dataset**:
- **Bybit BTCUSDT.P**
- **1-hour candles**
- **2024 full-year**
- **Search Process**:
- **Random search**: 200 parameter combinations
- Evaluated by:
- `Cumulative PnL`
- `Sharpe Ratio`
- `Max Drawdown`
- `R² of linear regression on cumulative PnL`
- **Implementation**:
- Optimization performed in **Python (Pandas + Matplotlib + Optuna-like logic)**
- Final parameters ported to **Pine Script (v5)** for TradingView backtesting
---
## 📈 Performance Highlights (on optimization set)
| Timeframe | Return (%) | Notes |
|-----------|------------|----------------------------|
| 6H | +1731% | Strongest performance |
| 1D | +1691% | Excellent trend capture |
| 12H | +1438% | Balance of trend/range |
| 5min | +27.3% | Even survives scalping |
| 1min | +9.34% | Robust against noise |
- Leverage: 100x
- Position size: 100%
- Fees: 0.055%
- Margin calls: **none** 🎯
---
## 🛠 Technology Stack
- `Python` for data handling and optimization
- `Pine Script v5` for implementation and visualization
- Fully state-aware strategy, modular and extendable
---
## ✨ Final Words
This strategy is **not curve-fitted**, **not over-parameterized**, and has been validated across multiple timeframes. If you're a fan of dynamic, intelligent technical systems, feel free to use and expand it.
💡 The future of simple-yet-smart trading begins here.
MA Signal IndicatorMA Signal Indicator
The MA Signal Indicator is a customizable designed to identify potential trading opportunities based on price interactions with a Simple Moving Average (SMA). It incorporates risk management features such as stop-loss (SL), take-profit (TP), and breakeven levels, calculated using the Average True Range (ATR). The indicator is visually intuitive, overlaying trade signals, price levels, and colored zones directly on the chart.
Key Features:
1. Moving Average-Based Signals:
• Generates buy (long) signals when the price crosses above a user-defined SMA (default: 55 periods).
• Generates sell (short) signals when the price crosses below the SMA.
• Long and short trades can be independently enabled or disabled via input settings.
2. Risk Management:
• Stop-Loss (SL): Set as a multiple of the ATR (default: 1x ATR) below the entry price for long trades or above for short trades.
• Take-Profit (TP): Set as a multiple of the ATR (default: 5x ATR) above the entry price for long trades or below for short trades.
• Breakeven Level: A trigger level (default: 2x ATR) where traders may choose to move their stop-loss to breakeven, optionally displayed on the chart.
3. Visual Feedback:
• SMA Line: Plotted in orange (default: 55-period SMA) for trend reference.
• Trade Zone: Highlights the area between the stop-loss and take-profit levels with a semi-transparent green (long) or red (short) background.
• Price Lines: Displays entry price (white), stop-loss (red), take-profit (green), and breakeven level (gray, optional) as horizontal lines during active trades.
• Signal Markers: Triangular markers indicate entry points (green triangle up for long, red triangle down for short).
• Exit Markers: Labels show when a trade hits the take-profit (green checkmark) or stop-loss (red cross).
4. Trade Logic:
• Only one trade is active at a time (long or short).
• Trades are exited when either the stop-loss or take-profit is hit, resetting the indicator for the next signal.
• Ensures signals are only triggered when not already in a trade, avoiding duplicate entries.
Inputs:
• MA Period: Length of the SMA (default: 55).
• ATR Period: Period for ATR calculation (default: 5).
• SL Multiplier: ATR multiplier for stop-loss (default: 1.0).
• TP Multiplier: ATR multiplier for take-profit (default: 5.0).
• Move to Breakeven After: ATR multiplier for breakeven trigger (default: 2.0).
• Show Break Even Line: Option to display the breakeven level (default: true).
• Allow Long Trades: Enable/disable long signals (default: true).
• Allow Short Trades: Enable/disable short signals (default: true).
Use Case:
This indicator is ideal for trend-following traders who want a clear, visual system for entering and exiting trades based on SMA crossovers, with predefined risk and reward levels. It suits both manual and automated trading strategies, providing flexibility to adjust parameters for different markets or timeframes.
Notes:
• The indicator is overlaid on the price chart for easy integration with other analysis tools.
• Users should test and adjust parameters (e.g., MA length, ATR multipliers) to suit their trading style and market conditions.
• The breakeven line is a visual guide; manual adjustment of stops is required as the indicator does not automatically modify trade positions.
This indicator provides a robust framework for disciplined trading with clear entry, exit, and risk management visuals.