Stable Coin Dominance RSI with Proportional + InvertStable Coin Dominance RSI with addition of an Invert checkbox to align direction with pricing.
Đường Trung bình trượt
Current Average Gain and LossThe Momentum-Based Non-Lagging Indicator for Swift Trade Decisions is a unique, non-lagging technical analysis tool designed for high-frequency scalping trades with timeframes ranging from 1 minute to 2 hours. This indicator calculates and plots the moving averages of gains and losses over a 14-day period, providing instantaneous buy and sell signals based on real-time market condition
My Strategy//@version=5
strategy("My Strategy", overlay = true)
// Create Indicator's
ema1 = ta.ema(close, 8)
ema2 = ta.ema(close, 18)
ema3 = ta.ema(close, 44)
//plot the Indicators
plot(ema1, title = "EMA1", color = color.blue, linewidth = 2)
plot(ema2, title = "EMA2", color = color.red, linewidth = 2)
plot(ema3, title = "EMA3", color = color.black, linewidth = 2)
// Specify crossover conditions
Enterlong = ta.crossover(ema2, ema3)
Exitlong = ta.crossunder(ema1,ema2)
Entershort = ta.crossunder(ema2, ema3)
Exitshort = ta.crossover(ema1,ema2)
//Execution Logic - Placing Orders
strategy.entry("Long", strategy.long, 1, when = Enterlong)
strategy.close("Long", when = Exitlong)
strategy.entry("Short", strategy.short, 1, when = Entershort)
strategy.close("Short", when = Exitshort)
My CustomThis indicator combines the Session VWAP, EMA 13 by 21 crossover,Support and resistances and Previous day High/Low with 38.2% and 61.8% retracements.
So, one can confirm these for trading intraday as well as swing trade.
Triangular Hull Moving Average + Volatility [BigBeluga]This indicator combines the Triangular Hull Moving Average (THMA) with a volatility overlay to provide a smoother trend-following tool while dynamically visualizing market volatility.
🔵 Key Features:
THMA-Based Trend Detection: The indicator applies a Triangular Hull Moving Average (THMA) to smooth price data, reducing lag while maintaining responsiveness to trend changes.
// THMA
thma(_src, _length) =>
ta.wma(ta.wma(_src,_length / 3) * 3 - ta.wma(_src, _length / 2) - ta.wma(_src, _length), _length)
Dynamic Volatility Bands: When enabled, the indicator displays wicks extending from the THMA-based candles. These bands expand and contract based on price volatility.
Trend Reversal Signals The indicator marks trend shifts using triangle-shaped signals:
- Upward triangles appear when the THMA trend shifts to bullish.
- Downward triangles appear when the THMA trend shifts to bearish.
Customizable Settings: Users can adjust the THMA length, volatility calculation period, and colors for up/down trends to fit their trading style.
Informative Dashboard: The bottom-right corner displays the current trend direction and volatility percentage, helping traders quickly assess market conditions.
🔵 Usage:
Trend Trading: The colored candles indicate whether the market is trending up or down. Traders can follow the trend direction and use trend reversals for entry or exit points.
Volatility Monitoring: When the volatility feature is enabled, the expanding or contracting wicks help visualize market momentum and potential breakout strength.
Signal Confirmation: The triangle signals can be used to confirm potential entry points when the trend shifts.
This tool is ideal for traders who want a responsive moving average with volatility insights to enhance their trend-following strategies.
20 EMA Touch Alert [v5]The Focuz 20 EMA Touch Alert is a simple yet powerful tool developed by Focuz to help traders stay alert when the market price touches the 20-period Exponential Moving Average (EMA).
Golden Cross Weekly - The Sign of GloryThis indicator shows a green beam of glory when the Golden Cross takes place on the weekly timeframe (visible from all timeframes)
Mushir's EMA 8/20EMA 8/20 is an indicator made by @MushirSpeaks, which gives the trend condition of the selected timeframe.
The EMA 20 is represented with a blue color and the EMA 8 is represented subjectively,
when EMA 8 is above EMA 20 the color of EMA 8 becomes green which indicates that the market is in uptrend and a long trade can be planned upon the successful testing and structure formations, whereas when the EMA 8 is below the EMA 20 the color of EMA 8 turn red hence denoting that the trend has shifted to downtrend and accordingly a short trade can be planned.
(Not Financial Advice)
EMA Ribbon with 100 MA BY TIJUThe EMA Ribbon with 100 MA is a powerful and visually intuitive indicator designed to help traders identify trends, momentum, and potential support/resistance levels using multiple Exponential Moving Averages (EMAs). By plotting a series of EMAs with varying periods, the script creates a "ribbon" effect on the chart, making it easier to spot trend direction and strength at a glance.
Key Features:
Multiple EMAs for Trend Analysis:
The script plots 8 EMAs with periods ranging from 20 to 55, creating a gradient ribbon effect.
The 100-period EMA is added as a thick blue line, acting as a key level for long-term trend analysis.
Customizable Periods:
Each EMA period is fully customizable, allowing traders to tailor the indicator to their preferred trading style and timeframe.
Visual Clarity:
The EMAs are color-coded, making it easy to distinguish between different periods and identify the overall trend direction.
Dynamic Support/Resistance:
The EMAs act as dynamic support and resistance levels, helping traders identify potential entry and exit points.
Drop Candles Feature:
The script includes an option to drop the first N candles, ensuring cleaner calculations and avoiding false signals during the initial periods.
How to Use:
Trend Identification:
Uptrend: When the shorter-period EMAs are stacked above the longer-period EMAs, it indicates a strong uptrend.
Downtrend: When the longer-period EMAs are stacked above the shorter-period EMAs, it indicates a strong downtrend.
Consolidation: When the EMAs are intertwined, it suggests a sideways or weak trend.
Support/Resistance Levels:
Use the EMAs as dynamic support/resistance levels. For example, in an uptrend, the price may bounce off the lower EMAs.
100-Period EMA:
The 100-period EMA (thick blue line) acts as a key level for long-term trend analysis. A price above this line suggests a bullish bias, while a price below suggests a bearish bias.
Customization:
Adjust the EMA periods and colors to suit your trading strategy.
Use the Drop first N candles option to avoid false signals during the initial periods.
Example Use Cases:
Trend Following:
Enter long positions when the price is above the EMA ribbon and the EMAs are stacked in an uptrend.
Enter short positions when the price is below the EMA ribbon and the EMAs are stacked in a downtrend.
Dynamic Support/Resistance:
Use the EMAs as dynamic support/resistance levels for setting stop-loss or take-profit targets.
Confirmation Tool:
Combine the EMA Ribbon with other indicators (e.g., RSI, MACD) to confirm trade signals.
Settings:
MA-1 to MA-8 Periods: Adjust the periods for the 8 EMAs (default: 20, 25, 30, 35, 40, 45, 50, 55).
MA-100 Period: Adjust the period for the 100 EMA (default: 100).
Source: Choose the price source for the EMAs (default: Close).
Drop First N Candles: Drop the first N candles to avoid false signals (default: 1).
Why Use EMA Ribbon ?
Versatility: Suitable for all trading styles (scalping, day trading, swing trading) and timeframes.
Visual Appeal: The color-coded ribbon makes it easy to interpret the trend at a glance.
Customizable: Tailor the indicator to your specific trading strategy.
Dynamic Levels: Use the EMAs as dynamic support/resistance levels for better risk management.
RSI and EMA IndicatorWhen price goes above 21 EMA with favourable RSI (above 50) , Indicator shows Buy and when price goes below 21 EMA with RSI(below 50) , indicator shows sell.
DOMINION
Here's a breakdown of what the code does:
1. **Indicators Used**:
- SMA 9 (red line)
- SMA 50 (blue line)
- SMA 180 (white line)
- EMA 20 (yellow line)
2. **Input Parameters**:
- `smaInput1 = 9`: First SMA period (editable)
- `smaInput2 = 50`: Second SMA period (editable)
- `smaInput3 = 180`: Third SMA period (editable)
- `emaInput1 = 20`: EMA period (editable)
- `no = 3`: Lookback period for swing high/low calculation
- `Barcolor`: Toggle for bar coloring
- `Bgcolor`: Toggle for background coloring
3. **Buy/Sell Signal System**:
- Uses a swing-based trailing stop loss (TSL) system
- `res`: Highest high over 'no' periods
- `sup`: Lowest low over 'no' periods
- Buy signal: When price crosses above the trailing stop
- Sell signal: When price crosses below the trailing stop
- Visual indicators:
- Green up arrow for Buy signals
- Red down arrow for Sell signals
- Green/red line for the trailing stop level
- Optional bar and background coloring
4. **Logic Breakdown**:
- `avd`: Determines trend direction (1 for up, -1 for down, 0 for neutral)
- `avn`: Captures the last significant trend direction
- `tsl`: Sets trailing stop level based on trend direction
- Color coding:
- Green when price is above TSL
- Red when price is below TSL
5. **Features**:
- Plots all moving averages as an overlay on price chart
- Shows entry/exit signals with arrows
- Includes alert conditions for Buy and Sell signals
- Customizable colors and visibility of elements
This is a trend-following system that:
- Uses multiple timeframe moving averages for trend confirmation
- Implements a swing-based trailing stop for trade management
- Provides clear visual signals for entries and exits
Cycle Buy-SellThis is just for the 4-year market cycle highs and lows for those who are buying and hodling but still want to take profits each cycle. Buy and sell rules are as follows:
### **📊 Buy & Sell Signal Conditions Summary**
---
### **✅ Buy Signal Conditions (`▲` Buy Signal)**
A **buy signal** is triggered when **any** of the following conditions are met:
#### **1️⃣ Standard Buy Condition (Momentum-Based)**
✅ **55 SMA is Below the 220 SMA** (`ma1 < ma2`)
- Confirms that the market is in a **longer-term downtrend** before considering a buy.
✅ **RSI is Below 30** (`rsi < 30`)
- Signals that the asset is **oversold** and could be due for a reversal.
✅ **Stochastic RSI K is Below 25** (`stoch_k < 25`)
- Indicates **extreme bearish momentum**, often preceding a bounce.
✅ **Money Flow Index (MFI) is Below 30** (`mfi < 30`)
- Suggests **weak buying pressure**, often seen at market bottoms.
✅ **Volume is Above 1.2x the 20-Period Moving Average** (`highVolume`)
- Confirms that the buy signal occurs **during strong market participation** to reduce false signals.
---
#### **2️⃣ 1400 SMA Cross Buy Condition (Cycle-Based)**
✅ **Price Crosses Below the 1400 SMA** (`ta.crossunder(close, ma4)`)
- Signals a **potential long-term accumulation opportunity**.
- **Triggers a separate buy signal**, independent of other conditions.
---
### **📉 Sell Signal Conditions (`▼` Sell Signal)**
A **sell signal** is triggered when **any** of the following conditions are met:
#### **1️⃣ Standard Sell Condition (Momentum-Based)**
✅ **55 SMA is Above the 220 SMA** (`ma1 > ma2`)
- Confirms that the market is in a **longer-term uptrend** before considering a sell.
✅ **RSI is Above 70** (`rsi > 70`)
- Indicates that the asset is **overbought** and could be due for a correction.
✅ **Stochastic RSI K is Above 80** (`stoch_k > 80`)
- Signals **extreme bullish momentum**, often seen before a drop.
✅ **Money Flow Index (MFI) is Above 80** (`mfi > 80`)
- Suggests **strong buying pressure**, often occurring near market tops.
✅ **Volume is Above 1.2x the 20-Period Moving Average OR MVRV Z-Score > 2.5**
- `highVolume` = Volume is significantly above the average.
- `mvrvTop = mvrv > 2.5` (Suggests Bitcoin is overvalued based on historical trends).
---
#### **2️⃣ Pi Cycle Top Sell Condition (Cycle-Based)**
✅ **Pi Cycle Top Signal Triggers (`piCycleTop`)**
- `piCycleTop = ta.crossover(ma111, ma350x2)`
- **Overrides all other conditions and forces a sell signal**.
- Historically aligns with **major cycle tops in Bitcoin**.
---
### **📝 Summary of Buy & Sell Conditions**
📍 **A Buy (`▲`) is triggered when**:
- **Momentum-based buy conditions** (RSI, Stoch RSI, MFI, Volume, SMA) are met.
- **OR the price crosses below the 1400 SMA** (Separate buy signal).
📍 **A Sell (`▼`) is triggered when**:
- **Momentum-based sell conditions** (RSI, Stoch RSI, MFI, Volume, SMA, MVRV) are met.
- **OR the Pi Cycle Top is triggered** (Forces a sell).
🚀 **Your strategy now integrates both short-term momentum signals and long-term cycle analysis!** Let me know if you need refinements. 🎯
EMA and RSI StrategyUtilizing Openai I’ve created the TradingView Pine Script for the trading bot using the 50 EMA, 20 EMA, and RSI indicators. You can view and edit the code in the canvas. Let me know if you need any modifications!
Colored Super MAI went looking for a script like this one, but I couldn't find one...so I created it.
It's a simple script which allows the user to select different moving average options, then color the moving average depending on if it's rising (green) or falling (red) over a set "lookback". Optionally, the user can easily specify things like line-width. Also, if there is a new close above or below a moving average, the script draws green or red lights above or below the candles (like a traffic light). In addition, I've added an alert condition which allows the user to set an alert if there is a new close above or below a moving average. This way, you can just wait for the alert instead of looking at charts all day long.
Enjoy!
RSI + EMA Crossover StrategyExplanation of the Code:
RSI & EMA Calculation:
RSI is calculated using talib.RSI() with a period of 14.
EMA is calculated using talib.EMA() with periods of 9 (short) and 21 (long).
VWDEMA RibbonMy indicator is based volume weighted DEMA's. Ribbon's default periots are 24, 52, 100 and 200. I am using it on different timeframes just trend verification. Look up other types of verifications like price action concepts.
9/20/50 EMAThis indicator plots three key Exponential Moving Averages (EMAs) on your chart: the 9 EMA (blue), 20 EMA (yellow), and 50 EMA (white). These EMAs are widely used by traders to identify trends, gauge momentum, and spot potential support/resistance levels. The combination of these EMAs provides a clear visual representation of short-term, medium-term, and long-term trends, making it easier to analyze price action and make informed trading decisions.
TTM Squeeze Pro with EMAs and Scans
TTM Squeeze Pro with EMAs and Scans
Overview:
This indicator combines the classic TTM Squeeze methodology with a robust set of Exponential Moving Averages (EMAs) and advanced scanning capabilities. Designed for traders who want to monitor momentum, squeeze conditions, and trend alignments simultaneously, it provides a comprehensive toolkit for technical analysis.
Key Features:
1. **TTM Squeeze Logic**:
- Uses Bollinger Bands and Keltner Channels to identify four squeeze states: No Squeeze (Green), Low Squeeze (Black), Mid Squeeze (Red), and High Squeeze (Orange).
- Plots squeeze dots and a momentum histogram in a lower pane for easy visualization.
2. **Exponential Moving Averages (EMAs)**:
- Overlays 7 EMAs on the price chart: 8, 21, 34, 55, 89, 144, and 233.
- Trend-based coloring: Rising EMAs in bright shades (e.g., Lime, Yellow, Fuchsia), falling in darker shades (e.g., Green, Orange, Red).
3. **Scan Alerts**:
- Transition Alerts: Squeeze Started, High Squeeze Started, Squeeze Fired, High Squeeze Fired, plus individual Low/Mid/No Squeeze Fired events.
- EMA Alignment Alerts: EMA 8>21, EMA 34>55>89, and EMA 89>144>233 for spotting bullish trends.
- State Alerts: Current squeeze condition (No, Low, Mid, High).
4. **Scan Columns (Data Window)**:
- Days since last No, Low, Mid, High Squeeze, and High Squeeze Fired.
- Percentage distance from the 52-week low (% From 52wk Low).
Usage:
- **Chart**: Apply to any symbol to see squeeze states, momentum, and EMAs in action.
- **Alerts**: Set up alerts for squeeze transitions, firings, or EMA alignments to catch key moments.
- **Watchlist**: Use scan columns in a watchlist (Premium feature) to monitor multiple symbols.
- **Customization**: Adjust squeeze length and multipliers via inputs to suit your trading style.
Inputs:
- TTM Squeeze Length (default: 20)
- Bollinger Band STD Multiplier (default: 2.0)
- Keltner Channel Multipliers: High (1.0), Mid (1.5), Low (2.0)
- Alert Toggles: Price Action Squeeze, Squeeze Firing
Notes:
- Optimized for daily charts (252 bars ≈ 52 weeks), but works on any timeframe—interpret "days" as bars.
- Colors are TradingView-standard and distinct for clarity.
Enjoy trading with this all-in-one squeeze and trend tool!