RSI Cross Alert (Overbought/Oversold)Alerts when RSI breaks below 70 and when RSI breach 30 and above
Indicadores e estratégias
Gradient Candles + MACD + EMAs + WMA + EMA CrossGradient candles that change color based on MACD values selected under custom settings. Also display of the moving averages I use the most. EMA and MACD crosses can be displayed or turned off.
Alanna IndicatorThe Alanna Indicator is a sophisticated analysis tool designed to move beyond simple price action and uncover the fundamental drivers behind a stock's behavior. Instead of relying on a single lagging indicator, this script provides a multi-dimensional view of a stock's character by adapting the Nobel prize-winning Fama-French Five-Factor Model and combining it with the power of Momentum.
The core of this indicator is its ability to identify a stock's current "Factor Regime"—whether it is being perceived by the market primarily as a Value, Growth, Momentum, or other type of stock. By detecting shifts between these regimes and confirming them with price momentum, the Alanna Indicator generates high-conviction signals for potential entries and exits.
Volume Scanner (Spikes & Drops) [Context]
💡 In many trading strategies, volume is used as a filter — but not all volume matters.
What really counts are moments when volume suddenly spikes or drops — these are the bars where something important might be happening: a large player enters the market, a fakeout occurs, or a trend shift begins.
🎯 What this indicator does:
This script highlights only the most significant volume anomalies, filtering out the noise and focusing on real movement:
🔺 Green background = Volume Spike (sudden increase)
🔻 Red background = Volume Drop (sudden decrease)
📊 Optional contextual filter:
Enable price context to show signals only when volume shifts occur alongside a breakout of recent high/low.
Fully customizable: control the strength of spikes/drops, the lookback period, and the minimum gap between signals.
📦 Great for:
Adding a clean volume filter to price action strategies
Quickly spotting key volume bars in real time
Works on any timeframe and market (crypto, forex, stocks, indices)
Ultimate Poker Bluff Strategy🎲 Ultimate Poker Bluff Strategy (Intraday Trading)
This strategy integrates multiple sophisticated concepts into a dynamic intraday trading system designed to identify and capitalize on short-term market inefficiencies (fake pumps and fakeouts).
The fake pump indicator can be found here:
📌 Core Concepts & Logic
This TradingView (Pine Script) strategy combines:
Poker principles:
Pot Odds: Ensures a positive risk-reward ratio (at least 2:1).
Bluff Detection: Identifies fake pumps or unnatural price movements using arbitrage detection methods relative to a benchmark (e.g., DXY).
Blackjack "Forbidden Strategy" principles:
Dynamically adjusts the position size based on the profitability of recent trades, scaling up slightly after wins and scaling down after losses.
Devil’s Game (Risk Management):
Implements strict capital protection rules by capping the maximum allowed position size, safeguarding your capital against rare and extreme market events.
⚙️ Detailed Explanation of Parameters
🎛 Strategy Inputs
Basis Risk % per Trade (baseRiskPercent): The baseline percentage of capital risked per trade (default is 1%).
TP ATR Multiplier (atrTPMultiplier = 3.0): Defines the profit target as a multiple of the ATR (Average True Range).
SL ATR Multiplier (atrSLMultiplier = 0.5): Defines the stop-loss level as a multiple of ATR. A tight SL ensures high Reward/Risk.
ATR Length (atrLength = 10): Period for ATR calculation to measure volatility.
Max Position per Trade ($) (maxAbsolutePosition): Maximum allowed position size in USD to protect from catastrophic losses (default is $100,000).
Fake Pump Scale (k) (k = 0.25): Sensitivity setting for detecting unusual price discrepancies (fake pumps).
Benchmark Asset (benchmarkTicker = "DXY"): The asset used as a reference benchmark for arbitrage detection.
📈 Indicators & Calculations
Volatility Measurement (ATR)
Uses the ATR indicator to set dynamic take-profit and stop-loss levels:
Take Profit = current price + (ATR × 3)
Stop Loss = current price − (ATR × 0.5)
Fake Pump Detection (Arbitrage Indicator)
Measures deviations from expected asset price based on a constant relation with a benchmark (e.g., DXY).
Generates EMAs (arb_ema_fast and arb_ema_slow) to detect abnormal short-term movements.
Defines upper and lower thresholds (arb_threshold) to identify potential fake pumps or unsustainable price spikes.
Gamma Stability Check
Ensures stable market conditions by confirming that the difference between fast and slow EMAs (arb_ema_fast and arb_ema_slow) remains small. Trades are entered only during stable conditions to avoid high volatility periods.
🔄 Dynamic Blackjack Position Sizing
Adjusts position sizing dynamically based on previous trade results:
Profitable last trade → Increase risk slightly (up to a cap of 3%).
Losing last trade → Reduce risk to 75% of base risk, enhancing capital protection.
🚨 Entry & Exit Logic
Long Entry Conditions:
Fast EMA crosses above Slow EMA (bullish crossover).
Market is stable (gamma_stable condition true).
Previous candle indicated a downward fake pump (isFakePumpDown ).
Short Entry Conditions:
Fast EMA crosses below Slow EMA (bearish crossover).
Market is stable (gamma_stable condition true).
Previous candle indicated an upward fake pump (isFakePumpUp ).
Risk-Reward Validation: Only enters trades when the risk-reward ratio is at least 2:1.
🛡️ Capital Protection (Devil’s Game Principle)
Ensures no single trade exceeds the absolute maximum allowable position size, providing protection against rare, catastrophic events.
🖥️ Visual Plots for Analysis
Triangles: Visual indications of detected fake pumps:
🔻 Red down arrow: Potential fake upward spike.
🔺 Green up arrow: Potential fake downward spike.
🎯 Strategy Goals & Benefits
Identifies high-probability intraday trades using a rigorous probabilistic framework inspired by professional gambling strategies.
Limits exposure effectively, scaling position size strategically to capitalize on profitable sequences and minimize the impact of losing streaks.
Ensures long-term capital growth with disciplined risk and reward management.
This is just an experiment on how to identify fake moves in the market which works especially in lower timeframe. This is not financial advice.
Trend Impulse Channels (Zeiierman)Jun 8
Support & Resistance Aries
This indicator automatically identifies support and resistance levels based on the highest and lowest closing prices within a configurable period.
How it works:
The user sets a calculation period (default is 20 candles).
The indicator plots:
Green line = Support: lowest closing price within the period.
Red line = Resistance: highest closing price within the period.
Adjustable parameter:
Calculation Period (1 to 200): defines how many candles are used to find the price extremes.
Purpose:
Helps users quickly visualize dynamic support and resistance zones that adjust as price evolves, making it easier to identify areas for potential entries, exits, and stop placements.
Important:
This indicator should not be used as a standalone buy or sell signal, nor as a trend confirmation tool on its own.
It is recommended to use it in combination with other technical analysis tools such as MACD, RSI, Volume, Moving Averages, among others, for a more complete market view.
Disclaimer:
Investing involves financial risk. Be cautious with both profits and losses. Always define a stop loss to avoid larger losses if the trend reverses.
One of the golden rules in trading is: a trader should not lose more than 3% to 5% of their capital per trade. Protecting your capital should always be the priority.
Multiple of Net Asset Value (mNAV)This TradingView indicator calculates and displays the multiple of Net Asset Value (mNAV) for a selected symbol. It uses the asset symbol held, the quantity of assets held, and the number of outstanding shares to compute mNAV per share. The indicator compares the current price to mNAV, showing how many times the asset is trading above or below its mNAV. Users can configure up to four custom mNAV multiples for reference lines, helping to visualize overvaluation or undervaluation relative to mNAV. Ideal for analyzing ETFs, trusts, or crypto funds with transparent holdings.
WVAD with Gap Compensation**Indicator Name:** WVAD with Gap Compensation
**Purpose:** Enhances the classic Williams Vix Fix (WVAD) by incorporating the impact of price gaps (jump ups/downs) in its calculation.
**Key Features:**
1. **Gap Detection:** Automatically identifies significant gaps (default: >0.5% from prior bar's high/low).
2. **Gap Compensation:** Adjusts the WVAD calculation by adding the gap size to the daily price change.
3. **Dynamic Weighting:** Applies a multiplier (1.2x or 1.5x) to the WVAD value on days with medium/large gaps (based on ATR).
4. **Visualization:**
- Plots the enhanced WVAD line (blue) and optionally the original WVAD (gray circles).
- Marks gap events with colored arrows (green ▲ for gap up, red ▼ for gap down) and connects the gap's impact with dashed lines.
- Includes a zero line for reference.
**Use Cases:**
- Gauges the true strength of money flow by accounting for gaps.
- Identifies potential trend shifts around gap events.
- Filters noise by focusing on significant gaps.
**Parameters:**
- `Accumulation Period`: Number of days to sum WVAD (default: 12).
- `Gap Threshold (%)`: Minimum gap size to trigger compensation (default: 0.5%).
- `Show Original WVAD`: Toggles display of the classic WVAD.
**Version:** Pine Script® v6
AshishBediSPLThis tool, called "AshishBediSPL," is a special indicator for traders using TradingView. Its main purpose is to help you track and trade the combined price of a Call and a Put option at the same strike price, a strategy known as a Short Straddle.
What It Does:
Tracks Straddle Prices: You can select a specific Indian index or a stock like Reliance, choose a strike price and expiry date, and the indicator will show you the combined price of that Call and Put option as a single line on your chart.
Calculates Everything for You: You don't need to manually add the prices. The indicator automatically does the math to show you the total premium of the straddle.
Adds Trading Signals: You can turn on various popular trading tools (like VWAP, EMA, Supertrend, etc.). The indicator will then use these tools to automatically show "Buy" and "Sell" signals directly on the chart, helping you decide when to enter or exit a trade.
Customizable: You can choose which trading tools you want to use and adjust their settings to fit your personal trading style.
What is it Used For?
This indicator is specifically for traders who:
Trade a Short Straddle: This is a neutral options strategy where you expect the market to stay in a small range. The indicator helps you monitor the total premium you've collected.
Want to Simplify Analysis: Instead of looking at a Call chart and a Put chart separately, this tool combines them into one easy-to-read chart.
Use Technical Analysis: It helps you apply standard technical indicators directly to the combined premium price, giving you clear signals for your straddle trades.
Fair Value Gap Profiles [AlgoAlpha]🟠 OVERVIEW
This script draws and manages Fair Value Gap (FVG) zones by detecting unfilled gaps in price action and then augmenting them with intra-gap volume profiles from a lower timeframe. It is designed to help traders find potential areas where price may return to fill liquidity voids, and to provide extra detail about volume distribution inside each gap to assess strength and likely mitigation. The script automatically tracks each gap, updates its state over time, and can show which gaps are still unfilled or have been mitigated.
🟠 CONCEPTS
A Fair Value Gap is a zone between candles where no trades occurred, often seen as an inefficiency that price later revisits. The script checks each bar to see if a bullish (low above 2-bars-ago high) or bearish (high below 2-bars-ago low) gap has formed, and measures whether the gap’s size exceeds a threshold defined by a volatility-adjusted multiplier of past gap widths (to only detect significantly large gaps). Once a qualified gap is found, it gets recorded and visualized with a box that can stretch forward in time until filled. To add more context, a mini volume profile is built from a lower timeframe’s price and volume data, showing how volume is distributed inside the gap. The lowest-volume subzone is also highlighted using a sliding window scan method to visualise the true gap (area with least trading activity)
🟠 FEATURES
Visual gap boxes that appear automatically when bullish or bearish fair value gaps are detected on the chart.
Color-coded zones showing bullish gaps in one color and bearish gaps in another so you can easily see which side the gap favors.
Volume profile histograms plotted inside each gap using data from a lower timeframe, helping you see where volume concentrated inside the gap area.
Highlight of the lowest-volume subzone within each gap so you can spot areas price may target when filling the gap.
Dynamic extension of the gap boxes across the chart until price comes back and fills them, marking them as mitigated.
Customizable colors and transparency settings for gap boxes, profiles, and low-volume highlights to match your chart style.
Alerts that notify you when a new gap is created or when price fills an existing gap.
🟠 USAGE
This indicator helps you find and track unfilled price gaps that often act as magnets for price to revisit. You can use it to spot areas where liquidity may rest and plan entries or exits around these zones.
The colored gap boxes show you exactly where a fair value gap starts and ends, so you can anticipate potential pullbacks or continuations when price approaches them.
The intra-gap volume profile lets you gauge whether the gap was created on strong or thin participation, which can help judge how likely it is to be filled. The highlighted lowest-volume subzone shows where price might accelerate once inside the gap.
Traders often look for entries when price returns to a gap, aiming for a reaction or reversal in that area. You can also combine the mitigation alerts with your trade management to track when gaps have been closed and adjust your bias accordingly. Overall, the tool gives a clear visual reference for imbalance zones that can help structure trades around supply and demand dynamics.
EMA Cross by RA4 ema indicator, shows buy sell signal on the cross of ema 1 and ema 2, ema 3 and ema 4 are optional to add, and may be of any length/period.
Pullback Pro Dow Strategy v7 (ADX Filter)
### **Strategy Description (For TradingView)**
#### **Title:** Pullback Pro: Dow Theory & ADX Strategy
---
#### **1. Summary**
This strategy is designed to identify and trade pullbacks within an established trend, based on the core principles of Dow Theory. It uses market structure (pivot highs and lows) to determine the trend direction and an Exponential Moving Average (EMA) to pinpoint pullback entry opportunities.
To enhance trade quality and avoid ranging markets, an ADX (Average Directional Index) filter is integrated to ensure that entries are only taken when the trend has sufficient momentum.
---
#### **2. Core Logic: How It Works**
The strategy's logic is broken down into three main steps:
**Step 1: Trend Determination (Dow Theory)**
* The primary trend is identified by analyzing recent pivot points.
* An **Uptrend** is confirmed when the script detects a pattern of higher highs and higher lows (HH/HL).
* A **Downtrend** is confirmed by a pattern of lower highs and lower lows (LH/LL).
* If neither pattern is present, the strategy considers the market to be in a range and will not seek trades.
**Step 2: Entry Signal (Pullback to EMA)**
* Once a clear trend is established, the strategy waits for a price correction.
* **Long Entry:** In a confirmed uptrend, a long position is initiated when the price pulls back and crosses *under* the specified EMA.
* **Short Entry:** In a confirmed downtrend, a short position is initiated when the price rallies and crosses *over* the EMA.
**Step 3: Confirmation & Risk Management**
* **ADX Filter:** To ensure the trend is strong enough to trade, an entry signal is only validated if the ADX value is above a user-defined threshold (e.g., 25). This helps filter out weak signals during choppy or consolidating markets.
* **Stop Loss:** The initial Stop Loss is automatically and logically placed at the last market structure point:
* For long trades, it's placed at the `lastPivotLow`.
* For short trades, it's placed at the `lastPivotHigh`.
* **Take Profit:** Two Take Profit levels are calculated based on user-defined Risk-to-Reward (R:R) ratios. The strategy allows for partial profit-taking at the first target (TP1), moving the remainder of the position to the second target (TP2).
---
#### **3. Input Settings Explained**
**① Dow Theory Settings**
* **Pivot Lookback Period:** Determines the sensitivity for detecting pivot highs and lows. A smaller number makes it more sensitive to recent price swings; a larger number focuses on more significant, longer-term pivots.
**② Entry Logic (Pullback)**
* **Pullback EMA Length:** Sets the period for the Exponential Moving Average used to identify pullback entries.
**③ Risk & Exit Management**
* **Take Profit 1 R:R:** Sets the Risk-to-Reward ratio for the first take-profit target.
* **Take Profit 1 (%):** The percentage of the position to be closed when TP1 is hit.
* **Take Profit 2 R:R:** Sets the Risk-to-Reward ratio for the final take-profit target.
**④ Filters**
* **Use ADX Trend Filter:** A master switch to enable or disable the ADX filter.
* **ADX Length:** The lookback period for the ADX calculation.
* **ADX Threshold:** The minimum ADX value required to confirm a trade signal. Trades will only be placed if the ADX is above this level.
---
#### **4. Best Practices & Recommendations**
* This is a trend-following system. It is designed to perform best in markets that exhibit clear, sustained trending behavior.
* It may underperform in choppy, sideways, or strongly ranging markets. The ADX filter is designed to help mitigate this, but no filter is perfect.
* **Crucially, you must backtest this strategy thoroughly** on your preferred financial instrument and timeframe before considering any live application.
* Experiment with the `Pivot Lookback Period`, `Pullback EMA Length`, and `ADX Threshold` to optimize performance for a specific market's characteristics.
---
#### **DISCLAIMER**
This script is provided for educational and informational purposes only. It does not constitute financial advice. All trading involves a high level of risk, and past performance is not indicative of future results. You are solely responsible for your own trading decisions. The author assumes no liability for any financial losses you may incur from using this strategy. Always conduct your own research and due diligence.
The Price ModelOpening Range Breakout
Focuses on taking advantage of the New York Opening High volatility
Main goal is to catch simple and straight forward trades with Strict rules
Recommend Targeting 1:1 first, and then setting stop to breakeven after 1:1 is hit
Can use 5 Min ORB 1:1 as a second TP after entering on the prior 1min ORB.
VW Delta DivergenceThis indicator compares multiple Volume Weighted Moving Averages (VWMA) against the VWAP to highlight momentum shifts and potential divergences in price action. It gives traders a unique perspective by measuring volume-sensitive delta values, smoothing optionality, and tracking divergences between price and indicator behavior.
⚙️ How to Use
1. Setup & Interpretation
• Add the indicator to your chart and set your desired VWMA lengths (–). These define how sensitive the deltas are to price and volume fluctuations.
• The indicator plots the average delta between VWMA and VWAP. A positive value indicates that VWMA is above VWAP, suggesting bullish momentum; a negative value suggests bearish sentiment.
2. Visualization Features
• Color-coded average delta line:
• 🟣 Fuchsia when delta is positive (bullish bias)
• 🧊 Aqua when delta is negative (bearish bias)
• Optional histogram mode for visualizing delta strength
• Dynamic opacity scaling helps highlight the intensity of divergence
3. Divergence Detection
• Regular bullish divergence:
• Price forms a lower low
• Average delta forms a higher low
• Regular bearish divergence:
• Price forms a higher high
• Average delta forms a lower high
• These divergences are marked with green ⬆️ and red ⬇️ triangle shapes
4. Additional Momentum Signal
• A 10-period SMA overlays the delta to hint at momentum shifts
• If the SMA crosses the delta, the script triggers an alert condition titled “Momentum Shift Alert”
Contrarian Market Structure BreakMarket Structure Break application was inspired and adapted from Market Structure Oscillator indicator developed by Lux Algo. So much credit to their work.
This indicator pairs nicely with the Contrarian 100 MA and can be located here:
Indicator Description: Contrarian Market Structure BreakOverview
The "Contrarian Market Structure Break" indicator is a versatile tool tailored for traders seeking to identify potential reversal opportunities by analyzing market structure across multiple timeframes. Built on Institutional Concepts of Structure (ICT), this indicator detects Break of Structure (BOS) and Change of Character (CHoCH) patterns across short-term, intermediate-term, and long-term swings, plotting them with customizable lines and labels. It generates contrarian buy and sell signals when price breaks key swing levels, with a unique "Blue Dot Tracker" to monitor consecutive buy signals for trend confirmation. Optimized for the daily timeframe, this indicator is adaptable to other timeframes with proper testing, making it ideal for traders of forex, stocks, or cryptocurrencies.
How It Works
The indicator combines three key components to provide a comprehensive view of market dynamics: Multi-Timeframe Market Structure Analysis: It identifies swing highs and lows across short-term, intermediate-term, and long-term periods, plotting BOS (continuation) and CHoCH (reversal) events with customizable line styles and labels.
Contrarian Signal Generation: Buy and sell signals are triggered when the price crosses below swing lows (buy) or above swing highs (sell), indicating potential reversals in overextended markets.
Blue Dot Tracker: A unique feature that counts consecutive buy signals ("blue dots") and highlights a "Hold Investment" state with a yellow background when three or more buy signals occur, suggesting a potential trend continuation.
Signals are visualized as small circles below (buy) or above (sell) price bars, and a table in the bottom-right corner displays the blue dot count and recommended action (Hold or Flip Investment), enhancing decision-making clarity.
Mathematical Concepts Swing Detection: The indicator identifies swing highs and lows by comparing price patterns over three bars, ensuring robust detection of pivot points. A swing high occurs when the middle bar’s high is higher than the surrounding bars, and a swing low occurs when the middle bar’s low is lower.
Market Structure Logic: BOS is detected when the price breaks a prior swing high (bullish) or low (bearish) in the direction of the current trend, while CHoCH signals a potential reversal when the price breaks a swing level against the trend. These are calculated across three timeframes for a multi-dimensional perspective.
Blue Dot Tracker: This feature counts consecutive buy signals and tracks the entry price. If three or more buy signals occur without a sell signal, the indicator enters a "Hold Investment" state, marked by a yellow background, until the price exceeds the entry price or a sell signal occurs.
Entry and Exit Rules Buy Signal (Blue Dot Below Bar): Triggered when the closing price crosses below a swing low on either the intermediate-term or long-term timeframe, suggesting an oversold condition and potential reversal upward. Short-term signals can be enabled but are disabled by default to reduce noise.
Sell Signal (White Dot Above Bar): Triggered when the closing price crosses above a swing high on either the intermediate-term or long-term timeframe, indicating an overbought condition and potential reversal downward.
Blue Dot Tracker Logic: After a buy signal, the indicator increments a blue dot counter and records the entry price. If three or more consecutive buy signals occur (blueDotCount ≥ 3), the indicator enters a "Hold Investment" state, highlighted with a yellow background, suggesting a potential trend continuation. The "Hold Investment" state ends when the price exceeds the entry price or a sell signal occurs, resetting the counter.
Exit Rules: Traders can exit buy positions when a sell signal appears, the price exceeds the entry price during a "Hold Investment" state, or based on additional confirmation from BOS/CHoCH patterns or other technical analysis tools. Always use proper risk management.
Recommended Usage
The indicator is optimized for the daily timeframe, where it effectively captures significant reversal and continuation patterns in trending or ranging markets. It can be adapted to other timeframes (e.g., 1H, 4H, 15M) with careful testing of settings, particularly enabling/disabling short-term structure analysis to suit market conditions. Backtesting is recommended to optimize performance for your chosen asset and timeframe.
Customization Options Market Structure Display: Toggle short-term, intermediate-term, and long-term structures on or off, with customizable line styles (solid, dashed, dotted) and colors for bullish and bearish breaks.
Labels: Enable or disable BOS/CHoCH labels for each timeframe to reduce chart clutter.
Signal Visibility: Hide buy/sell signals if desired for a cleaner chart.
Blue Dot Tracker: Monitor the blue dot count and action (Hold or Flip Investment) via the table display, which is fully customizable in terms of position and appearance.
Why Use This Indicator?
The "Contrarian Market Structure Break" indicator offers a robust framework for identifying high-probability reversal and continuation setups using ICT principles. Its multi-timeframe analysis, clear signal visualization, and innovative Blue Dot Tracker provide traders with actionable insights into market dynamics. Whether you're a swing trader or a day trader, this indicator’s flexibility and intuitive design make it a valuable addition to your trading arsenal.
Note for TradingView Moderators
This script complies with TradingView's House Rules by providing an educational and transparent description without performance claims or guarantees. It is designed to assist traders in technical analysis and should be used alongside proper risk management and personal research. The code is original, well-documented, and includes customizable inputs and clear visual outputs to enhance the user experience.
Tips for Users:
Backtest thoroughly on your chosen asset and timeframe to validate signal reliability. Combine with other indicators or price action analysis for confirmation of entries and exits. Adjust timeframe settings and enable/disable short-term structures to match market volatility and your trading style.
Hope the "Contrarian Market Structure Break" indicator enhances your trading strategy and helps you navigate the markets with confidence! Happy trading!
Momentum Trading StrategyThis is a Trend Following Momentum Strategy, where i used EMA, ADX, RSI, VWAP to take trade with Trend and initiate trade when Momentum builds up.
The Default target is 1:2
RSI Bullish Divergence TraderThis RSI Divergence Buy strategy identifies bullish divergence by detecting confirmed swing lows where the price forms a lower low compared to the previous swing low, but the RSI indicator shows a higher low, signaling weakening downward momentum often in oversold conditions. It enters a long position upon confirmation of these criteria, with the entry visualized by a green upward triangle below the pivot bar. Positions are exited either when the RSI crosses above a specified mean-reversion level (like 55) for profit-taking or hits a dynamic stop-loss set a percentage below the pivot low to manage risk.
RSI Divergence Buy v4 - More TradesThis RSI Divergence Buy strategy identifies bullish divergence by detecting confirmed swing lows where the price forms a lower low compared to the previous swing low, but the RSI indicator shows a higher low, signaling weakening downward momentum often in oversold conditions. It enters a long position upon confirmation of these criteria, with the entry visualized by a green upward triangle below the pivot bar. Positions are exited either when the RSI crosses above a specified mean-reversion level (like 55) for profit-taking or hits a dynamic stop-loss set a percentage below the pivot low to manage risk.
Simple DCA Strategy----
### 📌 **Simple DCA Strategy with Backtest Date Filter**
This strategy implements a **Dollar-Cost Averaging (DCA)** approach for long positions, including:
* ✅ **Base Order Entry:** Starts a position with a fixed dollar amount when no position is open.
* 🔁 **Safety Orders:** Buys additional positions when the price drops by a defined percentage, increasing position size with each new entry using a multiplier.
* 🎯 **Take Profit Exit:** Closes all positions when the price reaches a profit target (in % above average entry).
* 🗓️ **Backtest Date Range:** Allows users to specify a custom start and optional end date to run the strategy only within that time window.
* 📊 **Plots:** Visualizes average entry, take profit level, and safety order trigger line.
#### ⚙️ Customizable Inputs:
* Base Order Size (\$)
* Price Deviation for Safety Orders (%)
* Maximum Safety Orders
* Order Size Multiplier
* Take Profit Target (%)
* Start and End Dates for Backtesting
This is a **long-only strategy** and is best used for backtesting performance of DCA-style accumulation under different market conditions.
----
{FREE} Candlestick Patterns [NASAlgoTrading]{FREE} Candlestick Patterns identifies and plots various candlestick patterns on price charts. It helps traders visualize potential reversal and continuation patterns in the market.
Key Features
Bullish Reversal Patterns Detected:
Hammer - Signals potential bullish reversal after a downtrend
Inverted Hammer - Indicates possible bullish reversal
Three White Soldiers - Strong bullish reversal pattern showing consecutive bullish candles
Bullish Harami - Shows potential trend reversal from bearish to bullish
Bearish Reversal Patterns Detected:
Hanging Man - Warns of potential bearish reversal after an uptrend
Shooting Star - Suggests possible bearish reversal
Three Black Crows - Strong bearish reversal pattern showing consecutive bearish candles
Bearish Harami - Indicates potential trend reversal from bullish to bearish
Dark Cloud Cover - Shows bearish reversal potential
Continuation Patterns Detected:
Rising Three Methods - Bullish continuation pattern
Falling Three Methods - Bearish continuation pattern
Gravestone Doji - Can indicate potential reversals (shown in orange)
Long-legged Doji - Shows market indecision (shown in orange)
Dragonfly Doji - Can signal potential reversals (shown in orange)
Benefits for Traders
Visual Pattern Recognition: Automatically identifies and labels patterns on the chart, saving traders time in manual analysis.
Comprehensive Coverage: Detects multiple important candlestick patterns in a single indicator.
Clear Visual Cues:
Bullish patterns marked in green below price bars
Bearish patterns marked in red above price bars
Doji patterns marked in orange
Trend Analysis: Helps identify both reversal and continuation patterns, providing insights into potential market direction.
Confirmation Tool: Can be used alongside other technical indicators to confirm trading signals.
Educational Value: Helps new traders learn to recognize important candlestick patterns.
Customization: The indicator allows for up to 50 lines to be displayed (max_lines_count = 50).
Implementation Notes
The indicator uses precise mathematical conditions to identify each pattern, including:
Relative candle body and wick sizes
Previous candle patterns and trends
Price relationships between current and historical candles
This systematic approach ensures consistent pattern recognition that might be subjective when done manually.
Pre-Market High/Low//@version=5
indicator("Pre-Market High/Low", overlay=true)
startTime = timestamp("America/New_York", year, month, dayofmonth, 04, 00)
endTime = timestamp("America/New_York", year, month, dayofmonth, 09, 30)
inPremarket = (time >= startTime and time < endTime)
var float premktHigh = na
var float premktLow = na
if inPremarket
premktHigh := na(premktHigh) ? high : math.max(premktHigh, high)
premktLow := na(premktLow) ? low : math.min(premktLow, low)
if (not inPremarket) and (time >= startTime and time < endTime)
premktHigh := na
premktLow := na
plot(premktHigh, title="Pre-Market High", color=color.green, linewidth=1, style=plot.style_line)
plot(premktLow, title="Pre-Market Low", color=color.red, linewidth=1, style=plot.style_line)
Monday Range +Monday Range+
A precision tool for early-week price action traders.
🔧 Features:
- Auto-draws Monday High, Low & Midrange
- Clear LONG/SHORT signal labels
- Midrange Reset (reloads trade logic)
- Ex-Line Protection (sweep filter)
- ½ Risk to Reward extension option
- Multi-Timeframe (MTF) support
📈 Trade Setup Logic:
LONG Setup:
- Valid only after Monday
- Price breaks below Monday Low
- Closes back above the Low and under the Midrange
- Candle must close higher than previous candle
- If Ex-Line Protection is on, trade is blocked if price swept below extension
- Enter at the Low of the range, target the High
SHORT Setup:
- Valid only after Monday
- Price breaks above Monday High
- Closes back below the High and above the Midrange
- Candle must close lower than previous candle
- If Ex-Line Protection is on, trade is blocked if price swept above extension
- Enter at the High of the range, target the Low
🎯 Ideal for liquidity fades and range reversal setups.
Fibonacci Spectrum + Regression Channel + ConfirmationsA versatile multi-strategy tool for technical traders using Fibonacci levels, regression channels, and dynamic confirmations.
📘 Overview
This TradingView strategy script helps traders detect high-probability breakouts, reversals, and trend continuations using:
🔢 Fibonacci retracement zones
📉 Regression channels (local & multi-timeframe)
✅ Multiple confirmations (Volume, RSI, MACD, Candlestick)
🔄 Preset strategy modes (Trend-follow, Mean-reversion, Breakout, Custom)
📊 Visual dashboard for real-time analysis
🔔 Alerts for breakout and breakdown signals
🛠️ Inputs & Configuration
🎛️ Preset Modes
Choose from 4 trading modes:
Custom — manually enable/disable confirmations
Trend-follow — emphasizes RSI & MACD alignment
Mean-reversion — tight channels, ignores volume
Breakout — aggressive setup, tighter fib lookback & wider bands
🔧 Changing preset automatically adjusts parameters like regression length, fib lookback, and confirmation rules.
🔢 Fibonacci Settings
Fib Lookback: Number of bars to calculate the high/low range.
Fib Ratios A-E: Defines retracement levels (0.236 to 0.786 by default).
Zones are shaded for clarity:
🟧 0.236–0.382
🟨 0.382–0.5
🟩 0.5–0.618
🟦 0.618–0.786
📉 Regression Channel
Reg Channel Length: Period used for linear regression.
StdDev Multiplier: Defines channel width.
Multi-Timeframe Support: Choose a higher timeframe (like 1h) to overlay broader trends.
✅ Confirmations (toggle ON/OFF or preset controlled)
Volume: Must be above its 20-bar average.
RSI: Must be above 50 and rising (or below 50 and falling for shorts).
MACD: Line must cross above Signal (bull) or below (bear).
Candlestick Pattern: Looks for Bullish or Bearish Engulfing candles.
📅 Backtest Settings
Enable/disable strategy entries and exits for simulation.
Entries:
Long when price breaks above Fib 0.618 with all confirmations met
Short when price breaks below Fib 0.382 with all bearish confirmations
Exits:
Long exits when price breaks below Fib 0.382
Short exits when price breaks above Fib 0.618
🔍 How to Use the Strategy
🔹 Step 1: Choose a Preset
Pick one of the four Preset Modes:
Want to follow a trend? Select Trend-follow
Expect a price bounce? Try Mean-reversion
Expect volatility? Use Breakout
Prefer full control? Use Custom
🔹 Step 2: Enable Confirmations (if in Custom mode)
Activate/deactivate:
Volume
RSI
MACD
Candlestick Patterns
These filters increase signal quality.
🔹 Step 3: Watch for Signals
Look for:
💠 "READY" labels (potential breakout or breakdown)
Color-coded Fibonacci zones and channel bounds
📈 Entry/Exit signals (when backtesting is enabled)
🔹 Step 4: Use the Dashboard
Located in the top-right, the table shows:
Indicator values
Trend direction (Up/Down)
Status (Bull/Bear, High/Low, Above/Below)
Closest Fibonacci level and candlestick patterns
Colors:
🟢 Green = Bullish or Positive
🔴 Red = Bearish or Negative
🟡 Yellow = Close to a key Fib level
🔔 Alerts (Included)
You can set alerts on the following conditions:
Pre-Breakout — all bullish confirmations + Fib 0.618 cross
Pre-Breakdown — all bearish confirmations + Fib 0.382 break
Position Opened — any strategy entry (for backtest tracking)
To activate:
Right-click the chart → Add Alert
Select this strategy and the condition (e.g., “Pre-Breakout Signal”)
📊 Example Use Cases
🟢 Breakout Trader
Set to Breakout
Watch for “READY” label above Fib 0.618
Confirm with strong volume & bullish MACD
Alert triggers → enter trade
🔴 Mean Reversion Trader
Set to Mean-reversion
Price hits lower channel + Fib 0.382
Weak volume, but RSI rebounds → consider long
⚖️ Trend Follower
Set to Trend-follow
RSI, MACD, and price all moving up above midline
Enter on Fib 0.618 bounce
🧪 Tips & Notes
Combine with multi-timeframe analysis by enabling the MTF Channel
Tweak Fib ratios if you're using alternative levels (e.g., 0.886)
Use strategy.percent_of_equity for dynamic position sizing in backtests
Set proper timeframes (e.g., 15m, 1h) based on your trading style
Not financial advice at all. Strategy still WIP, i mainly think the indicator is ready.
Crypto Breadth | AlphaNatt\ Crypto Breadth | AlphaNatt\
A dynamic, visually modern market breadth indicator designed to track the strength of the top 40 cryptocurrencies by measuring how many are trading above their respective 50-day moving averages. Built with precision, branding consistency, and UI enhancements for fast interpretation.
\ 📊 What This Script Does\
* Aggregates the performance of \ 40 major cryptocurrencies\ on Binance
* Calculates a \ breadth score (0.00–1.00)\ based on how many tokens are above their moving averages
* Smooths the breadth with optional averaging
* Displays the result as a \ dynamic, color-coded line\ with aesthetic glow and gradient fill
* Provides automatic \ background zones\ for extreme bullish/bearish conditions
* Includes \ alerts\ for key threshold crossovers
* Highlights current values in an \ information panel\
\ 🧠 How It Works\
* Pulls real-time `close` prices for 40 coins (e.g., XRP, BNB, SOL, DOGE, PEPE, RENDER, etc.)
* Compares each coin's price to its 50-day SMA (adjustable)
* Assigns a binary score:
• 1 if the coin is above its MA
• 0 if it’s below
* Aggregates all results and divides by 40 to produce a normalized \ breadth percentage\
\ 🎨 Visual Design Features\
* Smooth blue-to-pink \ color gradient\ matching the AlphaNatt brand
* Soft \ glow effects\ on the main line for enhanced legibility
* Beautiful \ multi-stop fill gradient\ with 16 transition zones
* Optional \ background shading\ when extreme sentiment is detected:
• Bullish zone if breadth > 80%
• Bearish zone if breadth < 20%
\ ⚙️ User Inputs\
* \ Moving Average Length\ – Number of periods to calculate each coin’s SMA
* \ Smoothing Length\ – Smooths the final breadth value
* \ Show Background Zones\ – Toggle extreme sentiment overlays
* \ Show Gradient Fill\ – Toggle the modern multicolor area fill
\ 🛠️ Utility Table (Top Right)\
* Displays live breadth percentage
* Shows how many coins (e.g., 27/40) are currently above their MA
\ 🔔 Alerts Included\
* \ Breadth crosses above 50%\ → Bullish signal
* \ Breadth crosses below 50%\ → Bearish signal
* \ Breadth > 80%\ → Strong bullish trend
* \ Breadth < 20%\ → Strong bearish trend
\ 📈 Best Used For\
* Gauging overall market strength or weakness
* Timing trend transitions in the crypto market
* Confirming trend-based strategies with broad market support
* Visual dashboard in macro dashboards or strategy overlays
\ ✅ Designed For\
* Swing traders
* Quantitative investors
* Market structure analysts
* Anyone seeking a macro view of crypto performance
Note: Not financial advise