BankNifty-15min Intraday-High Risk-R-AlgoAI-Final Copy// This script is for educational and informational purposes only.
// It does not constitute financial or investment advice.
// Trading involves substantial risk and may not be suitable for all investors.
// Always do your own research or consult with a licensed financial advisor
// before making any trading or investment decisions.
// The author is not responsible for any losses incurred using this script.
⚡ Overview:
This script is a technical indicator designed for intraday trading on the Bank Nifty future chart using the 15-minute timeframe. It uses a combination of normalized buy and sell pressure along with a Hull Moving Average (HMA) smoothing method and volume-based normalization to detect potential buy and sell signals.
💡 Main Concept:
Buy and Sell Pressure Calculation:
The script calculates:
bp (Buy Pressure): close - low
sp (Sell Pressure): high - close
These values are smoothed using a custom Hull Moving Average (HMA) function, designed to reduce lag and react quicker to price changes compared to traditional moving averages.
📊 Normalized Signals:
Buy and Sell pressures are normalized against their HMA smoothed values.
Volume normalization is also applied to adjust for the effect of market activity on the pressure signals.
📌 Signal Logic:
A Buy Signal is generated when:
Only one signal per day is allowed to avoid signal spamming.
A Sell Signal is generated under the opposite conditions:
One sell signal per day.
🧾 Visual Output:
When a signal is triggered, the script:
Draws a horizontal line at the signal price (with labels like BUY @ or SELL @).
Plots triangle markers on the chart to highlight buy (green) or sell (red) signals.
Deletes or extends lines at the end of each day to maintain visual clarity.
📈 Additional Features:
EMA 50 & EMA 200:
Plots two common Exponential Moving Averages (50-period and 200-period) for trend visualization.
⚠️ Important Notes:
This script is meant for educational and research purposes only.
It is designed for high-risk intraday trading.
Signals are based on historical behavior and should not be treated as financial advice.
No stop-loss or take-profit logic is included — traders should manage risk independently.
✅ Summary:
This indicator offers a simple visual and quantitative approach to spot potential intraday turning points for Bank Nifty future on a 15-minute chart, with clear buy and sell markers. It combines volume, price pressure, and moving average smoothing to filter out random price movements.
지표 및 전략
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.
SR Intensity CandleThis is a very simple script intended to find just what the title says, "Intensity Candles" is what i am calling them. A bullish intensity candle is taking the low of the previous candle and the close is above the previous candle high. Bearish intensity candle is the opposite, a candle that takes the high of the previous candle and the close is below the low of the previous candle.
Alternatively, if a "bullish" intensity candle is the mitigated and price pushes below, you can expect a back test short of the "bullish" intensity candle. They will act as SR zones for the future price action.
The BEST and most ideal spot for the intensity candles to happen is the see a bullish candle at the low of a move and a bearish candle at the highs indicating strong movement for reversal.
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.
2x Marubozu Signal (Wick ≤ 30%)The 2x Marubozu Signal (Wick ≤ 30%) is a powerful, momentum-based price action indicator designed to catch strong bullish or bearish trends early. It scans for two consecutive Marubozu-style candles (where wicks are ≤ 30% of the total candle size) to identify moments of solid conviction from buyers or sellers.
This indicator detects:
Bullish Signal: Two green candles in a row, both with tiny wicks (≤ 30% of total candle size), indicating strong buying pressure and momentum.
Bearish Signal: Two red candles in a row, both with tiny wicks (≤ 30%), signaling dominant selling pressure.
The signal appears on the second candle — confirming the continuation move after initial momentum.
Key Features:
🔍 Wick Ratio Filter: Only triggers if both candles have upper and lower wicks less than or equal to 30% of the full candle range (High - Low).
📈 Visual Signal Arrows:
Green Up Arrow on bullish 2x Marubozu
Red Down Arrow on bearish 2x Marubozu
⚙️ Clean and Lightweight: No lag, perfect for intraday, swing, or trend-based strategies.
🎯 Use Case:
Trend Confirmation: Enter after the second strong Marubozu to ride breakout moves.
Momentum Filter: Combine with your existing strategy to filter only high-conviction price action setups.
Reversal Spotting: Catch reversals at key support/resistance when Marubozus form.
🧠 Pro Tips:
Works best on 15m–1D charts, especially after consolidation.
Combine with support/resistance, volume, or EMA/SMA zones for confirmation.
Avoid overtrading in choppy zones—this is a momentum-only tool.
🚀 Who’s It For?
Price Action Traders
Scalpers & Swing Traders
Trend-followers
Crypto, Forex, Stocks
📌 Author Note:
This indicator was crafted for traders who trust pure candle structure over lagging indicators. If you respect momentum, this is your edge.
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.
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.
7-Day Narrow Range (NR7)NR7
NR7 stands for "Narrow Range 7." It identifies a day (or bar) with the narrowest trading range of the past seven days.
Traders often watch for NR7 patterns as they can indicate a period of consolidation before a potential breakout. A narrow range suggests that volatility is low, and a breakout could lead to a significant price move.
NR7 signals are often used in conjunction with other technical indicators and analysis techniques.
Remember that NR7 is just one tool, and no indicator is perfect. Always use sound risk management.
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.
Rocket Engulfing Candles🚀 Rocket Engulfing Candles — Bullish & Bearish Detection
This script highlights powerful engulfing candles that resemble rockets — perfect for identifying potential reversals or momentum shifts.
Bullish Rocket (Green Triangle Up)
Fully engulfs the previous candle (higher high, lower low)
Closes higher (bullish body)
Has a longer lower wick (blast-off tail)
Bearish Rocket (Red Triangle Down)
Fully engulfs the previous candle
Closes lower (bearish body)
Has a longer upper wick (crash tail)
These patterns suggest strong buying/selling pressure with possible trend reversals. Ideal for traders looking to spot high-impact candle formations with a visual edge.
ICT Liquidity Sweep MAX RETRI (ALERT)Strategy Description: SMC + ICT Reversal Sniper | 5-Min | R2 TP
This strategy applies Smart Money Concepts (SMC) and ICT methodology to identify high-probability reversal trades using a clean, rule-based system designed for the 5-minute timeframe.
⸻
Core Logic:
• Liquidity Sweep: Identifies stop hunts beyond recent swing highs/lows using a configurable lookback window.
• Break of Structure (BOS): Validates a directional shift after the sweep.
• Fixed R2 Risk-Reward: Entry is followed by a 2:1 take-profit target. Stop loss is set at the sweep candle’s high/low.
• No Entry Between 8 PM–12 AM NY Time: Avoids the manipulation-prone and illiquid zone.
• Discreet SL Handling: SL hits close trades silently — no labels or visuals.
⸻
Entry Precision & Timing Notes:
• The strategy may occasionally fire before a confirmed liquidity sweep — this is expected. If a sweep occurs later, you may still re-enter toward equilibrium, with take profit also targeted at equilibrium.
• Alerts or trades that trigger near 9:30 AM NY often align with real direction, but this time can be volatile.
• For more reliable and lower-risk entries, focus on the 1:30 PM to 2:00 PM silver bullet window, which tends to produce cleaner setups with more favorable flow. 🖤
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.
PineVersatilitiesBundleLibrary "PineVersatilitiesBundle"
Versatilities (aka, Versatile Utilities) Pack includes:
- Eighteen Price Variants bundled in a Map,
- Nine Smoothing Variants bundled in a Map,
- Visualisations that indicate on both - pane and chart.
price_variants(lb)
Computes Several different averages using current and previous OHLC values
Parameters:
lb (int) : - lookback distance for combining OHLC values from the past with the present
Returns: Map of Eighteen Uncommon Combinations of single and two-bar OHLC averages (rounded-to-mintick)
dynamic_MA(masrc, malen, lsmaoff, almasgm, almaoff, almaflr)
Dynamically computes Eight different MAs and returns a Map containing Nine MAs
Parameters:
masrc (float) : source series to compute MA
malen (simple int) : lookback distance for MA
lsmaoff (simple int) : optional LSMA offset - default is 0
almasgm (simple float) : optional ALMA sigma - default is 5
almaoff (simple float) : optional ALMA offset - default is 0.5
almaflr (simple bool) : optional ALMA floor flag - default is false
Returns: Map of MAs - 'ALMA', 'EMA', 'HMA', 'LSMA', 'RMA', 'SMA', 'SWMA', 'WMA', 'ALL' (rounded-to-mintick)
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy
🧭 Overview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
🎯 Strategy Objectives
Enter trades aligned with the prevailing long-term trend
Exit trades on confirmed momentum reversals
Avoid false signals using session timing and volatility filters
Apply structured risk management with automatic TP, SL, and trailing stops
⚙️ Key Features
Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
Dual-filter logic using a custom oscillator and moving averages
Session and volatility filters to eliminate low-quality setups
Trailing stop, configurable Take Profit / Stop Loss logic
“In-wave flag” prevents overtrading within the same trend wave
Visual clarity with color-shifting candles and entry/exit markers
📈 Trading Rules
✅ Long Entry Conditions:
Price is above the selected MA
Oscillator is positive and rising
200-period EMA indicates an uptrend
ATR exceeds its median value (sufficient volatility)
Entry occurs between 09:00–17:00 (exchange time)
Not currently in an active wave
🔻 Short Entry Conditions:
Price is below the selected MA
Oscillator is negative and falling
200-period EMA indicates a downtrend
All other long-entry conditions are inverted
❌ Exit Conditions:
Take Profit or Stop Loss is hit
Opposing signals from oscillator and MA
Trailing stop is triggered
🛡️ Risk Management Parameters
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pips
Risk per Trade: 2% of account equity (adjustable)
Total Trades: 224
Backtest Period: May 24, 2016 — April 7, 2025
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
🔧 Trading Parameters & Filters
Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
Volatility Filter: ATR must be above its median value
Trend Filter: Long-term 200-period EMA
📊 Technical Settings
Moving Average
Type: SMA
Length: 40
Source: hl2
Oscillator
Length: 15
Threshold: 0.5
Risk Management
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
👁️ Visual Support
MA and oscillator color changes indicate directional bias
Clear chart markers show entry and exit points
Trailing stops and risk controls are transparently managed
🚀 Strategy Improvements & Uniqueness
In-wave flag avoids repeated entries within the same trend phase
Filtering based on time, volatility, and trend ensures higher-quality trades
Dynamic high/low tracking allows precise trailing stop placement
Fully rule-based execution reduces emotional decision-making
💡 Inspirations & Attribution
This strategy is inspired by the excellent concept from:
ChartPrime – “Moving Average Shift”
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:
📌 Summary
The Moving Average Shift WaveTrend Strategy offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
⚠️ Disclaimer
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.
Visualisation tendancesThis script allows you to visualize the current trend of a financial asset.
It has two colors:
- Green for bullish phases
- Red for bearish phases
This allows you to instantly position yourself in the direction of the trend.
It also integrates Bollinger Bands, a volatility indicator.
This allows you to display two different indicators in a single indicator.
RTH and ETH RangesKey Functions :
Visualizes Regular Trading Hours (RTH) and Extended Trading Hours (ETH) price ranges
Tracks session highs, lows, and 50% levels where significant market reactions occur
Detects breakouts beyond previous session extremes
Trading Applications :
Exposes potential liquidity raids at session boundaries where smart money targets stop orders
Identifies critical price thresholds where institutional activity concentrates
Highlights divergences between RTH and ETH behavior that precede directional moves
Provides measurement of session volatility differences
Maps key price levels for objective entry and exit parameters
Reveals market dynamics at session transitions where institutional positioning changes
Hyperion Crypto Matrix: Ultimate Market Sentinel
// 🔰 HYPERION CRYPTO MATRIX: ULTIMATE MARKET SENTINEL
// ─────────────────────────────────────────────────────────────────────────────
/*
The **Hyperion Crypto Matrix** is an advanced crypto trend-following strategy built from the ground up for precision, not just performance. Unlike traditional “mashups” of indicators, this system was **engineered around synergy**—each module is purpose-driven and non-redundant, delivering fast, filtered, high-probability signals in volatile crypto markets.
─────────────────────────────────────────────────────────────
📌 STRATEGY PURPOSE
─────────────────────────────────────────────────────────────
Hyperion is built for **1-hour crypto trading** and optimizes for:
- High Win Rate
- Early Exits on Trend Weakness
- Partial Position Scaling (TP1/TP2)
- Real-time trade performance tracking
It is ideal for traders who want **real-time trade logic** with:
- No repainting
- No overfitting
- Realistic entry/exit structure
- No same-bar entry & exit (enforces 1-bar delay)
─────────────────────────────────────────────────────────────
🧠 WHAT MAKES IT ORIGINAL
─────────────────────────────────────────────────────────────
Each component is **custom-integrated** with strict role separation:
- **Trend Direction:** Enhanced Wave Oscillator (EWO) with adaptive band filtering
- **Trend Strength Memory:** Relative Momentum Index (RMI) with threshold locking
- **Volume Confirmation:** Historical relative volume spike filter using SMA multiplier
- **Momentum Weakness Exit:** Combined ROC and CCI to detect early reversal before price turns
- **Position Tracking:** TP1 (50% exit), TP2 (100% close) with cooldown to prevent whipsaws
- **Dynamic Dashboard:** Real-time stats including win rate, PnL efficiency, and TP hit status
These aren’t just “plugged in” indicators—they are synchronized to **filter, confirm, and adapt** to price action with timing logic that prevents premature entries or late exits.
─────────────────────────────────────────────────────────────
📊 INDICATOR LOGIC OVERVIEW
─────────────────────────────────────────────────────────────
1. **📈 Enhanced Wave Oscillator (EWO):**
- Calculates the delta between a fast and slow EMA (5 vs. 34 by default)
- Uses a dynamic banding system to detect peaks/troughs and prevent entries during exhaustion
- Filters only active, accelerating trends — reducing false positives
2. **🧠 Relative Momentum Index (RMI):**
- Similar to RSI but with a forward-looking momentum comparison
- Confirms trend *persistence* over time, preventing entries on short-term flips
- Long entries only allowed when RMI > threshold (default 55), short if RMI < 45
3. **🔊 Volume Spike Filter:**
- Uses 20-bar SMA of volume and a multiplier (1.5x default) to detect **relative volume breakouts**
- Prevents trades in low-liquidity environments (e.g., chop, overnight sessions)
4. **📉 Weak Trend Close Logic:**
- Combines Rate of Change (ROC) and Commodity Channel Index (CCI)
- Detects early signs of momentum deterioration, often before the trend visually reverses
- Triggers exit before price falls into sideways zones
5. **🎯 Take Profit System (TP1/TP2):**
- TP1: 50% position closed at +2% (default)
- TP2: Full close at +4% (default)
- Uses `strategy.exit()` with limit orders based on entry price
6. **⏱️ Reentry Cooldown:**
- After TP2 or weak trend exit, system enforces a 1-bar delay before reentry
- Avoids frequent churn in flat or noisy environments
7. **📋 Real-Time Dashboard (Optional):**
- Displays live trade status, PnL metrics, TP1/TP2 hit status, bars since entry, win rate %, and profit factor
- Color-coded background to highlight active trade direction (green for long, red for short)
─────────────────────────────────────────────────────────────
⚙️ HOW TO USE
─────────────────────────────────────────────────────────────
1. Load on a 1H chart of a crypto asset with good liquidity (e.g., BTC, ETH, LINK)
2. Toggle between \"Long Only\", \"Short Only\", or \"Both\" in the settings
3. Use default TP1/TP2 percentages, or tune them for the asset’s volatility
4. Observe trade execution and live stats on the optional dashboard
5. Review the bar coloring for EWO trend bias confirmation
> Stop-loss logic is not included. This strategy assumes exits occur at TP2 or on trend/momentum failure.
─────────────────────────────────────────────────────────────
⚖️ TRADINGVIEW COMPLIANCE & USAGE DISCLAIMER
─────────────────────────────────────────────────────────────
This strategy does **not repaint**, is fully compatible with **TradingView backtesting**, and adheres to all known Pine Script execution rules.
⚠️ **Disclaimer:** This script is for educational purposes only and does not constitute financial advice. Trading cryptocurrencies involves significant risk. Always test strategies on a demo account and consult with a financial advisor before live trading.
─────────────────────────────────────────────────────────────
🧪 CONCLUSION
─────────────────────────────────────────────────────────────
The **Hyperion Crypto Matrix** is not a mashup—it’s a **modular, optimized, logic-driven system** crafted for real-world crypto trading. Every component has been tuned for function, not fluff. Whether you're backtesting or live trading, this system is designed to give you **structured, actionable edge** with live feedback every step of the way.
*/
SL - 4 EMAs, 2 SMAs & Crossover SignalsThis TradingView Pine Script code is built for day traders, especially those trading crypto on a 1‑hour chart. In simple words, the script does the following:
Calculates Moving Averages:
It computes four exponential moving averages (EMAs) and two simple moving averages (SMAs) based on the closing price (or any price you select). Each moving average uses a different time period that you can adjust.
Plots Them on Your Chart:
The EMAs and SMAs are drawn on your chart in different colors and line thicknesses. This helps you quickly see the short-term and long-term trends.
Generates Buy and Sell Signals:
Buy Signal: When the fastest EMA (for example, a 10-period EMA) crosses above a slightly slower EMA (like a 21-period EMA) and the four EMAs are in a bullish order (meaning the fastest is above the next ones), the script will show a "BUY" label on the chart.
Sell Signal: When the fastest EMA crosses below the second fastest EMA and the four EMAs are lined up in a bearish order (the fastest is below the others), it displays a "SELL" label.
In essence, the code is designed to help you spot potential entry and exit points based on the relationships between multiple moving averages, which work as trend indicators. This makes it easier to decide when to trade on your 1‑hour crypto chart.
Dirty Market IndexThis indicator is designed to out an index displaying the level of dirtiness in market.
This level is defined by:
Sum of shadow lengths of last n candles (n is input and user can change it, it's 100 by default)
divided by
Sum of full candle bodies of last n candles (high - low)
This factor indicates how many percents of the market movement has been placed in shadows of candles, the higher this number, the dirtier market would be.
EMA & MA Crossover StrategyGuys, you asked, we did. Strategy for crossing moving averages .
The Moving Average Crossover trading strategy is possibly the most popular
trading strategy in the world of trading. First of them were written in the
middle of XX century, when commodities trading strategies became popular.
This strategy is a good example of so-called traditional strategies.
Traditional strategies are always long or short. That means they are never
out of the market. The concept of having a strategy that is always long or
short may be scary, particularly in today’s market where you don’t know what
is going to happen as far as risk on any one market. But a lot of traders
believe that the concept is still valid, especially for those of traders who
do their own research or their own discretionary trading.
This version uses crossover of moving average and its exponential moving average.
Strategy parameters:
Take Profit % - when it receives the opposite signal
Stop Loss % - when it receives the opposite signal
Current Backtest:
Account: 1000$
Trading size: 0.01
Commission: 0.05%
WARNING:
- For purpose educate only
- This script to change bars colors.
EMA 9/21/50 + VWAP + MACD + RSI Pro [v6]Overview:
A powerful multi-indicator tool combining Exponential Moving Averages (EMA 9, 21, 50), Volume-Weighted Average Price (VWAP), Moving Average Convergence Divergence (MACD), and Relative Strength Index (RSI) into a single, easy-to-read system. Designed for traders who want a clean, all-in-one dashboard for trend analysis, momentum confirmation, and overbought/oversold conditions.
Key Features:
1. Triple EMA System (9, 21, 50)
Identifies short-term and medium-term trends.
Bullish Signal: EMA 9 > EMA 21 > EMA 50 (Green Highlight)
Bearish Signal: EMA 9 < EMA 21 < EMA 50 (Red Highlight)
Helps confirm trend direction and potential reversals.
2. VWAP (Volume-Weighted Average Price)
Tracks intraday fair value price based on volume.
Bullish: Price above VWAP (Green)
Bearish: Price below VWAP (Red)
3. MACD (Standard 12, 26, 9 Settings)
Shows momentum shifts.
Bullish: MACD line > Signal line (Green)
Bearish: MACD line < Signal line (Red)
Histogram confirms strength of momentum.
4. RSI (14-Period Default)
Identifies overbought (>70) and oversold (<30) conditions.
Red: Overbought (Potential Reversal)
Green: Oversold (Potential Bounce)
5. Signal Dashboard (Top-Right Table)
Real-time summary of all indicators in one place.
Color-coded for quick interpretation (Green = Bullish, Red = Bearish).
How to Use This Indicator?
✅ Trend Confirmation:
Trade in the direction of EMA alignment (9 > 21 > 50 for uptrends).
Use VWAP as dynamic support/resistance.
✅ Momentum Entries:
Look for MACD crossovers while RSI is not extreme.
Avoid buying when RSI > 70 or selling when RSI < 30 (unless strong trend).
✅ Mean Reversion:
Fade extreme RSI readings (overbought/oversold) when price is at key levels.
Who Is This For?
✔ Swing Traders – EMA + MACD combo for trend-following.
✔ Day Traders – VWAP + EMA for intraday bias.
✔ RSI Traders – Clear overbought/oversold signals.
Settings Customization:
Adjust EMA lengths, RSI periods, and MACD settings as needed.
Toggle VWAP visibility on/off.
Why Use This Script?
📌 All-in-One: No need for multiple indicators cluttering your chart.
📌 Visual Clarity: Color-coded signals for quick decision-making.
📌 Flexible: Works on any timeframe (1M, 5M, 1H, Daily, etc.).
Install now and enhance your trading strategy with a professional-grade multi-indicator system!
Not a financial advice. Use at your own discretion and always apply risk management