FT-RSISummary of the Custom RSI Indicator Script (For Futu Niuniu Platform):
This Pine Script code implements a triple-period RSI indicator with horizontal reference lines (70, 50, 30) for technical analysis on the Futu Niuniu trading platform.
Key Features:
Multi-period RSI Calculation:
Computes three RSI values using 9, 14, and 22-period lengths to capture short-term, standard, and smoothed momentum signals.
Utilizes the Relative Moving Average (RMA) method for RSI calculation (ta.rma function).
Horizontal Reference Bands:
Upper Band (70): Red dotted line (semi-transparent) to identify overbought conditions.
Middle Band (50): Green dotted line as the neutral equilibrium level.
Lower Band (30): Blue dotted line (semi-transparent) to highlight oversold zones.
Visual Customization:
Distinct colors for each RSI line:
RSI (9): Orange (#F79A00)
RSI (14): Green (#49B50D)
RSI (22): Blue (#5188FF)
All lines have a thickness of 2 pixels for clear visibility.
Platform Compatibility:
This script is designed for Futu Niuniu’s charting system, leveraging Pine Script syntax adaptations supported by the platform. The horizontal bands and multi-period RSI logic help traders analyze trend strength and potential reversal points efficiently.
Note: Ensure Futu Niuniu’s scripting environment supports ta.rma and hline functions for proper execution.
المؤشرات والاستراتيجيات
V10 SCALPER [Basha FX]The Mayfair Fx Scalper V10 By BASHA FX is an advanced trading algorithm designed for intraday scalping with a focus on exhaustion reversal signals. The algorithm combines a powerful Smart Money Concepts (SMC) strategy to identify precise entry and exit points. It integrates customizable features for stop loss, take profit, and the ability to toggle different strategies on and off, allowing users to personalize their trading experience.
Key Features:
Exhaustion Reversal Signals: The algorithm identifies market exhaustion points, generating accurate reversal signals based on price action. This allows for optimal entry points with clear stop loss and take profit levels.
Example of Exhaustion Reversal Signal:
snapshot
Smart Money Concepts (SMC): By incorporating SMC principles, this algorithm enhances its ability to detect market shifts and trends, improving accuracy in entry and exit decisions.
ATR Lines - PipsPhantomThis indicator displays the Current ATR (Average True Range) with two customizable EMA lines to track volatility trends. Users can adjust the EMA periods (default: 20 and 50) and colors. Suitable for Forex, Crypto, Gold, and Silver markets.
Usage:
- Adjust EMA periods for faster or slower trend analysis.
- Use on any timeframe to monitor volatility.
ATR Table - PipsPhantom - KhoursandDisplays a customizable table of ATR values across multiple timeframes (Live, 1m, 5m, 15m, 1H, 4H, 1D, 1W) with TP/SL levels.
Features:
- Adjustable table position (top/middle/bottom, left/center/right).
- Custom text colors for 5m and 1H timeframes.
- Supports Forex, Crypto, Gold, and Silver markets.
Usage: Adjust position, colors, and decimal precision in the settings.
3 Consecutive Inside Bars - RSTInside bars are often used to identify potential consolidation periods or breakout setups.
This will provide tight range for 3 consecutive inside bars.
Remember that inside bar patterns are just one tool, and no indicator is perfect. Always use sound risk management.
Safe day trading(15m)This is a trading indicator exclusively for XRP futures in 2025.
It has an average win rate of over 70%, with a total return of 85.77% from January 1 to March 31, 2025.
(With 10x leverage, that's equivalent to 850%.)
- January 2025: 26.82% return
- February 2025: 16.15% return
- March 2025: 31.53% return
Dynamic EMA ColorEMA 5 with colour, when the price is below then it is red if the price is above then it is green
Balancelink : Partition Function 1.0This script computes the partition function values 𝑝(𝑛) using Euler’s Pentagonal Number Theorem and displays them in a horizontally wrapped table directly on the chart. The partition function is a classic function in number theory that counts the number of ways an integer 𝑛 can be expressed as a sum of positive integers, disregarding the order of the summands.
Key Features
Efficient Calculation:
The script computes 𝑝(𝑛) for all orders from 0 up to a user-defined maximum (set by the "End Order" input). The recursive computation leverages Euler’s Pentagonal Number Theorem, ensuring the function is calculated correctly for each order.
Display Range Selection:
Users can select a specific range of orders (for example, from 𝑛 = 100 to 𝑛 = 200 to display.) This means you can focus on a particular segment of the partition function results without cluttering the chart.
Horizontally Wrapped Table:
The partition values are organized into a clean, horizontal table with a customizable number of columns per row (default is 20). When the number of values exceeds the maximum columns, the table automatically wraps onto a new set of rows for better readability.
Medium Text Size:
The table cells use a medium (normal) text size for easy viewing and clarity.
How to Use
Inputs:
Start Order (n): The starting index from which you want to display the partition function (default is 100).
End Order (n): The ending index up to which the partition function values will be displayed (default is 200).
Max Columns Per Row: Determines how many results are shown per row before wrapping to the next (default is 20).
Calculation:
The script calculates all 𝑝(𝑛) values from 0 up to the specified "End Order". It then extracts and displays only the values in the chosen range.
Visualization:
The computed values are shown in a neatly arranged table at the top right of your TradingView chart, making it simple to scroll through and inspect the partition function values.
Use Cases
Educational & Research:
Ideal for educators and students exploring concepts of integer partitions and number theory.
Data Analysis & Pattern Recognition:
Useful for those interested in the behavior and growth of partition numbers as 𝑛 increases.
CRT-RPSDY*Candle Range Theory (CRT) Indicator with Stop Levels and Trade Management
Overview: This indicator is designed for advanced traders using the Candle Range Theory (CRT) to identify high and low price levels based on a given candle range. It provides a clear visualization of 4H and 1D time frame CRT structures and dynamically adjusts to price movements. The system integrates Stop Levels based on manipulation wicks and offers trade management features, including Stop Loss (SL) levels.
Key Features:
4H and 1D CRT Lines:
The indicator draws CRT levels on the 4-hour (4H) and 1-day (1D) time frames, representing key high and low levels for trade analysis.
Manipulation Wick Stop Levels:
A Stop Level is calculated based on the highest high or lowest low (manipulation wick) of the market. This level is plotted with customizable line thickness and color.
Dynamic Stop Loss Management:
As the price moves, the indicator automatically adjusts the stop levels. The Stop Loss (SL) is dynamically updated to ensure maximum protection as the price action evolves.
Visual Feedback:
The indicator displays RR (Risk/Reward) values at the entry level, showing RR1 and RR2 for position evaluation.
Manual Trade Entry:
Entry models have been removed, allowing the trader to find and set up entry points manually on the chart. The indicator only provides visual reference for trade management once the entry point is identified.
Usage:
Setup: The trader can select the desired timeframes and stop levels through input settings.
Trade Execution: Once a valid entry point is found (manually by the trader), the indicator tracks the price action and updates the stop levels and risk/reward values accordingly.
Stop Levels: Stops are drawn based on the highest and lowest levels of price manipulation wicks in the market, ensuring the trader is protected.
Customization: All graphical elements, including line thickness, color, and text size, are fully customizable.
Conclusion:
This indicator is designed for traders who prefer using Candle Range Theory (CRT) in their strategies and want advanced stop level management with visual feedback to optimize trade entries and exits. It combines CRT analysis with intelligent trade management to offer powerful insights for precision trading.
冠冠專用策略會在 K、D 同時從 20 以下突破 時做多。
在 K、D 同時從 80 跌破 時平倉。
包含圖表上 KD 線條與超買/超賣水平線顯示
The strategy enters a long position when both K and D lines cross above 20 from below.
It exits the position when both K and D lines cross below 80 from above.
The chart also displays K and D lines, along with overbought and oversold level lines for visual reference.
VWAP Bounce Strategy - Modular (Improved)📘 VWAP Bounce Strategy – Technical Documentation
🧠 Overview
The VWAP Bounce Strategy is an intraday and scalping-ready Pine Script strategy that identifies long and short trade setups based on how price interacts with the Volume Weighted Average Price (VWAP). This strategy helps capture institutional-grade bounce entries using a blend of VWAP, RSI momentum, EMA trend, and candle pattern confirmation.
⚙️ Inputs and Settings
Input Name Description Default
Use Session VWAP If enabled, uses TradingView's session VWAP (ta.vwap). If disabled, uses a VWMA with 20-periods. true
EMA Length Length of the Exponential Moving Average used for exits and trend tracking. 20
RSI Length Length of the RSI indicator used for momentum confirmation. 14
RSI Overbought Level Threshold above which RSI is considered overbought. Not used for signals here but modifiable. 70
RSI Oversold Level Threshold below which RSI is considered oversold. Not used directly. 30
VWAP Touch Tolerance Acceptable deviation (%) to consider price as having touched VWAP. 1.01
📈 Entry Conditions
🔹 Long Entry (BUY)
Triggered when:
Session is active (VWAP has a valid value).
Price is above VWAP.
The low of the candle is within 1% of VWAP (tolerance-adjustable).
Candle is bullish (close > open, and previous candle was bearish).
RSI > 50, indicating upward momentum.
🔸 Short Entry (SELL)
Triggered when:
Session is active.
Price is below VWAP.
The high of the candle is within 1% of VWAP.
Candle is bearish (close < open, and previous candle was bullish).
RSI < 50, indicating downward momentum.
❌ Exit Conditions
Trades are exited when:
A long trade exits when price crosses below the EMA.
A short trade exits when price crosses above the EMA.
📊 Chart Display
Blue line = EMA (based on your input length).
Green upward label = Buy signal.
Red downward label = Sell signal.
RSI is calculated but not shown on the chart (used internally).
🧩 Strategy Logic (Modularity)
This strategy is modularly designed so you can:
Easily plug in stop-loss/take-profit logic.
Add volume filters, breakout confirmation, or session time filters.
Adjust entry/exit triggers independently.
📌 Each logic section is clearly labeled in the script for easy editing.
🛠️ How to Use This Strategy
✅ Step-by-Step:
Copy the full Pine Script code into TradingView’s Pine Script Editor.
Save and Add to Chart as a Strategy (not as an indicator).
Adjust input parameters (VWAP tolerance, RSI/EMA length) to match your asset and timeframe.
Run backtests across your desired timeframe (1m–15m recommended).
Observe trade signals and inspect entries using TradingView's strategy tester.
🧪 Recommended Use Cases
Use Case Recommended Setting
Scalping 1–5 min chart, lower VWAP tolerance (e.g., 1.005)
Intraday 5–15 min chart, default tolerance
Swing (Light) 30–60 min, increase EMA length, optional SL/TP filter
🧰 Customization Ideas
Add stop loss / take profit using strategy.exit().
Integrate volume spike confirmation.
Add a time filter (e.g., avoid pre-market or lunch hours).
Incorporate ADX or MACD for additional trend validation.
Show RSI on subchart if needed using a separate indicator.
🚨 Warnings & Notes
Best tested during market hours (VWAP won’t behave properly in after-hours).
Not optimized for assets without strong intraday volume (e.g., penny stocks).
Always backtest before going live, and apply additional risk management rules.
use it at your own risk, the information provided is for informational purposes only.
Multi-Timeframe RSI 50 Tablersi momentum indicator ... best use for clean chart and multi time frame with live and last closing.
Volume & ATR Projection Tracker w/ Table & Alerts# README: Volume & ATR Projection Tracker (Pine Script Indicator)
## Overview
This Pine Script indicator for TradingView is designed to help traders analyze volume activity and potential short-term price volatility. It plots volume bars, calculates a moving average of volume, highlights unusual volume spikes (differentiating between up and down bars), and projects potential price ranges for upcoming hours based on Average True Range (ATR). It also provides a status table and configurable alerts.
**Disclaimer:** This indicator provides informational analysis and projections based on historical data and volatility. It does **not** provide guaranteed price predictions or financial advice. Trading involves substantial risk. Always do your own research and consult with a qualified financial advisor.
## Features
* **Volume Plotting:** Displays volume as a histogram in a separate panel.
* **Volume Moving Average:** Calculates and plots a configurable MA (SMA, EMA, WMA) of volume.
* **Unusual Volume Detection:** Identifies bars where volume significantly exceeds its moving average (based on a user-defined multiplier).
* **Differentiated Volume Analysis:**
* Colors volume bars differently based on whether unusual volume occurred on an up-bar (Close > Open), down-bar (Close < Open), or neutral bar (Close == Open).
* Plots different spike markers (up/down triangles) on the price chart for unusual volume on up/down bars.
* **ATR Volatility Projections:**
* Calculates the Average True Range (ATR) as a measure of recent volatility.
* Projects a potential price range (Close +/- ATR \* Multiplier) for a specified number of future hours.
* Plots these ranges as dashed lines and labels on the price chart.
* **Important:** These are volatility-based *ranges*, not directional predictions.
* **Status Table:** Displays a concise summary table on the chart including:
* Current Volume Status (Normal, High (Up), High (Down), High (Neut)).
* Current Volume compared to its MA (as a percentage).
* The projected ATR range for the next hour.
* **Configurable Alerts:** Provides alert conditions for:
* Unusual Volume detection.
* Volume crossing above its MA.
* Volume crossing below its MA.
* **Customizable Inputs:** Allows users to configure MA settings, volume threshold, ATR settings, projection hours, trading session times, and colors.
## How it Works
1. **Volume Analysis:**
* Calculates a Moving Average (SMA, EMA, or WMA) of the volume over a specified length (`MA Length`).
* Compares the current bar's volume to this MA. If `Volume > MA * Unusual Vol Multiplier`, the volume is flagged as "unusual".
* Checks if the unusual volume occurred on a bar where `Close > Open` (Up), `Close < Open` (Down), or `Close == Open` (Neutral).
* Colors the volume bars and plots spike markers based on this differentiated status.
2. **ATR Projections:**
* Calculates the ATR over a specified length (`ATR Length`).
* At the start of each hour *within the defined Trading Session*:
* Calculates an upper projection level: `Current Close + (Current ATR * ATR Multiplier)`.
* Calculates a lower projection level: `Current Close - (Current ATR * ATR Multiplier)`.
* Stores these levels for the specified number of `Projection Hours Ahead`.
* Draws dashed lines and labels on the price chart representing these hourly ranges for the future, but only if they are within TradingView's 500-bar drawing limit from the current bar.
3. **Status Table:**
* Updates on the last bar of the chart.
* Displays the current differentiated volume status, the percentage difference between current volume and its MA, and the calculated ATR range for the *next* hour.
4. **Alerts:**
* Uses `alertcondition()` to create trigger conditions based on `unusualVolumeBase`, `vol_cross_above`, and `vol_cross_below`. Users can create alerts based on these conditions in the TradingView UI.
## Input Settings
The indicator settings are organized into groups:
**Group 1: Volume Analysis Settings**
* **MA Length:** (Default: 20) Number of bars for the volume MA calculation.
* **MA Type:** (Default: SMA) Type of moving average (SMA, EMA, WMA).
* **Unusual Vol Multiplier:** (Default: 2.0) Threshold for detecting unusual volume (Volume > MA * Multiplier).
* **Show Volume Spikes:** (Default: true) Toggle visibility of triangle markers on the price chart.
* **Show Volume MA:** (Default: true) Toggle visibility of the MA line on the volume panel.
**Group 2: ATR Projection Settings**
* **ATR Length:** (Default: 14) Number of bars for the ATR calculation.
* **ATR Multiplier:** (Default: 1.5) Factor applied to ATR to determine the projection range width. Higher values create wider ranges.
* **Projection Hours Ahead:** (Default: 8) How many hours forward to calculate and display projections.
* **Show Projections:** (Default: true) Toggle visibility of projection lines and labels on the price chart.
**Group 3: Session & Colors**
* **Trading Session:** (Default: "0930-1600") Defines the hours during which projections are calculated. **Crucial:** Format is HHMM-HHMM based on the exchange timezone (see Timezone Note below).
* **Normal Vol Color:** (Default: blue) Color for volume bars when volume is not unusual.
* **Volume MA Color:** (Default: yellow) Color of the volume MA line.
* **Unusual Vol (Up Bar) Color:** (Default: light green) Color for unusual volume bars where Close > Open.
* **Unusual Vol (Down Bar) Color:** (Default: light red) Color for unusual volume bars where Close < Open.
* **Unusual Vol (Neutral Bar) Color:** (Default: light gray) Color for unusual volume bars where Close == Open.
* **Projection Line Color:** (Default: orange) Color of the dashed projection range lines.
* **Proj Label Bg Color:** (Default: semi-transparent gray) Background color for projection labels.
* **Proj Label Text Color:** (Default: white) Text color for projection labels.
## Timezone Note
The `Trading Session` input relies on a timezone setting within the `is_in_session` function in the code (currently hardcoded to `"UTC-4"` as an example for US Eastern Time). **You may need to edit the script code** to change this timezone string (e.g., `"America/New_York"`, `"Europe/London"`, `"Asia/Tokyo"`) to match the exchange time of the instrument you are trading. Consult Pine Script documentation for valid timezone strings.
## Limitations
* **Drawing Limit:** TradingView limits drawing objects (lines, labels) to a maximum of ~500 bars into the future from the current bar. On lower timeframes, the script automatically stops drawing projections that exceed this limit.
* **Projection vs. Prediction:** The ATR ranges are based on past volatility and are *not* price predictions. The market can easily move outside these projected ranges.
* **Alerts:** Alerts for price crossing the projected future levels are not implemented due to technical complexity in Pine Script.
## Disclaimer
Trading financial markets involves substantial risk of loss and is not suitable for all investors. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, investment advice, trading advice, or any other sort of advice. You should not make any investment decision based solely on the information provided by this indicator. Past performance is not indicative of future results.
Risk-On / Risk-Off MeterThe risk on/off meter helps you assess the market's overall risk sentiment.
Try using it on the VIX daily chart.
The calculation is based on the following values:
Risk-On Assets
spx dax nas100 copper oil audusd nzdusd btc audjpy
Risk-Off Assets
gold usdjpy usdchf vix us02y us10y us30y dxy
Below a calculated value of 25, Risk Of is displayed as being above a value of 65 Risk On. The neutral market phase is in between. The indicator is used purely as a market sentiment indicator and does not provide any trading recommendations.
Yield Curve 1.2Yield Curve is a macroeconomic analysis tool designed to visualize and interpret changes in the shape of government bond yield curves across major economies.
Use it in any 1H Chart
It tracks the difference between 10-year and 2-year government bond yields for key countries (e.g. US, EUR, JPY, AUD, GBP, etc.) and compares the current yield levels to their values recorded every Monday at 2:00 UTC. Based on this comparison, the indicator categorizes the yield curve movement into common market regimes such as:
Bull Flattener
Bear Steepener
Parallel Shift
and others.
Each regime gives insight into how markets are adjusting their expectations for future interest rates, economic growth, or central bank policy.
The indicator presents this analysis in a clear table format, showing:
Current and Monday yields
Yield changes (in basis points)
Yield spread (10Y - 2Y)
Detected regime type
A simplified grade and brief explanation for each case
Color coding is used throughout the table to help visually distinguish between steepening, flattening, and parallel shift scenarios.
BySq - Market PsychologyThe script I provided is a Market Psychology Index indicator for TradingView, which focuses on three key psychological market phases:
FOMO (Fear of Missing Out)
Panic Selling
Reversal
This indicator uses volume, price changes, and specific time periods to gauge market sentiment. Let me break it down:
1. Input Parameters:
FOMO Period: Defines how many bars (candles) the FOMO index will consider for its calculation.
Panic Period: Defines the period to evaluate Panic Selling.
Reversal Period: Defines the period to evaluate potential price reversals.
You can adjust these periods based on your analysis preferences. The default for each period is 14.
2. FOMO Index:
The FOMO Index aims to capture the "fear of missing out" behavior in the market.
It uses volume and price change:
Volume is compared to the Simple Moving Average (SMA) of volume over the specified period.
Price change is calculated as the percentage change in price compared to the previous bar.
If both volume and price change indicate strong upward movement, the FOMO index spikes.
3. Panic Selling Index:
The Panic Selling Index captures when traders are selling out of fear, often in a rapid or irrational way.
Similar to the FOMO Index, it considers volume and price change:
It uses volume and compares it to the SMA of volume for the panic period.
Price change is negative, meaning it considers only price drops.
When there is high volume coupled with significant price drops, it signals panic selling.
4. Reversal Index:
The Reversal Index aims to detect potential trend reversals in the market.
This index also considers volume and price change:
It focuses on upward price movement and compares volume to its SMA.
If there’s strong upward price movement along with increasing volume, it signals the possibility of a price reversal.
5. Graphical Output:
Histograms are drawn on the chart for each of the three indices:
FOMO is shown in green (indicating the presence of FOMO) and red (when the index is low).
Panic Selling is shown in orange.
Reversal is shown in purple.
The Zero Line (horizontal dotted line) helps identify when any of the indices is positive or negative.
6. Labels:
Labels for each index are shown on the chart at the relevant bar when the index spikes.
FOMO is labeled "FOMO" in green when it spikes.
Panic Selling is labeled "Panic Selling" in orange when it spikes.
Reversal is labeled "Reversal" in purple when it spikes.
Additionally, period labels show above the chart, indicating the specific periods (FOMO, Panic, and Reversal periods) currently being applied. This provides clarity on what time frame each index is analyzing.
7. How to Use:
FOMO: High values may indicate that traders are buying out of fear of missing out on a rally, suggesting a potentially overheated market.
Panic Selling: High values could suggest irrational selling behavior or capitulation, potentially marking the bottom of a downtrend.
Reversal: High values signal the potential for a market reversal, where the price could change direction due to increased volume and upward movement.
8. Visual Appearance:
The indicator’s histograms change colors based on the level of market sentiment detected. The color-coded approach provides an easy-to-read visual representation of different psychological phases in the market.
The horizontal zero line allows easy differentiation between positive and negative values.
Summary:
This script combines the psychology of the market (FOMO, Panic Selling, and Reversal) into a set of indicators that help traders identify potential turning points or emotional states in the market. By focusing on volume and price change, the script attempts to give a clear picture of market sentiment and possible future movements.
INVERSION Radar with ArrowWith this indicator, you will easily be able to predict a trend reversal. It does all the work for you, and you will receive an alert on when to invest with a RED or GREEN arrow.
WaveTrend Calculation: Utilizes exponential moving averages and absolute deviation on 4-hour and 8-hour timeframes. Lips Line: Simple moving average (SMA) over 280 days on the daily timeframe. Overbought and Oversold Conditions: Detects if WT1 exceeds overbought levels (65) or falls below oversold levels (-65) on 4-hour and 8-hour timeframes. Price Position Relative to Lips Line: Determines whether the closing price is above or below the Lips line on the daily timeframe.
- TRY IT: andrearussoswipeup.gumroad.com/
Trading Signals:
- Buy Signal: Green triangle below the bar when the price is above the Lips line and WT1 is in oversold condition.
- Sell Signal: Red triangle above the bar when the price is below the Lips line and WT1 is in overbought condition.
Multi-Timeframe Alerts:
- Buy Signal Alert: WT1 below -65 on 4-hour and 8-hour timeframes, price above the Lips line.
- Sell Signal Alert: WT1 above 65 on 4-hour and 8-hour timeframes, price below the Lips line.
Latest Enhancements:
- Precise identification of overbought/oversold zones.
- Break point detection.
- Highlighting of entry points.
- Visualization of the 8-period SMA across all timeframes.
- Improved alert conditions with red or green circles.
Size CalculatorOverview:
Size Calculator is a risk management tool that helps traders position themselves intelligently by calculating optimal position size, stop loss, and take profit levels based on account capital, ATR volatility, and personal risk tolerance. It takes the guesswork out of sizing so you can focus on execution.
Features:
✅ Risk-based position sizing
✅ ATR-based stop loss & take profit levels
✅ Dynamic leverage estimation
✅ Support for long and short positions
✅ Visual display of key levels and metrics via table
✅ Works across any timeframe with locked timeframe support
How It Works:
This tool computes the ideal position size as a % of account capital based on how much you're willing to risk per trade and how far your stop loss is (in ATR units). It calculates corresponding stop loss and take profit prices, and visually plots them along with a floating table of metrics. You can lock the timeframe used for ATR and price, keeping your risk logic stable even when changing chart views.
Customizable Inputs:
Account capital and risk tolerance
ATR-based stop loss & take profit multiples
Trade direction (Long or Short)
ATR period and locked timeframe
Optional detailed metrics display