Auto Trading con ActivTradesSMA crossover strategy with automatic Take Profit and Stop Loss, designed for live account execution via ActivTrades directly from TradingView.
Oscillators
🧬 Fractal Trap Hunter v2.2 – Wyckoff x Fib Precision// This is still a WIP and any feedback is very welcome.
🧬 Fractal Trap Hunter v2.2
Wyckoff x Fibonacci Precision Reversal Strategy
📈 Version: 2.2
🔁 Smart Money Filters • Fib Zones • Momentum Precision
💡 Designed for traders who demand accuracy, structure, and smart filtering.
🚀 Summary
Fractal Trap Hunter v2.2 isn’t just a strategy — it’s a framework.
It adapts to the market’s structure and filters out the noise using real logic used by institutions.
🎯 Strategy Overview
Fractal Trap Hunter v2.2 is a reversal-based strategy that fuses:
📐 Fibonacci retracements/extensions
📊 Wyckoff-style impulse logic (BOS/Spring)
🔍 Optional Smart Money filters
⚡ Precision entries at 61.8%–78.6% with TP1 & TP2 via 1.272/1.618 extensions
✅ Modular filters (RSI, EMA, DPO, SMI, Volume)
🛠 How It Works
Detects a directional impulse (fakeout/BOS/spring)
Waits for price to retrace into a golden zone (Fib 61.8–78.6%)
Enters only if filtered by momentum + confluence signals
Takes partial TP1, moves SL to BE, lets TP2 run
Visual zones and labels make execution easy and clean
⚙️ Key Inputs
Input Purpose Default
Fib Entry Min -- Lowest fib zone for entry -- 0.618
Fib Entry Max -- Highest fib zone for entry -- 0.786
TP1 Extension -- First take profit (extension of impulse) -- 1.272
TP2 Extension -- Final target -- 1.618
Min Impulse % --Required size for the setup -- 0.8%
🧠 Optional Filters
Filter Use Case
EMA Filter -- Only trade with 50 EMA trend
EMA Crossover -- Confirms short-term momentum direction
RSI -- Filter out overextended entries
DPO -- Avoid flat/no-trend zones
SMI -- Precision momentum confirmation
Volume Spike -- Ensures trades trigger with liquidity & intent
📍 Where & When to Use
✅ Best Markets
Forex majors: EUR/USD, GBP/USD, USD/JPY, AUD/USD
Indices: NAS100, SPX500, GER40
Gold: XAU/USD — thrives on fakeouts
Crypto: BTC/USD (H1+ only — volatile), SOL/EUR (H8 had some amazing results)
✅ Best Timeframes
M15 to H1: Optimal balance of signals and quality
H4 - H8 for structure context
D1 for bias filter (optional)
🕐 Best Time of Day
London Open (7–10am UTC) – breakout traps + volume
NY Open (13–15 UTC) – BOS + FVG setups
Avoid low-liquidity hours unless volume filter is ON
📊 How to Backtest
Select timeframe (e.g., M30)
Open Strategy Tester → Overview
Toggle filters & Fib zones to optimize for asset
🔥 Pro Tips to Maximize Edge
📌 Start with only EMA + OB filters, optimize first
⚠️ Avoid choppy price action — look for clear liquidity sweeps
🎯 Use HTF BOS or Wyckoff structures to frame LTF entries
🧬 Look for confluence: OB + Fib + Volume spike = sniper
🔄 Run optimization for each asset and session
⚠️ Risk Disclaimer
Trading involves risk. Use proper position sizing. Past performance does not guarantee future results.
RSI Divergence Strategy - AliferCryptoStrategy Overview
The RSI Divergence Strategy is designed to identify potential reversals by detecting regular bullish and bearish divergences between price action and the Relative Strength Index (RSI). It automatically enters positions when a divergence is confirmed and manages risk with configurable stop-loss and take-profit levels.
Key Features
Automatic Divergence Detection: Scans for RSI pivot lows/highs vs. price pivots using user-defined lookback windows and bar ranges.
Dual SL/TP Methods:
- Swing-based: Stops placed a configurable percentage beyond the most recent swing high/low.
- ATR-based: Stops placed at a multiple of Average True Range, with a separate risk/reward multiplier.
Long and Short Entries: Buys on bullish divergences; sells short on bearish divergences.
Fully Customizable: Input groups for RSI, divergence, swing, ATR, and general SL/TP settings.
Visual Plotting: Marks divergences on chart and plots stop-loss (red) and take-profit (green) lines for active trades.
Alerts: Built-in alert conditions for both bullish and bearish RSI divergences.
Detailed Logic
RSI Calculation: Computes RSI of chosen source over a specified period.
Pivot Detection:
- Identifies RSI pivot lows/highs by scanning a lookback window to the left and right.
- Uses ta.barssince to ensure pivots are separated by a minimum/maximum number of bars.
Divergence Confirmation:
- Bullish: Price makes a lower low while RSI makes a higher low.
- Bearish: Price makes a higher high while RSI makes a lower high.
Entry:
- Opens a Long position when bullish divergence is true.
- Opens a Short position when bearish divergence is true.
Stop-Loss & Take-Profit:
- Swing Method: Computes the recent swing high/low then adjusts by a percentage margin.
- ATR Method: Uses the current ATR × multiplier applied to the entry price.
- Take-Profit: Calculated as entry price ± (risk × R/R ratio).
Exit Orders: Uses strategy.exit to place bracket orders (stop + limit) for both long and short positions.
Inputs and Configuration
RSI Settings: Length & price source for the RSI.
Divergence Settings: Pivot lookback parameters and valid bar ranges.
SL/TP Settings: Choice between Swing or ATR method.
Swing Settings: Swing lookback length, margin (%), and risk/reward ratio.
ATR Settings: ATR length, stop multiplier, and risk/reward ratio.
Usage Notes
Adjust the Pivot Lookback and Range values to suit the volatility and timeframe of your market.
Use higher ATR multipliers for wider stops in choppy conditions, or tighten swing margins in trending markets.
Backtest different R/R ratios to find the balance between win rate and reward.
Disclaimer
This script is for educational purposes only and does not constitute financial advice. Trading carries significant risk and you may lose more than your initial investment. Always conduct your own research and consider consulting a professional before making any trading decisions.
RSI Candlestick Oscillator [LuxAlgo]The RSI Candlestick Oscillator displays a traditional Relative Strength Index (RSI) as candlesticks. This indicator references OHLC data to locate each candlestick point relative to the current RSI Value, leading to a more accurate representation of the Open, High, Low, and Close price of each candlestick in the context of RSI.
In addition to the candlestick display, Divergences are detected from the RSI candlestick highs and lows and can be displayed over price on the chart.
🔶 USAGE
Translating candlesticks into the RSI oscillator is not a new concept and has been attempted many times before. This indicator stands out because of the specific method used to determine the candlestick OHLC values. When compared to other RSI Candlestick indicators, you will find that this indicator clearly and definitively correlates better to the on-chart price action.
Traditionally, the RSI indicator is simply one running value based on (typically) the close price of the chart. By introducing high, low, and open values into the oscillator, we can better gauge the specific price action throughout the intrabar movements.
Interactions with the RSI levels can now take multiple forms, whether it be a full-bodied breakthrough or simply a wick test. Both can provide a new analysis of price action alongside RSI.
An example of wick interactions and full-bodied interactions can be seen below.
As a result of the candlestick display, divergences become simpler to spot. Since the candlesticks on the RSI closely resemble the candlesticks on the chart, when looking for divergence between the chart and RSI, it is more obvious when the RSI and price are diverging.
The divergences in this indicator not only show on the RSI oscillator, but also overlay on the price chart for clearer understanding.
🔹 Filtering Divergence
With the candlesticks generating high and low RSI values, we can better sense divergences from price, since these points are generally going to be more dramatic than the (close) RSI value.
This indicator displays each type of divergence:
Bullish Divergence
Bearish Divergence
Hidden Bullish Divergence
Hidden Bearish Divergence
From these, we get many less-than-useful indications, since every single divergence from price is not necessarily of great importance.
The Divergence Filter disregards any divergence detected that does not extend outside the RSI upper or lower values.
This does not replace good judgment, but this filter can be helpful in focusing attention towards the extremes of RSI for potential reversal spotting from divergence.
🔶 DETAILS
In order to get the desired results for a display that resembles price action while following RSI, we must scale. The scaling is the most important part of this indicator.
To summarize the process:
Identify a range on Price and RSI
Consider them as equal to create a scaling factor
Use the scaling factor to locate RSI's "Price equivalent" Upper, Lower, & Mid on the Chart
Use those prices (specifically the RSI Mid) to check how far each OHLC value lies from it
Use those differences to translate the price back to the RSI Oscillator, pinning the OHLC values at their relative location to our anchor (RSI Mid)
🔹 RSI Channel
To better understand, and for your convenience, the indicator includes the option to display the RSI Channel on the chart. This channel helps to visualize where the scaled RSI values are relative to price.
If you analyze the RSI channel, you are likely to notice that the price movement throughout the channel matches the same movement witnessed in the RSI Oscillator below. This makes sense since they are the exact same thing displayed on different scales.
🔹 Scaling the Open
While the scaling method used is important, and provides a very close view of the real price bar's relative locations on the RSI oscillator… It is designed for a single purpose.
The scaling does NOT make the price candles display perfectly on the RSI oscillator.
The largest place where this is noticeable is with the opening of each candle.
For this reason, we have included a setting that modifies the opening of each RSI candle to be more accurate to the chart's price candles.
This setting positions the current bar's opening RSI candlestick value accurately relative to the price's open location to the previous closing price. As seen below.
🔶 SETTINGS
🔹 RSI Candles
RSI Length: Sets the Length for the RSI Oscillator.
Overbought/Oversold Levels: Sets the Overbought and Oversold levels for the RSI Oscillator.
Scale Open for Chart Accuracy: As described above, scales the open of each candlestick bar to more accurately portray the chart candlesticks.
🔹 Divergence
Show on Chart: Choose to display divergence line on the chart as well as on the Oscillator.
Divergence Length: Sets the pivot width for divergence detection. Normal Fractal Pivot Detection is used.
Divergence Style: Change color and line style for Regular and Hidden divergences, as well as toggle their display.
Divergence Filter: As described above, toggle on or off divergence filtering.
🔹 RSI Channel
Toggle: Display RSI Channel on Chart.
Color: Change RSI Channel Color
📈 RX Swing This Pine Script strategy is designed for trading Nifty options on a 4-hour chart. Here’s a breakdown of how it works:
Timeframe Enforcement: The strategy is designed to only work on a 4-hour chart. If you try to run it on any other timeframe, it will throw an error.
Inputs:
RSI length: Determines the length for the Relative Strength Index (RSI) indicator.
RSI MA Length: Determines the moving average length for smoothing the RSI.
MA Type: Allows you to choose between SMA or EMA for the RSI moving average.
Stop Loss & Take Profit: These define the exit points in percentage terms.
Capital per Trade: Defines how much capital is allocated per trade.
Lot Size: Specifies the number of Nifty options contracts to trade.
Trailing Stop-Loss Points: Defines how many points the price has to move against the position before the trailing stop is triggered.
Trading Logic:
RSI & Moving Average: The strategy generates buy (call) and sell (put) signals based on the crossover and crossunder of RSI and its moving average.
Position Size: The position size is based on capital allocated and the current price of the Nifty.
Stop Loss/Take Profit: The strategy uses both percentage-based stop loss and take profit levels, as well as a trailing stop mechanism to lock profits.
Exit Conditions:
The strategy has several exit triggers:
Trailing Stop-Loss: When the price moves against the trade by a certain number of points, it exits.
Reversal Exit: The strategy will exit a position if the opposite signal (long vs. short or vice versa) occurs.
TP/SL Exit: The strategy will also exit the position when the target profit or stop loss levels are hit.
Loss Count: The strategy tracks the number of consecutive losing trades, and if the count exceeds two, no new trades are allowed until the count resets.
Reset Loss Count: The loss count resets every day at 9:15 AM.
Plotting:
Entry signals (long/short) are marked with green (buy call) and red (buy put) triangles.
Exit signals for TP, SL, Reversal, and Trailing SL are marked with respective shapes (crosses, circles, squares).
This strategy is designed to manage risk with a stop loss and take profit system, while also incorporating a trailing stop-loss mechanism to lock in profits. It ensures that the strategy works only on the 4-hour chart, and limits trading activity after consecutive losses to maintain discipline.
Directional Movement IndexThis is a basic DMI without the ADX and two lines added into the field to show volume imbalance more clearly.
StochRSI+ LiteStochRSI+ Lite is an enhanced version of the classic Stochastic RSI.
It includes:
✅ Adaptive smoothing using ATR
✅ EMA-based trend filter to reduce false signals
✅ RSI calculated on HLC3 for smoother response
✅ Transparent 20–80 range highlight
✅ Basic divergence detection with visual markers
Ideal for crypto and volatile markets.
Open source & free to use — if you like it, tips are appreciated 🙏
bc1qnzc2s4t9kws8xpcxthsemth5m3kqmnkutsfe3f
ICT Swiftedge# ICT SwiftEdge: Advanced Market Structure Trading System
**Overview**
ICT SwiftEdge is a powerful trading system built upon the foundation of ICTProTools' ICT Breakers, licensed under the Mozilla Public License 2.0 (mozilla.org). This script has been significantly enhanced by to combine market structure analysis with modern technical indicators and a sleek, AI-inspired statistics dashboard. The goal is to provide traders with a comprehensive tool for identifying high-probability trade setups, managing exits, and tracking performance in a visually intuitive way.
**Credits**
This script is a derivative work based on the original "ICT Breakers" by ICTProTools, used with permission under the Mozilla Public License 2.0. Significant enhancements, including RSI-MA signals, trend filtering, dynamic timeframe adjustments, dual exit strategies, and an AI-style statistics dashboard, were developed by . We express our gratitude to ICTProTools for their foundational work in market structure analysis.
**What It Does**
ICT SwiftEdge integrates multiple trading concepts to help traders identify and manage trades based on market structure and momentum:
- **Market Structure Analysis**: Identifies Break of Structure (BOS) and Market Structure Shift (MSS) patterns, which signal potential trend continuations or reversals. BOS indicates a continuation of the current trend, while MSS highlights a shift in market direction, providing key entry points.
- **RSI-MA Signals**: Generates "BUY" and "SELL" signals when BOS or MSS patterns align with the Relative Strength Index (RSI) smoothed by a Moving Average (RSI-MA). Signals are filtered to occur only when RSI-MA is above 50 (for buys) or below 50 (for sells), ensuring momentum supports the trade direction.
- **Trend Filtering**: Prevents multiple signals in the same trend, ensuring only one buy or sell signal per trend direction, reducing noise and improving trade clarity.
- **Dynamic Timeframe Adjustment**: Automatically adjusts pivot points, RSI, and MA parameters based on the selected chart timeframe (1M to 1D), optimizing performance across different market conditions.
- **Flexible Exit Strategies**: Offers two user-selectable exit methods:
- **Trailing Stop-Loss (TSL)**: Exits trades when price moves against the position by a user-defined distance (in points), locking in profits or limiting losses.
- **RSI-MA Exit**: Exits trades when RSI-MA crosses the 50 level, signaling a potential loss of momentum.
- Users can enable either or both strategies, providing flexibility to adapt to different trading styles.
- **AI-Style Statistics Dashboard**: Displays real-time trade performance metrics in a futuristic, neon-colored interface, including total trades, wins, losses, win/loss ratio, and win percentage. This helps traders evaluate the system's effectiveness without external tools.
**Why This Combination?**
The integration of these components creates a synergistic trading system:
- **BOS/MSS and RSI-MA**: Combining market structure breaks with RSI-MA ensures entries are based on both price action (structure) and momentum (RSI-MA), increasing the likelihood of high-probability trades.
- **Trend Filtering**: By limiting signals to one per trend, the system avoids overtrading and focuses on significant market moves.
- **Dynamic Adjustments**: Timeframe-specific parameters make the system versatile, suitable for scalping (1M, 5M) or swing trading (4H, 1D).
- **Dual Exit Strategies**: TSL protects profits during trending markets, while RSI-MA exits are ideal for range-bound or reversing markets, catering to diverse market conditions.
- **Statistics Dashboard**: Provides immediate feedback on trade performance, enabling data-driven decision-making without manual tracking.
This combination balances technical precision with user-friendly visuals, making it accessible to both novice and experienced traders.
**How to Use**
1. **Add to Chart**: Apply the script to any TradingView chart.
2. **Configure Settings**:
- **Chart Timeframe**: Select your chart's timeframe (1M to 1D) to optimize parameters.
- **Structure Timeframe**: Choose a timeframe for market structure analysis (leave blank for chart timeframe).
- **Exit Strategy**: Enable Trailing Stop-Loss (`useTslExit`), RSI-MA Exit (`useRsiMaExit`), or both. Adjust `tslPoints` for TSL distance.
- **Show Signals/Labels**: Toggle `showSignals` and `showExit` to display "BUY", "SELL", and "EXIT" labels.
- **Dashboard**: Enable `showDashboard` to view trade statistics. Customize colors with `dashboardBgColor` and `dashboardTextColor`.
3. **Trading**:
- Look for "BUY" or "SELL" labels to enter trades when BOS/MSS aligns with RSI-MA.
- Exit trades at "EXIT" labels based on your chosen strategy.
- Monitor the statistics dashboard to track performance (total trades, win/loss ratio, win percentage).
4. **Alerts**: Set up alerts for BOS, MSS, buy, sell, or exit signals using the provided alert conditions.
**License**
This script is licensed under the Mozilla Public License 2.0 (mozilla.org). The source code is available for review and modification under the terms of this license.
**Compliance with TradingView House Rules**
This publication adheres to TradingView's House Rules and Scripts Publication Rules. It provides a clear, self-contained description of the script's functionality, credits the original author (ICTProTools), and explains the rationale for combining indicators. The script contains no promotional content, offensive language, or proprietary restrictions beyond MPL 2.0.
**Note**
Trading involves risk, and past performance is not indicative of future results. Always backtest and validate the system on your preferred markets and timeframes before live trading.
Enjoy trading with ICT SwiftEdge, and let data-driven insights guide your decisions!
Forex Overwiew True Strenght IndexNew oscillator for all currencies—I’m about to add NOK, SEK, and other lower-volume currencies that are interesting due to their lack of correlation with the major ones.
MTF Stoch RSI Confluence + Combined AlertMTF STOCH RSI CONFLUENCE INDICATOR 1m/5m/15m ( Scalping Indicator added on SRSI 1H)
IF all three Stoch are overbought(above 80) the indicator creates a red vertical line. If all Stoch are oversold(below 20) the indicator creates a green vertical line.
RULES!!!!
NEVER TRADE AGAINST THE TREND!!! This is super important!!!!
If 1H SRSI is above 80 with MTF overbouht and ZC is red (Downtrend) then we open a MR Short- (Prefered at PA Spikes) The same for opposites MR Longs.
If 1H SRSI is above 80 with the MTF oversold and ZC green then we can open a Long position. Prefered Momo Long. The same applies for opposite, hence momo short.
Price % Above/Below 20 EMADelta between current price and EMA20, calculated as percent difference between EMA and closing price.
Macro Liquidity Index & Canadian OverlayTradingView Pine Script strategy-style indicator that synthesizes the macro signals (e.g. DXY trend, real yields, oil prices, ISM trend, and financial conditions) into a visual macro sentiment index ranging from -5 (max bearish) to +5 (max bullish). It also includes a “Canadian Exposure Overlay” that adjusts the macro score based on Canada’s specific economic positioning (e.g., oil exporter, rate-sensitive sectors, CAD/USD trend).
QQE SHARPE MAX BOT v2 - Reversals + Trailing + VolumenThe **“QQE SHARPE MAX BOT v2”** strategy is based on detecting momentum shifts using the QQE Mod indicator, combined with a trend filter based on EMA and Heikin Ashi, as well as a volume filter that requires volume to be above its moving average to validate entries. It operates in both directions (long and short) with automatic reversals and manages risk through dynamic trailing stops based on ATR, allowing it to maximize profits during strong trends and avoid trading in low-interest market zones.
Sentiment Bias Gauge📌 Overview
The Sentiment Bias Gauge (SBG) is a unique overlay-style indicator that visually maps a sentiment value—such as market bullishness or bearishness—onto your price chart. It converts sentiment data (in this case, RSI-based) into a floating line that moves between defined price zones, allowing users to quickly understand the current market mood in the context of price.
⚙️ How It Works
• The indicator uses RSI (Relative Strength Index) as a proxy for market sentiment (0 to 100 scale).
• This sentiment value is then mapped to a vertical price range on your chart using a configurable zone (via top and bottom percent of chart range).
• The line floats up or down within the price chart, reflecting how bullish or bearish the sentiment is.
• It includes background shading to represent the sentiment level:
• 🔴 Red (Bearish): sentiment < 30
• 🟡 Yellow (Neutral): 30 ≤ sentiment ≤ 70
• 🟢 Green (Bullish): sentiment > 70
• A floating label shows the current sentiment score.
🌟 Key Features
• 📈 Overlay-Based Sentiment Line: Plots sentiment as a price-level line, giving intuitive spatial reference.
• 🔧 Configurable Range Placement: Adjust where the sentiment line appears within the chart’s high-low range.
• 🖌️ Color-Coded Background: Visually distinguish bullish, bearish, and neutral conditions.
• 🏷️ Real-Time Sentiment Label: Displays updated sentiment score on the most recent bar.
🧠 How to Use
• Use this indicator alongside your price action or technical strategy to gauge market mood.
• Combine with other sentiment indicators (e.g., fear/greed, delta volume, news sentiment).
• Especially helpful in sideways markets to identify potential shifts in bias before price reacts.
Why This Combination?
• RSI offers a reliable and intuitive proxy for market sentiment.
• Mapping the value directly onto the chart helps avoid constantly looking at a separate panel.
• The customizable chart range lets traders fit sentiment visuals within any market structure.
🎯 Why It’s Worth Using
• Makes sentiment visually accessible directly on the chart.
• Helps detect bullish/bearish bias shifts earlier than traditional indicators.
• A great tool for sentiment-aware discretionary trading or contextual overlays in algo strategies.
Dynamic RSI Regression Bands (Zeiierman)█ Overview
The Dynamic RSI Regression Bands (Zeiierman) is a regression channel tool that dynamically resets based on RSI overbought and oversold conditions. It adapts to trend shifts in real time, creating a highly responsive regression framework that visualizes market sentiment and directional momentum with every RSI-triggered event.
Unlike static regression models, this indicator recalibrates its slope and deviation bands only after the RSI crosses predefined thresholds, helping traders pinpoint new phases of momentum, exhaustion, or reversal.
You’re not just measuring the trend — you’re tracking when and where the trend deserves to be re-evaluated.
█ The Assumption:
"A major momentum shift (RSI crossing OB/OS) signals a potential regime change, and thus, the trend model should be recalibrated from that point."
Instead of using a fixed-length regression (which assumes trend relevance over a static window), this script resets the regression calculation every time RSI crosses into extreme territory. The underlying idea is that extreme RSI levels often represent emotional peaks in market behavior and are statistically likely to be followed by a new price structure.
█ How It Works
⚪ RSI-Based Channel Reset
RSI is monitored continuously
If RSI crosses above the Overbought level, the indicator resets and starts a new regression channel
If RSI crosses below the Oversold level, the same reset logic applies
These events act as “anchor points” for dynamic trend analysis
⚪ Regression Channel Logic
A custom linear regression is calculated from the RSI reset point forward
The lookback grows with each bar after the reset, up to a user-defined max
Regression lines are drawn from the reset point to the current bar
⚪ Standard Deviation Bands
Upper and lower bands are plotted around the regression line using the standard deviation
These serve as dynamic volatility envelopes, great for spotting breakouts or reversals
⚪ Rejection Markers
If price hits the upper/lower band and then closes back inside it, a rejection marker is plotted
Helps visualize failed breakouts and areas of absorption or reversal pressure
█ How to Use
⚪ Detect Trend Shifts
Use the RSI resets to identify when the trend might be starting fresh.
⚪ Watch the Bands for Volatility Extremes
Use the outer bands as soft areas of potential reversal or momentum breakout.
⚪ Spot Rejections for Potential Entry Signals
If price moves outside a band but then quickly returns inside, it often means the breakout failed, and price may reverse.
█ Settings Explained
RSI Length – How many bars RSI uses. Shorter = faster.
OB / OS Levels – Crossing these triggers a regression reset.
Base Regression Length – Max number of bars regression can use post-reset.
StdDev Multiplier – Controls band width from the regression line.
Min Bars After Reset – Ensures channel doesn’t form immediately; waits for structure.
Show Reset Markers – Triangles mark where RSI crossed OB/OS.
Show Rejection Markers – Circles mark where the price rejected the channel edge.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
MACD & Stochastic AlertThis code detects if the following combination has occured in the chart
if MACD has crossed over MACD Signal in the last 4 candles
and
whether the Fast Stochastic K% has exited the channel 80 & 23
Then you can set an alert based on the function call.
Exponential Regression Log ResidualThis custom indicator measures the logarithmic residual between the current price and an exponential regression line, offering insights into relative overbought and oversold conditions on a logarithmic scale. It can be especially useful when analyzing assets that move exponentially over time, such as growth stocks or cryptocurrencies.
EMA Oscillating Trend📈 EMA Oscillating Trend by AI-123
The EMA Oscillating Trend indicator is a dynamic trend visualizer that enhances traditional EMA behavior by offsetting the line based on trend direction, providing a more intuitive and visually distinct representation of market momentum.
🔍 Key Features:
🔵 Bullish Color Customization – Define your preferred color for bullish trends
🔴 Bearish Color Customization – Set a different tone for bearish phases
🪄 Adjustable Line Thickness – Tailor the EMA's appearance to your chart style
📐 Offset Multiplier Input – Automatically pushes the EMA above price in a downtrend and below price in an uptrend for enhanced clarity
⚙️ User-Friendly Inputs – No coding knowledge required; full customization in the settings panel
🧠 How It Works:
Calculates a primary EMA line (OV) and a sub-component to compare against (OV2)
Determines the trend based on whether OV is above or below OV2
Shifts the EMA line above price during bearish trends and below price during bullish trends
The offset is percentage-based and scales dynamically with the price for optimal readability
✅ Ideal For:
Trend-followers seeking visual clarity
Discretionary traders who want less clutter and more signal
Anyone who likes their EMAs with a little more flair and insight
🛠️ Author: @alphainvestor123
This tool was crafted with simplicity and clarity in mind. If you enjoy the indicator, consider dropping feedback or sharing your use case!
MG Universal model🚀 Summary🚀
The MG univerasal model is a composite of various items such as RSI, price Z-Score, Sharpe Ratio, Sortino Ratio, Omega Ratio, etc
Each component is normalized and then equally wheighted out to perform a global metric.
At the end, an Exponential Moving Average is added on the global metric.
You can easily find a description of each component on the internet, for the Crosby Ratio, it's a metric that comes from bitcoinmagazinepro.com.
✨ Key Features ✨
🗡 Smoothed Global Metric
Using a Moving average to smooth out the whole aggregated metric.
🗡 Bands Zone at extreme levels
Automatically displaying bands at top and bottom levels of the oscillator.
🗡 Normalizing components
Each component is normalized.
🗡 DataTable
Optional DataTable is available to check the score for each components and their related Z-Score.
📊 How I use it 📊
When catching up with 0 line (midline), crossing it :
if it goes above 0.2:
get out when it crosses 0.2 again
else:
get out when it crosses 0 again
That's the way I use it, may be there is a better way, FAFO :)
❓ Seeing a bug or an issue ❓
Feel free to DM me if you see a component that seems badly calculated.
I will be happy to fix it.
❗❗ Disclaimer ❗❗
This is a single indicator, even though it's aggregating many, do not use it as a standalone.
Past performance is not indicative of future results.
Always backtest, check, and align parameters before live trading.
Scalping Strategy with DCA - V3# Enhanced Scalping Strategy with DCA - V3
## Strategy Overview
This strategy combines multiple technical indicators with a structured Dollar Cost Averaging (DCA) approach to create a comprehensive trading system for cryptocurrency markets. Unlike simple indicator mashups, this strategy integrates several confirmation layers for entries while implementing a sophisticated risk management system based on the 1-2-6 DCA ratio.
## What Makes This Strategy Unique
1. **Multi-Layered Entry Confirmation System**:
- Uses EMA crossover as the primary trigger
- Adds RSI momentum confirmation
- Integrates MACD for trend strength
- Includes RSI divergence for reversal potential
- Incorporates higher timeframe confirmation for trend alignment
2. **Structured Risk Management**:
- Implements a 1-2-6 DCA ratio to strategically average into positions
- Uses percentage-based stop losses that adapt based on DCA status
- Features a two-tiered take profit system (25% at TP1, 50% at TP2)
- Optional breakeven stop loss after second take profit target
- Initial risk limited to a small percentage of account (1-3%)
3. **Versatile Market Adaption**:
- Additional entry opportunities during oversold/overbought Bollinger Band touches
- Customizable filters that can be enabled/disabled based on market conditions
- Higher timeframe confirmation to ensure alignment with larger trends
## How The Components Work Together
### Entry System Components
1. **48 EMA** serves as the primary trend filter and entry trigger. Price crossing above/below this EMA signals a potential trend change.
2. **RSI (Relative Strength Index)** confirms momentum in the intended direction:
- For longs: RSI > 20 shows bullish momentum
- For shorts: RSI < 80 shows bearish momentum
3. **MACD (Moving Average Convergence Divergence)** filters out weak trends:
- For longs: MACD line crosses above signal line
- For shorts: MACD line crosses below signal line
4. **RSI Divergence Detection** identifies potential reversals where price makes a new high/low but RSI fails to confirm, suggesting momentum is weakening.
5. **Higher Timeframe Confirmation** ensures the trade aligns with the larger trend structure by checking EMA and RSI on a higher timeframe (default is daily).
6. **Bollinger Bands** provide additional entry triggers during strong oversold/overbought conditions:
- Long entry when price touches lower band with RSI < 20
- Short entry when price touches upper band with RSI > 80
### The DCA Mechanism
The strategy employs a 1-2-6 ratio for Dollar Cost Averaging:
- **Initial position**: 1 unit based on account risk percentage
- **First DCA level**: Adds 2 units when price moves against initial entry by the first DCA level percentage (default 1%)
- **Second DCA level**: Adds 6 units when price moves further against entry by the second DCA level percentage (default 2%)
This structured approach reduces average entry price during temporary adverse price movements, potentially converting losing trades into winners when the expected price movement eventually occurs.
### Exit Strategy
The strategy uses multiple exit mechanisms:
1. **Tiered Take Profits**:
- First TP at takeProfitPercent1 from entry (default 0.5%) - closes 25% of position
- Second TP at takeProfitPercent2 from entry (default 1.0%) - closes 50% of position
- Remaining 25% runs with trailing stop loss or until stopped out
2. **Stop Loss Management**:
- Initial SL set at stopLossPercent from entry (default 1.5%)
- After full DCA deployment, SL adjusts to fixedSLPercent from entry (default 1.3%)
- Optional breakeven SL after second take profit hits
## Backtesting Settings & Recommendations
For realistic backtesting, please configure the following in the strategy Properties panel:
- **Commission**: 0.075% (typical for major cryptocurrency exchanges)
- **Slippage**: 0.05% (accounts for execution delays and spread)
- **Initial Capital**: $10,000 (realistic starting capital for the average trader)
- **Date Range**: January 2024 to present (provides sufficient sample size)
These settings ensure backtesting results closely match real trading conditions. The strategy is designed to never risk more than 3% of account equity on any trade, with typical risk between 1-2%.
## Recommended Markets & Timeframes
This strategy performs best in:
1. **Markets**:
- Cryptocurrency markets with high liquidity
- Assets with market capitalization > $1 billion
- Coins with holder ratio > 7% (reducing manipulation risk)
2. **Timeframes**:
- Primary: 1-hour and 4-hour charts
- Secondary: 15-minute charts for faster execution
- Higher timeframe confirmation: Daily chart
## Parameter Customization Guide
The strategy offers multiple customization options to adapt to different trading styles and market conditions:
1. **Risk Settings**:
- initialRiskPercent: Adjust between 0.5-2% for conservative to moderate approaches
- stopLossPercent: 1-3% based on volatility of the asset
- takeProfitPercent1/2: Can be adjusted based on average volatility
2. **Entry Filters**:
- Enable/disable MACD filter for additional confirmation
- Enable/disable RSI divergence for reversal trading
- Enable/disable higher timeframe confirmation for trend alignment
3. **DCA Settings**:
- dcaLevel1/2: Adjust based on asset volatility (higher for more volatile assets)
- Change the 1-2-6 ratio by modifying the position size calculations
## Visual Outputs Explained
The strategy displays the following visual elements:
1. **Indicator plots**:
- 48 EMA (blue line): Main trend filter
- Bollinger Bands (upper: red, middle: yellow, lower: green): Volatility and overbought/oversold levels
2. **Trade management levels**:
- Stop Loss level (red circles): Current SL price
- Take Profit levels (green circles): TP1 and TP2 targets
3. **Information panel**:
- Displays strategy settings and current mode
- Shows active filters and risk parameters
- Reminds about market cap and holder ratio requirements
## Real-World Trading Tips
When implementing this strategy in real trading:
1. Start with conservative risk settings (0.5-1%)
2. Trade only in favorable market conditions initially
3. Consider reducing position size during high market uncertainty
4. Monitor higher timeframe trends before taking entries
5. Always check market cap and holder ratio before trading a coin
6. Set up proper alerts for EMA crosses with RSI confirmation
7. Regularly review and adjust parameters based on recent performance
## How to Use This Strategy
1. Add the strategy to your chart
2. Configure risk parameters appropriate for your account
3. Set commission and slippage in the Properties panel
4. Enable/disable the filters based on your trading style
5. Monitor higher timeframe for overall trend direction
6. Use the strategy's signals for entry and the recommended take profit/stop loss levels
7. Consider manual intervention during extreme market events
This strategy provides a systematic approach to scalping with proper risk management through DCA, making it suitable for both beginner and experienced traders in cryptocurrency markets.
SwiftEdge NW EnvelopeSwiftEdge NW Envelope
Overview
The SwiftEdge NW Envelope is a visually striking technical indicator designed for traders seeking to identify high-probability buy and sell opportunities in volatile markets. By combining the Relative Strength Index (RSI), Average True Range (ATR), and Nadaraya-Watson Envelope, this indicator provides a unique blend of momentum, volatility, and non-linear trend analysis. Its futuristic, AI-inspired aesthetic—featuring neon gradients and dynamic colors—enhances chart readability while delivering actionable trading signals.
What It Does
The SwiftEdge NW Envelope generates buy and sell signals based on price interactions with dynamically calculated support and resistance bands, confirmed by RSI conditions. The indicator:
Plots a Nadaraya-Watson Envelope to identify smooth, non-linear price trends and dynamic support/resistance zones.
Uses ATR to scale the envelope’s bands, adapting to market volatility.
Employs RSI to confirm overbought/oversold conditions, ensuring signals align with momentum.
Visualizes signals with neon-colored markers, background zones, and labels for intuitive decision-making.
How It Works
The indicator integrates three key components:
Nadaraya-Watson Envelope:
A kernel-based regression technique that smooths price data to create a central trend line (mean) and dynamic upper/lower bands.
Unlike traditional moving averages, it provides a non-linear, adaptive view of price trends, making it ideal for capturing complex market movements.
The band width is determined by ATR, ensuring responsiveness to volatility.
Average True Range (ATR):
Measures market volatility to scale the envelope’s bands.
A multiplier (default: 0.5) adjusts the sensitivity of the bands, allowing traders to fine-tune the indicator for different assets or market conditions.
Relative Strength Index (RSI):
A momentum oscillator with a shortened period (default: 5) for increased sensitivity.
Confirms buy signals when RSI is oversold (default: <30) and sell signals when RSI is overbought (default: >70).
Signal Logic
Buy Signal: Triggered when the price crosses above the lower band of the Nadaraya-Watson Envelope and RSI is below the oversold threshold. Marked by a green circle and a "BUY" label below the candle.
Sell Signal: Triggered when the price crosses below the upper band and RSI is above the overbought threshold. Marked by a magenta circle and a "SELL" label above the candle.
Background Zones: Green (buy) or red (sell) translucent zones highlight signal areas for quick recognition.
Visual Features
Dynamic Colors: The central trend line shifts between cyan (uptrend), purple (downtrend), or gray (neutral) based on price position relative to the mean.
Neon Gradient Fill: A translucent blue fill between the upper (green) and lower (red) bands creates a glowing, futuristic effect.
Modern Signal Markers: Small, vibrant circles (green for buy, magenta for sell) and clear labels enhance visual clarity.
Why This Combination?
The SwiftEdge NW Envelope combines RSI, ATR, and Nadaraya-Watson Envelope to create a robust trading tool:
RSI provides momentum confirmation, filtering out false signals in choppy markets.
ATR ensures the envelope adapts to changing volatility, making it suitable for both trending and ranging markets.
Nadaraya-Watson Envelope offers a sophisticated, non-linear alternative to traditional bands (e.g., Bollinger Bands), capturing subtle price dynamics. Together, these components deliver a balanced approach to trend-following and mean-reversion strategies, with RSI acting as a gatekeeper to improve signal reliability.
Customize Settings:
RSI Period (5): Adjust for more/less sensitivity to momentum.
RSI Overbought/Oversold (70/30): Modify thresholds to tighten or loosen signal conditions.
ATR Period (14) and Multiplier (0.5): Tune volatility sensitivity.
NW Length (25), Bandwidth (8.0), Multiplier (3.0): Adjust the smoothness and width of the envelope.
Interpret Signals:
Buy: Look for green circles and "BUY" labels when price crosses above the lower band, confirmed by low RSI.
Sell: Look for magenta circles and "SELL" labels when price crosses below the upper band, confirmed by high RSI.
Use background zones to quickly spot active signal areas.
Combine with Other Tools:
Pair with support/resistance levels or volume analysis for additional confirmation.
Test signals on a demo account before live trading.
Originality
The SwiftEdge NW Envelope stands out due to:
Its innovative use of Nadaraya-Watson regression, a less common but powerful tool for non-linear trend analysis.
A unique visual design with neon gradients and dynamic colors, inspired by AI and futuristic interfaces, making it both functional and visually engaging.
A streamlined signal system that balances momentum (RSI), volatility (ATR), and trend (Nadaraya-Watson), reducing noise and enhancing trade precision.
Notes
Best suited for volatile markets (e.g., forex, crypto, stocks) where price swings create clear envelope breakouts.
Adjust input parameters to match your trading style (e.g., shorter RSI period for scalping, wider bands for swing trading).
Always backtest and validate signals in your specific market and timeframe before trading.
Akshay - TheOne, TheMostWanted, TheUnbeatable, TheEnd➤ All-in-One Solution (❌ No repaint):
This Technical Chart contains, MA24 Condition, Supertrend Indicator, HalfTrend Signal, Ichimoku Cloud Status, Parabolic SAR (P_SAR), First 5-Minute Candle Analysis (ORB5min), Volume-Weighted Moving Average (VWMA), Price-Volume Trend (PVT), Oscillator Composite, RSI Condition, ADX & Trend Strength.
Technicals don't lie.
🚀 Overview and Key Features
Comprehensive Multi-Indicator Approach:
The script is built to be an all-in-one technical indicator on TradingView. It integrates several well-known indicators and overlays—including Supertrend, HalfTrend, Ichimoku Cloud, various moving averages (EMA, SMA, VWMA), oscillators (Klinger, Price Oscillator, Awesome Oscillator, Chaikin Oscillator, Ultimate Oscillator, SMI Ergodic Oscillator, Chande Momentum Oscillator, Detrended Price Oscillator, Money Flow Index), ADX, and Donchian Channels—to create a composite picture of market sentiment.
Signal Generation and Alerts:
It not only calculates these indicators but also aggregates their output into “Master Candle” signals. Vertical lines are drawn on the chart with corresponding alerts to indicate potential buy or sell opportunities based on robust, combined conditions.
Visual Layering:
Through the use of colored histograms, custom candle plots, trend lines, and background color changes, the script offers a multi-layered visual representation of data, providing clarity about both short-term signals and overall market trends.
⚙️ How It Works and Functionality
MA24 Condition:
Uses the 24-period moving average as a proxy; if the price is above it, the bar is colored green, and red if below, with neutrality when conditions aren’t met.
Supertrend Indicator:
Evaluates price relative to the Supertrend level (calculated via ATR), coloring green when price is above it and red when below.
HalfTrend Signal:
Determines trend shifts by comparing the current close to a calculated trend level; green indicates an upward trend, while red suggests a downtrend.
Ichimoku Cloud Status:
Analyzes the relationship between the Conversion and Base lines; a bullish (green) signal is given when price is above both or the Conversion line is higher than the Base line.
Parabolic SAR (P_SAR):
Colors the signal based on whether the current price is above (green) or below (red) the Parabolic SAR marker, indicating stop and reverse conditions.
First 5-Minute Candle Analysis (ORB5min):
Uses key levels from the first 5-minute candle; if price exceeds the candle’s low, VWAP, and MA, it’s bullish (green), otherwise bearish (red).
Volume-Weighted Moving Average (VWMA):
Compares the current price to volume-weighted averages; a price above these levels is shown in green, below in red.
Price-Volume Trend (PVT):
Determines bullish or bearish momentum by comparing PVT to its VWAP—green when above and red when below.
Oscillator Composite:
Aggregates signals from multiple oscillators; a majority of positive results turn it green, while negative dominance results in red.
RSI Condition:
Uses a simple RSI threshold of 50, with values above signifying bullish (green) momentum and below marking bearish (red) conditions.
ADX & Trend Strength:
Reflects overall trend strength through ADX and directional movements; a combination favoring bullish conditions colors it green, with red signaling bearish pressure.
Master Candle Overall Signal:
Combines multiple indicator outputs into one “Master” signal—green for a consensus bullish trend and red for a bearish outlook.
Scalp Signal Variation:
Focused on short-term price changes, this signal adjusts quickly; green indicates improving short-term conditions, while red signals a downturn.
📊 Visualizations and 🎨 User Experience (❌ no repaint)
Dynamic Histograms & Bar Plots:
Each indicator is represented as a colored bar (with added vertical offsets) to facilitate easy comparison of their respective bullish or bearish contributions.
Clear Color-Coding & Labels:
Green (e.g., GreenFluorescent) indicates bullish sentiment.
Red (e.g., RedFluorescent) indicates bearish sentiment.
Custom labels and descriptive text accompany each bar for clarity.
Interactive Charting:
The overall background color adapts based on the “Master Candle” condition, offering an instant read on market sentiment.
The current candlestick is overlaid with color cues to reinforce the indicator’s signal, enhancing the trading experience.
Real-Time Alerts:
Vertical lines appear on signal events (buy/sell triggers), complemented by alerts that help traders stay on top of actionable market moves.
Sharp lines:
The Sharp lines are plotted based upon the EMA5 cross over with the same market trend, marks this as good time to reentry.
🔧 Settings and Customization
Flexible Timeframe Input:
Users can select their preferred timeframe for analysis, making the indicator adaptable to intraday or longer-term trading styles.
Customizable Indicator Parameters:
➤ Supertrend: Adjust ATR length and multiplier factors.
➤ HalfTrend: Tweak amplitude and channel deviation settings.
➤ Ichimoku Cloud & Oscillators: Fine-tune the conversion/base lines and oscillator lengths to match individual trading strategies.
Visual Customization:
The script’s color schemes and plotting styles can be altered as needed, giving users the freedom to tailor the interface to their taste or existing chart setups.
🌟 Uniqueness of the Concept
Integrated Multi-Indicator Synergy:
Combines a diverse range of trend, momentum, and volume-based indicators into a single cohesive system for a holistic market view.
Master Candle Aggregation:
Consolidates numerous individual signals into a "Master Candle" that filters out noise and provides a clear, consensus-based trading signal.
Layered Visual Feedback:
Uses color-coded histograms, adaptive background cues, and dynamic overlays to deliver a visually intuitive guide to market sentiment at a glance.
Customization and Flexibility:
Offers adjustable parameters for each indicator, allowing users to tailor the system to fit diverse trading styles and market conditions.
✅ Conclusion:
Robust Trading Tool & Non-Repainting Reliability:
This versatile technical analysis tool computes an extensive range of indicators, aggregates them into a stable, non-repainting “Master Candle” signal, and maintains consistent, verifiable outputs on historical data.
Holistic Market Insight & Consistent Signal Generation:
By combining trend detection, momentum oscillators, and volume analysis, the indicator delivers a comprehensive snapshot of market conditions and generates dependable signals across varying timeframes.
User-Centric Design with Rich Visual Feedback:
Customizable settings, clear color-coded outputs, adaptive backgrounds, and real-time alerts work together to provide actionable, transparent feedback—enhancing the overall trading experience.
A Unique All-in-One Solution:
The integrated approach not only simplifies complex market dynamics into an easy-to-read visual guide but also empowers systematic traders with a powerful, adaptable asset for accurate decision-making.
❤️ Credits:
Pine Script™ User Manual
Supertrend
Ichimoku Cloud
Parabolic SAR
Price Volume Trend (PVT)
Average Directional Index (ADX)
Volume Oscillator
HalfTrend
Donchian Trend
Renko Compression Index (RCI)Renko Compression Index
The Renko Compression Index (RCI) is a unique market structure indicator designed to detect price compression zones on Renko-based charts. It measures the frequency of directional changes in Renko bricks over a specific period, identifying moments of trend indecision or consolidation that may precede major breakouts.