Backtest: EMA + CPR + Volume + SL/TargetBacktest Strategy — EMA + CPR + Volume + SL/Target
Buy & Sell signals: Plotted on chart
Volume Spike Filter: Volume > 20-day average
Stop-Loss: 1.5% below entry price
Target: 3% above entry price (can be adjusted)
Backtest mode: Tracks performance
Works on all stocks (Futures or Equity)
Medie mobili
Futures Strategy: EMA + CPR + RSI + Volume + AlertsBuy when:
20 EMA crosses above 50 EMA
Price is above CPR
RSI is in acceptable zone (optional)
Volume is above average
📉 Sell when:
20 EMA crosses below 50 EMA
Price is below CPR
RSI is in acceptable zone (optional)
Volume is above average
Futures Strategy: EMA + CPR + RSI (No OI)Strategy Logic:
✅ 20 EMA / 50 EMA crossover for trend direction
✅ CPR (Central Pivot Range) for support/resistance context
✅ Optional enhancements:
RSI filter to avoid overbought/oversold zones
Volume filter to avoid weak signals
EMA + CPR Buy/Sell Signalsautomated TradingView Pine Script for generating Buy/Sell signals based on the exact strategy you requested:
20 EMA & 50 EMA crossover
CPR levels (Pivot, Support, Resistance)
Optional: MACD & RSI filters
EMA + CPR Buy/Sell Signalsautomated TradingView Pine Script for generating Buy/Sell signals based on the exact strategy
20 EMA & 50 EMA crossover
CPR levels (Pivot, Support, Resistance)
Optional: MACD & RSI filters
Multi Moving Average with CustomizationCore Functionality
The indicator allows you to display up to 5 different moving averages on your chart simultaneously.
Each moving average can be fully customized with its own settings.
You can choose between
1. Simple Moving Average (SMA),
2. Exponential Moving Average (EMA)
3. Weighted Moving Average (WMA) types
Multi-Timeframe Support
One standout feature is the ability to display higher timeframe moving averages on lower timeframe charts.
For example, you can show a 200 EMA from the daily chart while viewing a 15-minute chart.
Advanced Visualization Features
The indicator includes several visualization enhancements:
1. MA Cloud - Creates a filled area between any two selected moving averages. The cloud automatically changes color based on which MA is on top - typically green when the faster MA is above (bullish) and red when below (bearish).
2. Golden/Death Cross Detection - Automatically detects and marks important MA crossover events:
* Golden Cross: When a shorter-term MA crosses above a longer-term MA (bullish signal)
* Death Cross: When a shorter-term MA crosses below a longer-term MA (bearish signal)
3. Trend Background - Colors the entire chart background based on whether price is above or below a specified MA, giving a clear visual indicator of the overall trend.
Alert System
The indicator can generate alerts when price crosses above or below any selected moving average. This feature is useful for automated trading signals or notifications, and can be configured to trigger once per bar.
Flexible Architecture
The code uses several programming techniques to maximize flexibility:
* Switch statements for selecting MA types and cloud values
* Conditional logic throughout the code
* Function abstraction for calculating MAs and handling multi-timeframe display
* String identifiers to select which MAs to use for cloud visualization
Unique Technical Aspects
1. The multi-timeframe plotting function solves the common problem of higher timeframe MAs looking distorted on lower timeframe charts.
2. The cloud feature uses string identifiers to select which MAs to use, allowing for any combination.
3. The indicator employs smart conditional logic to handle complex decision trees efficiently.
4. Every visual aspect (colors, line widths, display conditions) is customizable through the settings.
This indicator combines multiple technical analysis tools into a single, highly configurable package that can adapt to different trading styles and timeframes.
Its ability to correctly display higher timeframe MAs on lower timeframe charts makes it particularly valuable for traders who analyze multiple timeframes simultaneously.
UT Bot + Hull MA Confirmed Signal DelayOverview
This indicator is designed to detect high-probability reversal entry signals by combining "UT Bot Alerts" (UT Bot Alerts script adapted from QuantNomad - Originally developed by Yo_adriiiiaan and idea of original code for "UT Bot Alerts" from HPotter ) with confirmation from a Hull Moving Average (HMA) Developed by Alan Hull . It focuses on capturing momentum shifts that often precede trend reversals, helping traders identify potential entry points while filtering out false signals.
🔍 How It Works
This strategy operates in two stages:
1. UT Bot Momentum Trigger
The foundation of this script is the "UT Bot Alerts" , which uses an ATR-based trailing stop to detect momentum changes. Specifically:
The script calculates a dynamic stop level based on the Average True Range (ATR) multiplied by a user-defined sensitivity factor (Key Value).
When price closes above this trailing stop and the short-term EMA crosses above the stop, a potential buy setup is triggered.
Conversely, when price closes below the trailing stop and the short-term EMA crosses below, a potential sell setup is triggered.
These UT Bot alerts are designed to identify the initial shift in market direction, acting as the first filter in the signal process.
2. Hull MA Confirmation
To reduce noise and false triggers from the UT Bot alone, this script delays the entry signal until price confirms the move by crossing the Hull Moving Average (or its variants: HMA, THMA, EHMA) in the same direction as the UT Bot trigger:
A Buy Signal is generated only when:
A UT Bot Buy condition is active, and
The price closes above the Hull MA.
Or, if a UT Bot Buy condition was recently triggered but price hadn’t yet crossed above the Hull MA, a delayed buy is signaled when price finally breaks above it.
A Sell Signal is generated only when:
A UT Bot Sell condition is active, and
The price closes below the Hull MA.
Similarly, a delayed sell signal can occur if price breaks below the Hull MA shortly after a UT Bot Sell trigger.
This dual-confirmation process helps traders avoid premature entries and improves the reliability of reversal signals.
📈 Best Use Cases
Reversal Trading: This strategy is particularly well-suited for catching early trend reversals rather than trend continuations. It excels at identifying momentum pivots that occur after pullbacks or exhaustion moves.
Heikin Ashi Charts Recommended: The script offers a Heikin Ashi mode for smoothing out noise and enhancing visual clarity. Using Heikin Ashi candles can further reduce whipsaws and highlight cleaner shifts in trend direction.
MACD Alignment: For best results, trade in the direction of the MACD trend or use it as a filter to avoid counter-trend trades.
⚠️ Important Notes
Entry Signals Only: This indicator only plots entry points (Buy and Sell signals). It does not define exit strategies, so users should manage trades manually using trailing stops, profit targets, or other exit indicators.
No Signal = No Confirmation: You may see a UT Bot trigger without a corresponding Buy/Sell signal. This means the price did not confirm the move by crossing the Hull MA, and therefore the setup was considered too weak or incomplete.
⚙️ Customization
UT Bot Sensitivity: Adjust the “Key Value” and “ATR Period” to make the UT Bot more or less reactive to price action.
Use Heikin Ashi: Toggle between standard candles or Heikin Ashi in the indicator settings for a smoother trading experience.
The HMA length may also be modified in the indicator settings from its standard 55 length to increase or decrease the sensitivity of signal.
This strategy is best used by traders looking for a structured, logic-based way to enter early into reversals with added confirmation to reduce risk. By combining two independent systems—momentum detection (UT Bot) and trend confirmation (Hull MA)—it aims to provide high-confidence entries without overwhelming complexity.
Let the indicator guide your entries—you manage the exits.
Examples of use:
Futures:
Stock:
Crypto:
As shown in the snapshots this strategy, like most, works the best when price action has a sizeable ATR and works the least when price is choppy. Therefore it is always best to use this system when price is coming off known support or resistance levels and when it is seen to respect short term EMA's like the 9 or 15.
My personal preference to use this system is for day trading on a 3 or 5 minute chart. But it is valid for all timeframes and simply marks a high probability for a new trend to form.
Sources:
Quant Nomad - www.tradingview.com
Yo_adriiiiaan - www.tradingview.com
HPotter - www.tradingview.com
Hull Moving Average - alanhull.com
Saf EMA Kesişim Stratejisi + AlarmGives buy and sell signals at important intersections. MACD and RSI support .try in all time zones
WMA ATR With Zone + Donchian// 💡 WMA ATR With Zone + Donchian - Strategy Description (EN)
// 📈 A powerful system optimized for short-term trades.
// 🎯 Perfect for traders aiming for 0.5% to 1% profit per trade.
// ⚙️ Combines WMA crossovers, ATR zones, and Donchian filters for high-accuracy signals.
// 💥 Provides meaningful returns when used with leverage.
// 🔍 Filters out noise during sideways markets.
// 📊 Clear info panels and entry/exit zones for easy use.
// 🚀 Great for consistent scalping profits.
// 👉 If you like it, don’t forget to follow 💚
// #Scalping #Leverage #CryptoStrategy #TradingView
// ─────────────────────────────────────────────────────────────
// 💡 WMA ATR With Zone + Donchian - Strateji Açıklaması
// 📈 Kısa vadeli işlemler için optimize edilmiş güçlü bir stratejidir.
// 🎯 Özellikle %0.5 ila %1 kar hedefleyen yatırımcılar için idealdir.
// ⚙️ WMA kesişimleri, ATR bölgeleri ve Donchian kanal filtrelemesiyle yüksek doğruluk sağlar.
// 💥 Kaldıraçla birlikte anlamlı kazançlar sunabilir.
// 🔍 Yatay piyasa filtrelemesiyle yanıltıcı sinyalleri azaltır.
// 📊 Bilgi panelleri ve net giriş-çıkış sinyalleriyle kullanıcı dostudur.
// 🚀 Küçük ama istikrarlı kazançlar hedefleyenler için birebirdir.
// 👉 Beğendiyseniz takip etmeyi unutmayın 💚
// #Scalping #Kaldıraç #CryptoStrateji #TradingView
Momentum / RSI -> The NeW SystemMomentum / RSI → The NeW System 🚀📉
Calculate and visualize raw momentum or its fully featured “RSI → The NeW System” on that momentum—switch instantly between price-speed and its relative strength view, complete with dual-MA crossover signals.
What Is This Indicator? 🤔
A two-panel momentum dashboard that lets you:
See raw momentum (price change over N bars) in the bottom pane.
Overlay the “RSI → The NeW System” on that momentum in the top pane, with configurable smoothing filters and crossover logic.
Use a single master toggle to switch between them—no extra charts, no clutter.
Inputs ⚙️
Momentum Period ⏳ – Bars back for raw momentum.
RSI Length 📏 – Lookback for the RSI applied to momentum.
Use RSI Smoothing? 🔄 – OFF shows raw momentum; ON shows RSI-of-momentum.
First & Second MA Type & Length – Choose two moving-average filters (SMA, EMA, WMA, HMA, RMA, LSMA, DEMA, TEMA, VIDYA) to smooth the RSI-of-momentum.
Enable Second MA Comparison – Overlay both smoothed lines for fast vs. slow crossover signals.
Extreme High/Low Levels – Define your overbought/oversold zones for classic coloring.
How It Works 🧮
Raw Momentum
Bottom Panel only when smoothing is OFF.
Green above zero = upward acceleration.
Red below zero = downward acceleration.
Dashed gray zero line for reference.
“RSI → The NeW System”
Top Panel only when smoothing is ON.
Feeds raw momentum into an RSI (0–100 scale).
Classic Zones (if second-MA comparison is OFF):
Dark green above Extreme High → overbought speed
Dark red below Extreme Low → oversold speed
Gray in between
Dual-MA Crossover (if enabled):
Long Signal ▶️ when the fast MA dips below the slow MA → both lines turn green
Short Signal ▶️ when the fast MA climbs above the slow MA → both lines turn red
Context-Aware Reference Lines
Zero line always in bottom panel for raw momentum.
50 midline and your Extreme High/Low only in top panel when showing RSI.
Clear Two-Panel Layout 🎨
Top Panel – “RSI → The NeW System” view: one smoothed line (classic) or two (fast vs. slow crossover).
Bottom Panel – Raw momentum when smoothing is OFF, for direct speed insight.
Pro Tips 💡
Catch breakouts with raw momentum spikes—flip smoothing OFF to see every acceleration stall.
Filter noise and ride trends with the RSI-of-momentum smoothing—flip smoothing ON.
Use dual-MA crossovers for early long/short signals: fast vs. slow momentum shifts.
Watch divergences: price highs without matching momentum or RSI peaks hint at weakening moves.
Combine with volume/volatility filters to avoid traps in thin markets.
With everything unified into one streamlined view, you no longer need separate release notes or toggles—the full power of raw vs. smoothed momentum (including classic zones and fast/slow crossover logic) is baked into a single, elegant two-panel indicator. 🚀
RSI -> The NeW SystemRSI → The NeW System 📊
A fully customizable Relative Strength Index with optional smoothing filters and dynamic color zones.
What is the RSI? 🤔
The Relative Strength Index (RSI) measures the speed and magnitude of price changes. It highlights overbought (> your “Extreme High”) and oversold (< your “Extreme Low”) conditions, and uses a midpoint (50) to separate bullish from bearish momentum.
Indicator Inputs ⚙️
RSI Source 📈
Price series for the RSI calculation (e.g. close, typical price).
RSI Length ⏳
Lookback period for the raw RSI.
MA Type for Smoothing 🔄
Choose how to filter the RSI line:
None – raw RSI, no smoothing.
SMA – Simple Moving Average of the RSI values.
EMA – Exponential Moving Average, weights recent values more.
WMA – Weighted Moving Average, linearly de-emphasizes older values.
HMA – Hull MA, very smooth with reduced lag via square-root period.
RMA – Wilder’s MA, the classic smoothing used in RSI.
LSMA – Least Squares MA (linear regression) to highlight trend slope.
DEMA – Double EMA (2×EMA – EMA of EMA) for minimal lag.
TEMA – Triple EMA (3×EMA – 3×EMA² + EMA³) for extra smoothness.
VIDYA – Variable Index Dynamic Average, adapts smoothing to RSI volatility.
MA Smoothing Length 📐
Period for your chosen MA filter.
Extreme High Level 🚩
RSI threshold for overbought (default: 70).
Extreme Low Level 🟢
RSI threshold for oversold (default: 30).
Middle Line ➖
Fixed at 50 to separate bullish (>50) from bearish (<50) momentum.
MA Types Explained 🔍
None: No filter; every RSI spike/dip is visible.
SMA: Evenly averages the last N values—solid smoothing but slower to react.
EMA: Weights recent data more—faster response, moderate smoothing.
WMA: Heavier weighting on newest points—quicker than EMA for the same length.
HMA: Uses weighted and square-root adjustments—super smooth and fast.
RMA: Wilder’s smoothing—very stable, minimal noise.
LSMA: Fits a regression line—excellent at showing the RSI’s trend direction.
DEMA: Combines two EMAs to cut lag—smooth with swift reactions.
TEMA: Uses three EMAs for ultimate lag reduction and smoothness.
VIDYA: Adjusts its smoothing factor dynamically based on volatility—stays smooth in calm markets, adapts quickly when volatility surges.
How It Works 🧮
Raw RSI: Calculate the classic RSI over your chosen length.
Optional Smoothing: If you pick an MA Type, the raw RSI is filtered accordingly.
Dynamic Coloring:
Above Extreme High → Dark red (overbought alert).
70 → 50 → Bright green (strong bullish momentum).
50 → 30 → Bright red (weakening momentum).
Below Extreme Low → Dark green (oversold opportunity).
Visual Aids:
Dashed red line at Extreme High.
Dashed green line at Extreme Low.
Dotted gray line at 50.
Background fill between the high/low zones for instant visual cues.
Raw RSI overlay (faint gray) behind the smoothed line when smoothing is active.
Plot & Interpretation 🎨
Smoothed RSI Line colored by zone for immediate strength/weakness reading.
Zone Background between overbought/oversold thresholds to highlight critical areas.
Optional Raw RSI behind the filter to compare noise vs. clarity.
Pro Tips 💡
EMA for balanced smoothing, HMA/DEMA/TEMA for lightning-fast signals, VIDYA for volatility-adaptive filtering.
Watch crosses of 50 on your smoothed line to confirm trend shifts.
Use extreme bounces (30 or 70) for mean reversion entries/exits; breakouts beyond them for trend confirmation.
Compare raw vs. smoothed lines to fine-tune signal sensitivity vs. noise suppression.
Tailor RSI → The NeW System to your strategy, whether you need razor-sharp entries or a cleaner, trend-focused view! 🚀
Scalping IndicatorAn attempt to create a signal for intraday scalping. This indicator factoring short EMA cross, supertrend, fib retracement, and market structure for the signal condition.
EMA 10/20/50 Alignment Strategy### 📘 **Strategy Name**
**EMA 10/20/50 Trend Alignment Strategy**
---
### 📝 **Description (for Publishing)**
This strategy uses the alignment of Exponential Moving Averages (EMAs) to identify strong bullish trends. It enters a long position when the short-term EMA is above the mid-term EMA, which is above the long-term EMA — a classic sign of trend strength.
#### 🔹 Entry Criteria:
* **EMA10 > EMA20 > EMA50**: A bullish alignment that signals momentum in an upward direction.
* The strategy enters a **long position** when this alignment occurs.
#### 🔹 Exit Criteria:
* The long position is closed when the EMA alignment breaks (i.e., the trend weakens or reverses).
#### 🔹 Additional Features:
* Includes a **date range filter**, allowing you to backtest the strategy over a specific period.
* Uses **100% of available capital** for each trade (position size auto-scales with account balance).
* No short positions, stop loss, or take profit are applied — this is a trend-following strategy meant to ride bullish moves.
---
### ✅ Best For:
* Traders looking for a **simple, trend-based entry system**
* Testing price momentum strategies during specific market regimes
* Visualizing EMA stacking patterns in historical data
Backtest with Date Range### 📝 Strategy Description for Publishing
**Title**: SMA Crossover Strategy with Custom Date Range
**Description**:
This strategy implements a classic SMA (Simple Moving Average) crossover system, enhanced with a custom backtesting window defined by start and end dates.
It generates:
* **Buy signals** when the 10-period SMA crosses above the 50-period SMA (bullish momentum).
* **Sell signals** when the 10-period SMA crosses below the 50-period SMA (bearish momentum).
Key features:
* Trades only occur within a user-defined date range, allowing precise control over the backtest period.
* Uses 100% of available capital per trade by default.
* No leverage or stop loss/take profit is applied—pure trend-following logic.
Ideal for users looking to validate moving average-based strategies during specific market conditions or events.
StoRsi# StoRSI Indicator: Combining RSI and Stochastic with multiTF
## Overview
The StoRSI indicator combines Relative Strength Index (RSI) and Stochastic oscillators in a single view to provide powerful momentum and trend analysis. By displaying both indicators together with multi-timeframe analysis, it helps traders identify stronger signals when both indicators align.
## Key Components
### 1. RSI (Relative Strength Index)
### 2. Stochastic Oscillator
### 3. EMA (Exponential Moving Average)
### 4. Multi-Timeframe Analysis
## Visual Features
- **Color-coded zones**: Highlights overbought/oversold areas
- **Signal backgrounds**: Shows when both indicators align
- **Multi-timeframe table**: Displays RSI, Stochastic, and trend across timeframes
- **Customizable colors**: Allows full visual customization
## Signal Generation (some need to uncomment in code)
The indicator generates several types of signals:
1. **RSI crosses**: When RSI crosses above/below overbought/oversold levels
2. **Stochastic crosses**: When Stochastic %K crosses above/below overbought/oversold levels
3. **Combined signals**: When both indicators show the same condition
4. **Trend alignment**: When multiple timeframes show the same trend direction
## Conclusion
The StoRSI indicator provides a comprehensive view of market momentum by combining two powerful oscillators with multi-timeframe analysis. By looking for alignment between RSI and Stochastic across different timeframes, traders can identify stronger signals and filter out potential false moves. The visual design makes it easy to spot opportunities at a glance, while the customizable parameters allow adaptation to different markets and trading styles.
For best results, use this indicator as part of a complete trading system that includes proper risk management, trend analysis, and confirmation from price action patterns.
IEK Signal Buy OnlyIEK Signal Buy Only
Bullish Reversal Detection with Multi-Condition Filters
Overview
This indicator is designed to detect bullish reversal opportunities by combining candlestick behavior, momentum shifts, and trend confirmation. It focuses solely on BUY signals to help traders identify rebound opportunities during extended downtrends or near oversold conditions.
What It Does
This script generates a BUY signal only when all of the following conditions are met:
Reversal Candlestick Pattern
A bullish candle with a long lower wick and a green body, indicating potential rejection of lower prices.
EMA Trend Filter
The price must be below a long-period Exponential Moving Average (default: 89), suggesting that the market is in a downtrend or pullback state.
RSI Oversold Condition
The RSI value must be below a set threshold (default: 45), highlighting weakening selling pressure or oversold conditions.
MACD Histogram Confirmation
The MACD histogram must be increasing, signaling a possible momentum shift to the upside.
A signal is plotted only when all these criteria are true on the same candle.
Why These Conditions Work Together
Each component adds a layer of confirmation:
The candlestick structure highlights possible market rejection at lower levels.
EMA filtering ensures signals are only taken during downtrends or pullbacks, where rebound setups are more likely.
RSI adds momentum context to avoid chasing the market too early.
MACD histogram slope helps detect strengthening momentum before the price rises.
This combination avoids arbitrary mashups by integrating each tool into a cohesive reversal strategy.
Additional Features
Signal markers displayed directly on the chart when conditions are met
EMA line plotted and colored by trend direction
MACD crossover zones displayed via background shading
Real-time RSI label with context-aware coloring
Automatic detection of nearby support and resistance levels with visual labels and zones
Not a Test or Fork
This script is fully functional and built for practical trading use. It is not an experiment, a minor variation of another script, or a copy with no added logic.
Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Users should apply their own judgment and risk management when using it in live trading.
///////////////////////////////////////////
IEK Signal Buy Only
อินดิเคเตอร์จับสัญญาณกลับตัวขาขึ้นด้วยเงื่อนไขหลายชั้น
ภาพรวม
อินดิเคเตอร์นี้ออกแบบมาเพื่อค้นหาสัญญาณกลับตัวขาขึ้น (Bullish Reversal) โดยอิงจากพฤติกรรมของแท่งเทียน โมเมนตัมของราคา และการยืนยันแนวโน้ม
เน้นเฉพาะฝั่ง Buy เพื่อช่วยให้เทรดเดอร์หาจังหวะรีบาวด์ในช่วงขาลง หรือเมื่อราคาเข้าใกล้โซน Oversold
กลไกการทำงาน
สัญญาณ Buy จะถูกแสดงเมื่อมีเงื่อนไขต่อไปนี้ครบพร้อมกัน:
แท่งเทียนกลับตัวขาขึ้น
ต้องเป็นแท่งเขียว (ราคาปิดสูงกว่าราคาเปิด) และมีไส้เทียนด้านล่างยาว (ยาวกว่า 1.5 เท่าของตัวแท่ง) แสดงถึงการปฏิเสธราคาต่ำที่ชัดเจน
เงื่อนไขแนวโน้มจาก EMA
ราคาต้องต่ำกว่าเส้นค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โปเนนเชียล (EMA) ระยะยาว เช่น EMA 89 เพื่อแสดงว่าราคากำลังอยู่ในช่วงย่อตัวจากเทรนด์ใหญ่
เงื่อนไข RSI Oversold
ค่า RSI ต้องต่ำกว่าค่าที่กำหนด (เริ่มต้นที่ 45) เพื่อบ่งชี้ถึงแรงขายที่เริ่มอ่อนลง หรือเข้าสู่เขต Oversold
MACD Histogram ยืนยันโมเมนตัมขาขึ้น
Histogram ของ MACD ต้องเพิ่มขึ้นจากแท่งก่อนหน้า เพื่อยืนยันว่ากำลังเกิดแรงส่งกลับด้าน
อินดิเคเตอร์จะแสดงสัญญาณ Buy เฉพาะเมื่อเงื่อนไขทั้ง 4 ข้อข้างต้นเป็นจริงในแท่งเดียวกัน
เหตุผลที่ใช้หลายเงื่อนไขร่วมกัน
แต่ละองค์ประกอบช่วยเพิ่มความแม่นยำในลักษณะเฉพาะ:
โครงสร้างแท่งเทียนแสดงการปฏิเสธราคาต่ำ
EMA ช่วยกรองให้เข้าซื้อเฉพาะช่วงพักตัวจากเทรนด์ใหญ่
RSI ช่วยให้ไม่เข้าซื้อเร็วเกินไป
MACD Histogram ใช้ยืนยันการเปลี่ยนทิศของโมเมนตัม
การรวมกันของทั้ง 4 ส่วนนี้ไม่ใช่การนำอินดิเคเตอร์มารวมแบบสุ่ม แต่เป็นการออกแบบที่มีโครงสร้างเพื่อจับจังหวะกลับตัวที่แม่นยำ
ฟีเจอร์เพิ่มเติม
แสดงสัญญาณ Buy บนกราฟแบบชัดเจน
เส้น EMA เปลี่ยนสีตามแนวโน้ม
แสดงโซนตัดกันของ MACD ด้วยพื้นหลัง
แสดงค่า RSI แบบเรียลไทม์พร้อมสีบอกสถานะ
วาดแนวรับ-แนวต้านอัตโนมัติ พร้อมข้อความแสดงระยะห่างจากราคา
ไม่ใช่สคริปต์ทดลองหรือสำเนา
อินดิเคเตอร์นี้สร้างขึ้นเพื่อใช้งานจริง ไม่ใช่เวอร์ชันทดสอบ ไม่ใช่การดัดแปลงจากอินดิเคเตอร์อื่นโดยไม่มีการปรับปรุง
ข้อสงวนสิทธิ์
สคริปต์นี้จัดทำขึ้นเพื่อใช้เพื่อการศึกษาเท่านั้น ไม่ใช่คำแนะนำในการลงทุน
ผู้ใช้งานควรใช้ดุลยพินิจและระบบบริหารความเสี่ยงของตนเอง
Smart Fib StrategySmart Fibonacci Strategy
This advanced trading strategy combines the power of adaptive SMA entries with Fibonacci-based exit levels to create a comprehensive trend-following system that self-optimizes based on historical market conditions. Credit goes to Julien_Eche who created the "Best SMA Finder" which received an Editors Pick award.
Strategy Overview
The Smart Fibonacci Strategy employs a two-pronged approach to trading:
1. Intelligent Entries: Uses a self-optimizing SMA (Simple Moving Average) to identify optimal entry points. The system automatically tests multiple SMA lengths against historical data to determine which period provides the most robust trading signals.
2. Fibonacci-Based Exits: Implements ATR-adjusted Fibonacci bands to establish precise exit targets, with risk-management options ranging from conservative to aggressive.
This dual methodology creates a balanced system that adapts to changing market conditions while providing clear visual reference points for trade management.
Key Features
- **Self-Optimizing Entries**: Automatically calculates the most profitable SMA length based on historical performance
- **Adjustable Risk Parameters**: Choose between low-risk and high-risk exit targets
- **Directional Flexibility**: Trade long-only, short-only, or both directions
- **Visualization Tools**: Customizable display of entry lines and exit bands
- **Performance Statistics**: Comprehensive stats table showing key metrics
- **Smoothing Option**: Reduces noise in the Fibonacci bands for cleaner signals
Trading Rules
Entry Signals
- **Long Entry**: When price crosses above the blue center line (optimal SMA)
- **Short Entry**: When price crosses below the blue center line (optimal SMA)
### Exit Levels
- **Low Risk Option**: Exit at the first Fibonacci band (1.618 * ATR)
- **High Risk Option**: Exit at the second Fibonacci band (2.618 * ATR)
Strategy Parameters
Display Settings
- Toggle visibility of the stats table and indicator components
Strategy Settings
- Select trading direction (long, short, or both)
- Choose exit method (low risk or high risk)
- Set minimum trades threshold for SMA optimization
SMA Settings
- Option to use auto-optimized or fixed-length SMA
- Customize SMA length when using fixed option
Fibonacci Settings
- Adjust ATR period and SMA basis for Fibonacci bands
- Enable/disable smoothing function
- Customize Fibonacci ratio multipliers
Appearance Settings
- Modify colors, line widths, and transparency
Optimization Methodology
The strategy employs a sophisticated optimization algorithm that:
1. Tests multiple SMA lengths against historical data
2. Evaluates performance based on trade count, profit factor, and win rate
3. Calculates a "robustness score" that balances profitability with statistical significance
4. Selects the SMA length with the highest robustness score
This ensures that the strategy's entry signals are continuously adapting to the most effective parameters for current market conditions.
Risk Management
Position sizing is fixed at $2,000 per trade, allowing for consistent exposure across all trading setups. The Fibonacci-based exit system provides two distinct risk management approaches:
- **Conservative Approach**: Using the first Fibonacci band for exits produces more frequent but smaller wins
- **Aggressive Approach**: Using the second Fibonacci band allows for larger potential gains at the cost of increased volatility
Ideal Usage
This strategy is best suited for:
- Trending markets with clear directional moves
- Timeframes from 4H to Daily for most balanced results
- Instruments with moderate volatility (stocks, forex, commodities)
Traders can further enhance performance by combining this strategy with broader market analysis to confirm the prevailing trend direction.
IEK Signal Sell OnlyIEK Signal Sell Only
Bearish Reversal Detection with Multi-Condition Filters
Overview
This indicator is designed to detect bearish reversal opportunities by combining candlestick behavior, momentum shifts, and trend confirmation. It focuses solely on SELL signals to help traders identify market exhaustion during extended uptrends.
What It Does
This script generates a SELL signal only when all of the following conditions are met:
Reversal Candlestick Pattern
A bearish candle with a long upper wick and a red body, indicating potential rejection at higher prices.
EMA Trend Filter
The price must be above a long-period Exponential Moving Average (default: 89), suggesting that the market is in an uptrend and potentially overextended.
RSI Overbought Condition
The RSI value must be above a set threshold (default: 55), highlighting weakening buying pressure or overbought conditions.
MACD Histogram Confirmation
The MACD histogram must be decreasing, signaling a possible momentum shift to the downside.
A signal is plotted only when all these criteria are true on the same candle.
Why These Conditions Work Together
Each component adds a layer of confirmation:
The candlestick structure highlights possible market rejection.
EMA filtering ensures signals are only taken during uptrends, where mean-reverting setups are more likely.
RSI adds momentum context to avoid entering too early.
MACD histogram slope helps detect fading strength before the price turns.
This combination avoids arbitrary mashups by integrating each tool into a cohesive reversal strategy.
Additional Features
Signal markers displayed directly on the chart when conditions are met
EMA line plotted and colored by trend direction
MACD crossover zones displayed via background shading
Real-time RSI label with context-aware coloring
Automatic detection of nearby support and resistance levels with visual labels and zones
Not a Test or Fork
This script is fully functional and built for practical trading use. It is not an experiment, a minor variation of another script, or a copy with no added logic.
Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Users should apply their own judgment and risk management when using it in live trading.
////////////////////////////////////////////////////////////////////////
IEK Signal Sell Only
อินดิเคเตอร์จับสัญญาณกลับตัวขาลงแบบมีเงื่อนไขหลายชั้น
ภาพรวม
อินดิเคเตอร์ตัวนี้ออกแบบมาเพื่อจับจังหวะการกลับตัวขาลง (Bearish Reversal) โดยพิจารณาจากพฤติกรรมแท่งเทียน โมเมนตัม และทิศทางของแนวโน้ม โดยเน้นเฉพาะสัญญาณฝั่งขาย (Sell) เหมาะสำหรับผู้ที่ต้องการหาจุดขายเมื่อราคาอยู่ในแนวโน้มขาขึ้นหรือช่วงที่ราคายืดตัวมากเกินไป
กลไกการทำงาน
สัญญาณ Sell จะเกิดขึ้นเมื่อเงื่อนไขทั้งหมดต่อไปนี้เป็นจริงพร้อมกัน:
แท่งเทียนกลับตัวขาลง
มีลักษณะแท่งแดง (ราคาปิดต่ำกว่าราคาเปิด) และมีไส้เทียนด้านบนยาวกว่าปกติ ซึ่งมักแสดงถึงแรงขายที่เกิดจากการถูกปฏิเสธราคาในระดับสูง
กรองแนวโน้มด้วย EMA
ราคาปิดต้องอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โปเนนเชียล (EMA) ระยะยาว เช่น EMA 89 เพื่อระบุว่าตลาดอยู่ในขาขึ้นและเริ่มมีความเสี่ยงต่อการพักตัว
ค่า RSI อยู่ในโซน Overbought
RSI ต้องมากกว่าค่าที่กำหนดไว้ เช่น 55 เพื่อบ่งชี้ว่าแรงซื้อเริ่มอ่อนแรง หรืออยู่ในภาวะซื้อมากเกินไป
MACD Histogram ลดลง
Histogram ของ MACD ต้องลดลงจากแท่งก่อนหน้า เพื่อยืนยันว่าโมเมนตัมกำลังเริ่มเปลี่ยนทิศทาง
หากครบทั้ง 4 เงื่อนไข อินดิเคเตอร์จะแสดงสัญญาณขายบนกราฟทันที
เหตุผลในการรวมองค์ประกอบเหล่านี้
องค์ประกอบแต่ละตัวมีหน้าที่เสริมซึ่งกันและกัน:
โครงสร้างแท่งเทียนให้ภาพการกลับตัวแบบชัดเจน
EMA ใช้เพื่อจำกัดการเข้า Sell เฉพาะในแนวโน้มขาขึ้นที่มีโอกาสพักตัว
RSI เป็นตัวกรองเชิงโมเมนตัม เพื่อไม่ให้เข้าสวนเทรนด์เร็วเกินไป
MACD Histogram ใช้ตรวจสอบการเปลี่ยนทิศของแรงขับเคลื่อน
จุดเด่นคือ ไม่ใช่การรวมตัวของอินดิเคเตอร์แบบสุ่ม แต่เป็นการออกแบบที่มีโครงสร้างชัดเจนและสัมพันธ์กัน
ฟีเจอร์เพิ่มเติม
แสดงสัญญาณ Sell ด้วยสัญลักษณ์บนแท่งเทียน
เส้น EMA เปลี่ยนสีตามทิศทางแนวโน้ม
แสดงโซน MACD crossover ด้วยพื้นหลัง
แสดงค่าของ RSI พร้อมการเปลี่ยนสีตามระดับ
คำนวณแนวรับ–แนวต้านโดยอัตโนมัติ พร้อมวาดเส้นและกล่องแสดงระยะห่างจากราคา
ไม่ใช่สคริปต์ทดลอง
สคริปต์นี้พัฒนาเพื่อใช้งานจริง และไม่ใช่สคริปต์ทดลองหรือดัดแปลงจากโค้ดอื่นโดยไม่มีการปรับปรุงเชิงตรรกะ
ข้อสงวนสิทธิ์
อินดิเคเตอร์นี้จัดทำขึ้นเพื่อใช้ในการศึกษาเท่านั้น และไม่ใช่คำแนะนำในการลงทุน
ผู้ใช้งานควรใช้ดุลยพินิจและบริหารความเสี่ยงด้วยตนเอง
4 EMA Modified [Ryu_xp] - Enhanced4 EMA Modified – Enhanced (Pine v6)
A highly configurable, four-line exponential moving average (EMA) overlay built in Pine Script v6. This indicator empowers traders to monitor short- and long-term trends simultaneously, with the ability to toggle each EMA on or off and adjust its period and data source—all from a single, inline control panel.
Key Features:
Pine Script v6: updated to leverage the latest performance improvements and language features.
Four EMAs:
EMA 3 for ultra-short momentum (white, medium line)
EMA 10 for short-term trend (light blue, thin line)
EMA 55 for intermediate trend (orange, thicker line)
EMA 200 for long-term trend (dynamic green/red, thickest line)
Inline Controls: Each EMA has its own checkbox, length input, and source selector arranged on a single line for fast configuration.
Dynamic Coloring: EMA 200 switches to green when price is above it (bullish) and red when price is below it (bearish).
Toggle Visibility: Enable or disable any EMA instantly without removing it from your chart.
Clean Overlay: All EMAs plotted in one pane; ideal for multi-timeframe trend confluence and crossover strategies.
Inputs:
Show/Hide each EMA
EMA Length and Source for periods 3, 10, 55, and 200
Usage:
Add the script to any price chart.
Use the inline checkboxes to show only the EMAs you need.
Adjust lengths and sources to fit your instrument and timeframe.
Watch for crossovers between EMAs or price interactions with EMA 200 to confirm trend shifts.
This open-source script offers maximum flexibility for traders seeking a customizable EMA toolkit in one simple overlay.
Smooth Fibonacci BandsSmooth Fibonacci Bands
This indicator overlays adaptive Fibonacci bands on your chart, creating dynamic support and resistance zones based on price volatility. It combines a simple moving average with ATR-based Fibonacci levels to generate multiple bands that expand and contract with market conditions.
## Features
- Creates three pairs of upper and lower Fibonacci bands
- Smoothing option for cleaner, less noisy bands
- Fully customizable colors and line thickness
- Adapts automatically to changing market volatility
## Settings
Adjust the SMA and ATR lengths to match your trading timeframe. For short-term trading, try lower values; for longer-term analysis, use higher values. The Fibonacci factors determine how far each band extends from the center line - standard Fibonacci ratios (1.618, 2.618, and 4.236) are provided as defaults.
## Trading Applications
- Use band crossovers as potential entry and exit signals
- Look for price bouncing off bands as reversal opportunities
- Watch for price breaking through multiple bands as strong trend confirmation
- Identify potential support/resistance zones for placing stop losses or take profits
Fibonacci Bands combines the reliability of moving averages with the adaptability of ATR and the natural market harmony of Fibonacci ratios, offering a robust framework for both trend and range analysis.