AVWAP CurvesThis indicator calculates and displays Anchored Volume-Weighted Average Price (AVWAP) for the 15-minute, 1-hour, and 4-hour timeframes. It helps identify volume-weighted support/resistance levels and trends based on volume and price data.
Multiple Timeframes: Displays AVWAP curves for 15m, 1h, and 4h. Users can toggle visibility for each timeframe.
Price Anchor Selection: Choose between Low, High, or HL2 as the price anchor for the AVWAP calculation.
Custom Date & Time Anchor: Set a specific start time for the AVWAP calculation.
Alerts: Alerts are triggered when the price crosses above or below any AVWAP curve.
Indicadores y estrategias
Volume Weighted Sign ChangeThe VWSCI measures the relationship between price reversals and volume. Specifically, it calculates the proportion of total volume in a given window that occurs at bars where the price changes direction—i.e., where the price difference switches from positive to negative or vice versa, indicating a local maximum or minimum.
• Low VWSCI values (close to 0) suggest that little volume is associated with price reversals, which typically occurs in strong trending markets where price moves consistently in one direction with high volume, and pullbacks (if any) occur on low volume.
• High VWSCI values (closer to 100) indicate that a significant portion of the volume is tied to price turning points, which is characteristic of a ranging or choppy market with frequent reversals.
This approach combines price action (via sign changes in price differences) and volume, offering a novel twist on traditional momentum or volume-based indicators like RSI, OBV, or the Volume-Price Trend.
Engulfing Candles (ATR-Based)This indicator detects Engulfing Patterns with an ATR-based filtering mechanism and trend confirmation. Unlike a basic engulfing pattern indicator that only checks if a current candle engulfs the previous one, this script incorporates trend detection using either the 50-period SMA alone or a combination of 50 and 200-period SMAs to ensure that signals align with the broader trend. The indicator identifies Bullish Engulfing patterns when a strong bullish candle engulfs a smaller bearish candle in a downtrend and Bearish Engulfing patterns when a strong bearish candle engulfs a smaller bullish candle in an uptrend. It also generates alerts and visually marks these patterns with labels ("BU" for bullish and "BE" for bearish) while highlighting the background accordingly.
What sets this indicator apart from a normal engulfing indicator is its ATR-based filtering system, which ensures that only significant engulfing candles are considered. Instead of accepting any engulfing pattern, the script measures candle body size relative to 1.5x ATR (configurable) to filter out weak signals. It also differentiates between long-bodied and small-bodied candles to confirm that the engulfing pattern represents real momentum shifts. This approach reduces false signals caused by small, insignificant candles and ensures that traders focus on high-probability reversal patterns. By integrating trend-based filtering and ATR-based confirmation, this indicator provides more reliable and context-aware engulfing signals than a standard engulfing pattern detector.
MSB BOS Market Structure [FTB]Track Market Structure Breaks (MSB) and Breaks of Structure (BOS) on your charts. This indicator does exactly that without clutter and with easy-to-spot.
🔑 Features:
MSB (Market Structure Break): Shows when price flips and breaks the previous high/low — possible start of a new trend.
BOS (Break of Structure): Highlights key structural breakouts in line with the existing trend.
✅ Pivot-Based Analysis (Body Focused)
Uses candle body-based pivot highs and lows to find clean market structure points (no wicks confusion here!).
Adjustable pivot strength — control how many candles you want on either side to define a swing.
✅ Clean Visual Markings
MSB and BOS lines with optional labels so you see exactly where breaks happen.
Customizable line style (Solid, Dashed, Dotted) to match your chart aesthetic.
Optional pivot markers to show minor swing highs/lows.
✅ Alerts Ready
Set alerts for any MSB or BOS, or filter to specific bullish/bearish breaks — never miss a key level again
💡 How to Use This Indicator:
Identify Trend Shifts: Use MSB to spot early trend reversals — when a previous structure breaks against the trend.
Catch Continuations: Watch for BOS to confirm trend continuation — great for riding the trend!
⚙️ Settings You Can Adjust:
Pivot Strength: How many candles to look back and forward for swing points (default: 3).
Show Pivots: Optional — highlight swing highs and lows for extra clarity.
Panic Drop Stock Market Bull/Bear Market Panic Drop Bull/Bear
What It Does:
This indicator identifies bull and bear markets for the S&P 500 (or any stock/index) using the 50-period and 150-period Simple Moving Averages (SMAs). A green background signals a confirmed bull market when the 50 SMA is above the 150 SMA and the 150 SMA slope is flat or upward. A red background signals a confirmed bear market when the 50 SMA is below the 150 SMA and the 150 SMA slope is downward. The background color persists until a new confirmed state is detected, ensuring no gaps—perfect for spotting long-term market trends whether you’re a beginner, trend trader, or long-term investor.
Key Features:
Plots 50 SMA (default: blue line) and 150 SMA (default: orange line).
Background highlights: green for bull markets, red for bear markets.
Persistent background color—no gaps during unconfirmed periods.
Alerts for confirmed bull and bear market transitions.
Fully adjustable: MA periods, slope lookback, and more.
How to Use It:
Add to your S&P 500 chart (e.g., SPX or SPY) on a daily or weekly timeframe (daily default recommended for long-term trends).
Watch for background color changes:
Green background: Confirmed bull market—consider long positions or holding.
Red background: Confirmed bear market—consider shorting or exiting longs.
Customize via settings:
Adjust MA periods (default: 50 and 150).
Set slope lookback (default: 5 bars) to control slope sensitivity.
Change MA colors if desired.
Set alerts: Right-click on the chart > "Add Alert" > Select "Bull Market Confirmed" or "Bear Market Confirmed."
Trade smart: Use the background to confirm market regimes—e.g., go long during green (bull) phases above key support levels, or protect capital during red (bear) phases.
Why It’s Great:
Beginners: Simple background colors make market trends easy to spot.
Trend Traders: 50/150 SMA crossover with slope confirmation catches major market shifts.
Long-Term Investors: Persistent background ensures you stay in the trend without noise.
Created by Timothy Assi (Panic Drop), eToro’s elite investor. Test it, tweak it, and trade with confidence!
Time-Weighted Price Action IndicatorThe Time-Weighted Price Action Indicator is a simple yet effective tool designed to detect consolidation zones based on time duration and highlight potential reversal points using a contrarian breakout logic. Instead of following traditional breakout strategies, this indicator aims to capitalize on false breakouts and reversal entries.
How It Works
• The indicator identifies a price range (zone) using a configurable lookback period.
• If the price remains within this range for a specified number of bars (threshold), a consolidation zone is confirmed.
• Once a breakout or breakdown from this zone occurs, the indicator triggers a reversed signal — suggesting a potential reversal instead of a trend-following entry.
• Support and resistance levels are marked visually, and BUY/SELL labels are plotted when price re-enters the zone, indicating potential exhaustion or traps.
Key Features
• ✅ Time-based consolidation detection
• ✅ Contrarian signal logic (Buy at breakdowns, Sell at breakouts)
• ✅ Dynamic zone plotting with support/resistance visualization
• ✅ Auto-reset after each breakout for fresh zone detection
• ✅ Visual labels and alerts for BUY/SELL signals
How to Use
• Ideal for range-bound markets or identifying trap zones around support/resistance.
• Use in conjunction with volume, momentum, or trend filters to refine entries.
• Can complement mean reversion strategies or be used as a signal confirmation tool.
Why This Combination?
This approach blends time-based consolidation logic with a contrarian price action perspective, offering traders a different lens to analyze markets. Instead of blindly following breakouts, it highlights areas where price rejections and false breakouts often occur — common in algorithm-driven markets.
Why It’s Worth Using
This indicator helps you stay ahead of trap zones, identify reversal spots, and understand price behavior in consolidation zones — a critical edge, especially in sideways or choppy markets. It adds context to price movement, helping traders avoid common breakout failures.
Note:
• No performance guarantees or exaggerated claims.
• No solicitation or promotional language used.
• This is a free, open-source educational tool meant to aid price action understanding.
[S1B] Engulfing Orderblock
The Engulfing Orderblock indicator is a custom script designed to visually highlight and track bullish and bearish engulfing patterns on a price chart. These patterns are widely used in technical analysis to identify potential reversal points. The indicator dynamically draws colored boxes around the previous candle involved in the engulfing event, making it easier for traders to spot these setups in the price action.
Key Features:
Bullish Engulfing Pattern:
When a bearish candle (one where the open is higher than the close) is followed by a candle whose close is above the previous candle’s open, the indicator detects a bullish engulfing pattern. A green box is drawn around the previous candle.
• Box Style Options: Users can choose whether the box represents the candle’s body (from open to close) or its wick (from open to low).
Bearish Engulfing Pattern:
When a bullish candle (one where the open is lower than the close) is followed by a candle whose close is below the previous candle’s open, a bearish engulfing pattern is identified. A red box is drawn around the previous candle.
• Box Style Options: The box can be drawn using the candle’s body (from close to open) or its wick (from high to open), according to the user’s preference.
Dynamic Box Management:
Once a box is drawn, the indicator continuously monitors the price. If the price moves beyond the box’s range, the box is either deleted or its color changes to gray, indicating that the pattern’s relevance may be diminishing.
Max Pattern Tracking:
To prevent clutter, the indicator limits the number of displayed engulfing boxes to 500 by default. Older boxes are removed as new patterns are detected.
Customization:
Users can adjust the number of previous bars scanned for engulfing patterns as well as the maximum number of patterns displayed. An option is also provided to select whether the box should reflect the candle’s body or include the wick.
How It Works:
Pattern Detection:
The script compares the current price with the previous candle’s data to detect either a bullish or bearish engulfing pattern.
Box Creation:
When a pattern is detected, a colored box is drawn around the previous candle’s price range (using the user-selected style) to visually highlight the orderblock.
Pattern Expiry and Cleanup:
The indicator monitors each drawn box, deleting or modifying it (changing the color to gray) if the price moves significantly beyond the box’s range.
Remark:
The original concept for this indicator is from daisukeburn .
Awesome Oscillator (AO) with Signals [AIBitcoinTrend]👽 Multi-Scale Awesome Oscillator (AO) with Signals (AIBitcoinTrend)
The Multi-Scale Awesome Oscillator transforms the traditional Awesome Oscillator (AO) by integrating multi-scale wavelet filtering, enhancing its ability to detect momentum shifts while maintaining responsiveness across different market conditions.
Unlike conventional AO calculations, this advanced version refines trend structures using high-frequency, medium-frequency, and low-frequency wavelet components, providing traders with superior clarity and adaptability.
Additionally, it features real-time divergence detection and an ATR-based dynamic trailing stop, making it a powerful tool for momentum analysis, reversals, and breakout strategies.
👽 What Makes the Multi-Scale AO – Wavelet-Enhanced Momentum Unique?
Unlike traditional AO indicators, this enhanced version leverages wavelet-based decomposition and volatility-adjusted normalization, ensuring improved signal consistency across various timeframes and assets.
✅ Wavelet Smoothing – Multi-Scale Extraction – Captures short-term fluctuations while preserving broader trend structures.
✅ Frequency-Based Detail Weights – Separates high, medium, and low-frequency components to reduce noise and improve trend clarity.
✅ Real-Time Divergence Detection – Identifies bullish and bearish divergences for early trend reversals.
✅ Crossovers & ATR-Based Trailing Stops – Implements intelligent trade management with adaptive stop-loss levels.
👽 The Math Behind the Indicator
👾 Wavelet-Based AO Smoothing
The indicator applies multi-scale wavelet decomposition to extract high-frequency, medium-frequency, and low-frequency trend components, ensuring an optimal balance between reactivity and smoothness.
sma1 = ta.sma(signal, waveletPeriod1)
sma2 = ta.sma(signal, waveletPeriod2)
sma3 = ta.sma(signal, waveletPeriod3)
detail1 = signal - sma1 // High-frequency detail
detail2 = sma1 - sma2 // Intermediate detail
detail3 = sma2 - sma3 // Low-frequency detail
advancedAO = weightDetail1 * detail1 + weightDetail2 * detail2 + weightDetail3 * detail3
Why It Works:
Short-Term Smoothing: Captures rapid fluctuations while minimizing noise.
Medium-Term Smoothing: Balances short-term and long-term trends.
Long-Term Smoothing: Enhances trend stability and reduces false signals.
👾 Z-Score Normalization
To ensure consistency across different markets, the Awesome Oscillator is normalized using a Z-score transformation, making overbought and oversold levels stable across all assets.
normFactor = ta.stdev(advancedAO, normPeriod)
normalizedAO = advancedAO / nz(normFactor, 1)
Why It Works:
Standardizes AO values for comparison across assets.
Enhances signal reliability, preventing misleading spikes.
👽 How Traders Can Use This Indicator
👾 Divergence Trading Strategy
Bullish Divergence
Price makes a lower low, while AO forms a higher low.
A buy signal is confirmed when AO starts rising.
Bearish Divergence
Price makes a higher high, while AO forms a lower high.
A sell signal is confirmed when AO starts declining.
👾 Buy & Sell Signals with Trailing Stop
Bullish Setup:
✅AO crosses above the bullish trigger level → Buy Signal.
✅Trailing stop placed at Low - (ATR × Multiplier).
✅Exit if price crosses below the stop.
Bearish Setup:
✅AO crosses below the bearish trigger level → Sell Signal.
✅Trailing stop placed at High + (ATR × Multiplier).
✅Exit if price crosses above the stop.
👽 Why It’s Useful for Traders
Wavelet-Enhanced Filtering – Retains essential trend details while eliminating excessive noise.
Multi-Scale Momentum Analysis – Separates different trend frequencies for enhanced clarity.
Real-Time Divergence Alerts – Identifies early reversal signals for better entries and exits.
ATR-Based Risk Management – Ensures stops dynamically adapt to market conditions.
Works Across Markets & Timeframes – Suitable for stocks, forex, crypto, and futures trading.
👽 Indicator Settings
AO Short Period – Defines the short-term moving average for AO calculation.
AO Long Period – Defines the long-term moving average for AO smoothing.
Wavelet Smoothing – Adjusts multi-scale decomposition for different market conditions.
Divergence Detection – Enables or disables real-time divergence analysis. Normalization Period – Sets the lookback period for standard deviation-based AO normalization.
Cross Signals Sensitivity – Controls crossover signal strength for buy/sell signals.
ATR Trailing Stop Multiplier – Adjusts the sensitivity of the trailing stop.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
FTB Smart Trader System — Market Maker Levels, EMAs & VectorsThe FTB Trade Engine is an indicator suite I built for myself as a crypto trader. It's designed specifically for trading Institution levels, EMAs, PVSRA Volume Candles, and Session Timings. It helps me spot high probability trade setups without overcomplicating things.
🔑 Features of this Indicator
📌 🔥 Key Session Levels (extend lines in settings as needed)
✅ Weekly High & Low (HOW/LOW) — Automatically plots the previous week's high and low
✅ Daily High & Low (HOD/LOD) — Marks the prior day's range
✅ Asia Session High & Low — Plots the Asian session’s high and low, helping you detect potential breakouts or fakeouts, as Asia often sets the initial high and low of the day.
✅ 50% Asia Level — Automatically calculates and displays the midpoint between Asia’s high and low, an important level for intraday trading.
📌 🔥 Advanced EMA Suite
✅ Includes 10, 20, 50, 200, and 800 EMAs — providing key zones of support, resistance, and trend direction.
👀 Good to know: the break of the 50EMA WITH a vector candle is significant for reversals.
📌 🔥 PVSRA Candles
(👀 IMPORTANT: To properly view PVSRA candles, make sure to UNCHECK all default candle settings — Color Bars, Body, Borders, and Wick — in your chart's candle settings.)
✅ Price, Volume, Support & Resistance Analysis (PVSRA) Candles — These special candles combine price action with volume analysis, color-coded to highlight areas potentially influenced by market makers, institutions, and large players. Perfect for identifying key volume zones and quickly analyzing any coin or pair without switching tools.
Candle Colors Explained:
Bullish Candles:
🟢 Green — 200% increase in volume on bullish moves (strong buyer presence).
🔵 Blue — 150% increase in bullish volume, but may also indicate fatigue or possible reversal.
⚪ White — Normal bullish volume (standard green candles).
Bearish Candles:
🔴 Red — 200% increase in bearish volume compared to the last 10 candles (strong selling).
🟣 Magenta — 150% increase in bearish volume, signaling possible continuation or exhaustion.
⚫ Gray — Normal bearish volume (standard red candles).
Price / 200 SMA Ratio (Pr)Price / 200 SMA Ratio (Pr) Indicator
The Price / 200 SMA Ratio (Pr) indicator is designed to help traders analyze the relationship between the current price and the 200-period Simple Moving Average (SMA). By calculating the ratio of the close price to the 200 SMA, the indicator provides a visual representation of how the price compares to the long-term trend, giving traders a clear view of potential overbought or oversold conditions.
How It Works:
Ratio Calculation:
The core of this indicator lies in the ratio between the current close price and the 200-period Simple Moving Average (SMA). The formula is straightforward:
Ratio = Close Price / 200 SMA
This ratio indicates whether the current price is above or below the long-term trend (the 200 SMA). A ratio greater than 1 means the price is above the 200 SMA, while a ratio below 1 suggests the price is below the 200 SMA.
Color-Coded Ratio Representation:
The ratio is displayed as a line on the chart with a color that changes dynamically based on the value of the ratio. The color-coding system helps quickly identify key levels:
Black: When the ratio is greater than 5, the price is significantly above the 200 SMA, indicating a highly overbought condition.
Red: When the ratio is greater than 3.5, it signals that the price is significantly above the long-term average but not in extreme territory.
Blue: When the ratio is less than 1, the price is below the 200 SMA, indicating that the market may be in an oversold condition.
Purple: When the ratio is below 0.7, it suggests an extremely oversold market, well below the long-term average.
Green: For values in between, the ratio is considered to be in a more neutral range, showing a balanced market position.
Horizontal Reference Lines:
To make the interpretation of the ratio easier, the indicator includes several reference lines plotted at key ratio levels. These lines help traders visualize specific price zones, giving them clear boundaries for potential trading decisions:
5 Zone (Black line): Marks an extremely high price level, indicating a highly overbought condition.
3.5 Zone (Red line): Represents the upper price zone, where prices are significantly higher than the 200 SMA.
2 Zone (Purple line): This line marks the mid-range of the ratio, providing a visual representation of the transition between overbought and oversold conditions.
1 Zone (Orange line): The 1.0 line is where the price equals the 200 SMA, indicating a balanced market. Prices above 1.0 are considered above average, and prices below 1.0 are below average.
0.7 Zone (Blue line): Represents a very low price level, suggesting an extremely oversold market.
Extra Low Zone (Green line): This line marks an even lower price level, indicating severe oversold conditions.
Background Coloring:
In addition to the ratio line and reference lines, the background color of the chart changes dynamically to provide additional context to the trader:
Red Background: When the ratio is greater than 3.5, the background becomes red, signaling an overbought market condition.
Blue Background: When the ratio is less than 1, the background turns blue, indicating a potential oversold market.
Black Background: If the ratio exceeds 5, the background will be black, signifying an extreme overbought condition.
Green Background: If the ratio drops below 0.7, the background turns green, highlighting an extremely oversold market.
Candle Coloring:
The indicator also changes the color of the individual price bars (candles) based on the ratio value:
Black Candles: When the ratio is greater than 5 or less than 0.7, the price bars are black to emphasize extreme conditions in the market.
White Candles: For all other values, the candles are white, representing a neutral market condition.
What This Indicator Tells You:
Overbought Conditions: When the ratio is significantly above 1 (especially greater than 3.5 or 5), it indicates that the price is far above the 200 SMA, suggesting that the market may be overbought and could experience a correction.
Oversold Conditions: When the ratio is significantly below 1 (especially below 0.7 or 0.5), it suggests that the price is far below the 200 SMA, indicating that the market may be oversold and could be due for a bounce.
Trend and Momentum: The ratio provides insight into the overall trend. If the ratio is consistently above 1, it means the price is generally in an uptrend, and if it’s below 1, it indicates a downtrend.
Why Use This Indicator?
The Price / 200 SMA Ratio indicator is a valuable tool for traders who want to gain insights into the strength or weakness of the price relative to the long-term trend (200 SMA). The color-coding system provides an easy-to-read visual cue, and the reference lines allow traders to identify key price levels where potential reversal or continuation could occur. It helps to spot areas of overbought or oversold conditions, making it ideal for traders looking to enter or exit positions based on extreme price movements.
By combining this indicator with other technical analysis tools, traders can enhance their strategy and make more informed decisions in the market.
EMA Sniper – Precision Trading with EMA 21/50Title: EMA Sniper – Precision Trading with EMA 21/50
Description:
🚀 EMA Sniper is a powerful trading tool designed to identify trend shifts with precision using the EMA 21/50 crossover, while also displaying Stop Loss (SL) and Take Profit (TP) levels directly on the chart.
🔹 Features:
✅ EMA 21/50 Crossover Signals – Buy signals appear when EMA 21 crosses above EMA 50, and sell signals appear when EMA 21 crosses below EMA 50.
✅ Smart Stop Loss & Take Profit – SL is dynamically placed below/above EMA 50 for optimized risk management, while TP follows a 2:1 risk/reward ratio.
✅ Clear Visual Alerts – The indicator plots SL and TP levels as lines on the chart, along with buy and sell markers for quick decision-making.
✅ Multi-Market & Multi-Timeframe – Works across forex, crypto, stocks, and indices on any timeframe.
🚀 Perfect for traders looking for a structured approach to trend-based trading!
Let me know if you’d like any modifications! 🔥
*Auto Backtest & Optimize EngineFull-featured Engine for Automatic Backtesting and parameter optimization. Allows you to test millions of different combinations of stop-loss and take profit parameters, including on any connected indicators.
⭕️ Key Futures
Quickly identify the optimal parameters for your strategy.
Automatically generate and test thousands of parameter combinations.
A simple Genetic Algorithm for result selection.
Saves time on manual testing of multiple parameters.
Detailed analysis, sorting, filtering and statistics of results.
Detailed control panel with many tooltips.
Display of key metrics: Profit, Win Rate, etc..
Comprehensive Strategy Score calculation.
In-depth analysis of the performance of different types of stop-losses.
Possibility to use to calculate the best Stop-Take parameters for your position.
Ability to test your own functions and signals.
Customizable visualization of results.
Flexible Stop-Loss Settings:
• Auto ━ Allows you to test all types of Stop Losses at once(listed below).
• S.VOLATY ━ Static stop based on volatility (Fixed, ATR, STDEV).
• Trailing ━ Classic trailing stop following the price.
• Fast Trail ━ Accelerated trailing stop that reacts faster to price movements.
• Volatility ━ Dynamic stop based on volatility indicators.
• Chandelier ━ Stop based on price extremes.
• Activator ━ Dynamic stop based on SAR.
• MA ━ Stop based on moving averages (9 different types).
• SAR ━ Parabolic SAR (Stop and Reverse).
Advanced Take-Profit Options:
• R:R: Risk/Reward ━ sets TP based on SL size.
• T.VOLATY ━ Calculation based on volatility indicators (Fixed, ATR, STDEV).
Testing Modes:
• Stops ━ Cyclical stop-loss testing
• Pivot Point Example ━ Example of using pivot points
• External Example ━ Built-in example how test functions with different parameters
• External Signal ━ Using external signals
⭕️ Usage
━ First Steps:
When opening, select any point on the chart. It will not affect anything until you turn on Manual Start mode (more on this below).
The chart will immediately show the best results of the default Auto mode. You can switch Part's to try to find even better results in the table.
Now you can display any result from the table on the chart by entering its ID in the settings.
Repeat steps 3-4 until you determine which type of Stop Loss you like best. Then set it in the settings instead of Auto mode.
* Example: I flipped through 14 parts before I liked the first result and entered its ID so I could visually evaluate it on the chart.
Then select the stop loss type, choose it in place of Auto mode and repeat steps 3-4 or immediately follow the recommendations of the algorithm.
Now the Genetic Algorithm at the bottom right will prompt you to enter the Parameters you need to search for and select even better results.
Parameters must be entered All at once before they are updated. Enter recommendations strictly in fields with the same names.
Repeat steps 5-6 until there are approximately 10 Part's left or as you like. And after that, easily pour through the remaining Parts and select the best parameters.
━ Example of the finished result.
━ Example of use with Takes
You can also test at the same time along with Take Profit. In this example, I simply enabled Risk/Reward mode and immediately specified in the TP field Maximum RR, Minimum RR and Step. So in this example I can test (3-1) / 0.1 = 20 Takes of different sizes. There are additional tips in the settings.
━
* Soon you will start to understand how the system works and things will become much easier.
* If something doesn't work, just reset the engine settings and start over again.
* Use the tips I have left in the settings and on the Panel.
━ Details:
Sort ━ Sorting results by Score, Profit, Trades, etc..
Filter ━ Filtring results by Score, Profit, Trades, etc..
Trade Type ━ Ability to disable Long\Short but only from statistics.
BackWin ━ Backtest Window Number of Candle the script can test.
Manual Start ━ Enabling it will allow you to call a Stop from a selected point. which you selected when you started the engine.
* If you have a real open position then this mode can help to save good Stop\Take for it.
1 - 9 Сheckboxs ━ Allow you to disable any stop from Auto mode.
Ex Source - Allow you to test Stops/Takes from connected indicators.
Connection guide:
//@version=6
indicator("My script")
rsi = ta.rsi(close, 14)
buy = not na(rsi) and ta.crossover (rsi, 40) // OS = 40
sell = not na(rsi) and ta.crossunder(rsi, 60) // OB = 60
Signal = buy ? +1 : sell ? -1 : 0
plot(Signal, "🔌Connector🔌", display = display.none)
* Format the signal for your indicator in a similar style and then select it in Ex Source.
⭕️ How it Works
Hypothesis of Uniform Distribution of Rare Elements After Mixing.
'This hypothesis states that if an array of N elements contains K valid elements, then after mixing, these valid elements will be approximately uniformly distributed.'
'This means that in a random sample of k elements, the proportion of valid elements should closely match their proportion in the original array, with some random variation.'
'According to the central limit theorem, repeated sampling will result in an average count of valid elements following a normal distribution.'
'This supports the assumption that the valid elements are evenly spread across the array.'
'To test this hypothesis, we can conduct an experiment:'
'Create an array of 1,000,000 elements.'
'Select 1,000 random elements (1%) for validation.'
'Shuffle the array and divide it into groups of 1,000 elements.'
'If the hypothesis holds, each group should contain, on average, 1~ valid element, with minor variations.'
* I'd like to attach more details to My hypothesis but it won't be very relevant here. Since this is a whole separate topic, I will leave the minimum part for understanding the engine.
Practical Application
To apply this hypothesis, I needed a way to generate and thoroughly mix numerous possible combinations. Within Pine, generating over 100,000 combinations presents significant challenges, and storing millions of combinations requires excessive resources.
I developed an efficient mechanism that generates combinations in random order to address these limitations. While conventional methods often produce duplicates or require generating a complete list first, my approach guarantees that the first 10% of possible combinations are both unique and well-distributed. Based on my hypothesis, this sampling is sufficient to determine optimal testing parameters.
Most generators and randomizers fail to accommodate both my hypothesis and Pine's constraints. My solution utilizes a simple Linear Congruential Generator (LCG) for pseudo-randomization, enhanced with prime numbers to increase entropy during generation. I pre-generate the entire parameter range and then apply systematic mixing. This approach, combined with a hybrid combinatorial array-filling technique with linear distribution, delivers excellent generation quality.
My engine can efficiently generate and verify 300 unique combinations per batch. Based on the above, to determine optimal values, only 10-20 Parts need to be manually scrolled through to find the appropriate value or range, eliminating the need for exhaustive testing of millions of parameter combinations.
For the Score statistic I applied all the same, generated a range of Weights, distributed them randomly for each type of statistic to avoid manual distribution.
Score ━ based on Trade, Profit, WinRate, Profit Factor, Drawdown, Sharpe & Sortino & Omega & Calmar Ratio.
⭕️ Notes
For attentive users, a little tricks :)
To save time, switch parts every 3 seconds without waiting for it to load. After 10-20 parts, stop and wait for loading. If the pause is correct, you can switch between the rest of the parts without loading, as they will be cached. This used to work without having to wait for a pause, but now it does slower. This will save a lot of time if you are going to do a deeper backtest.
Sometimes you'll get the error “The scripts take too long to execute.”
For a quick fix you just need to switch the TF or Ticker back and forth and most likely everything will load.
The error appears because of problems on the side of the site because the engine is very heavy. It can also appear if you set too long a period for testing in BackWin or use a heavy indicator for testing.
Manual Start - Allow you to Start you Result from any point. Which in turn can help you choose a good stop-stick for your real position.
* It took me half a year from idea to current realization. This seems to be one of the few ways to build something automatic in backtest format and in this particular Pine environment. There are already better projects in other languages, and they are created much easier and faster because there are no limitations except for personal PC. If you see solutions to improve this system I would be glad if you share the code. At the moment I am tired and will continue him not soon.
Also You can use my previosly big Backtest project with more manual settings(updated soon)
Triple Doji SequenceThe Triple Doji Sequence indicator helps traders identify consecutive Doji candlestick patterns, allowing them to choose between spotting single, double, or triple Dojis. A Doji is detected when the candle's body is small relative to its wicks, with either the upper or lower wick being significantly larger. Users can customize their own Doji criteria by adjusting the body size and wick dominance settings. The indicator ensures that consecutive Dojis align in the same direction before confirming a valid pattern, making it easier to identify market indecision or potential trend reversals.
When the chosen Doji sequence is detected, the indicator plots a star (*) above bearish Dojis (upper wick dominant) and below bullish Dojis (lower wick dominant). It also sends alerts when a valid sequence is confirmed at the close of the bar. This tool helps traders refine their strategy by spotting repeated Doji formations, which may indicate key turning points or continuation patterns in price action.
How to Use the Triple Doji Sequence Indicator?
Apply the Indicator:
Add the Triple Doji Sequence indicator to your TradingView chart.
It will automatically scan for Doji patterns based on your settings.
Customize Your Doji Criteria:
Adjust the body size and wick dominance settings to define what qualifies as a Doji.
Choose whether to detect single, double, or triple Doji sequences.
Interpret the Signals:
A star (*) above a candle signals a bearish Doji (upper wick dominant).
A star (*) below a candle signals a bullish Doji (lower wick dominant).
Set Up Alerts:
Enable alerts to receive notifications when a Doji sequence is confirmed at bar close.
Choose alert frequency based on your trading strategy (e.g., once per bar, once per bar close).
Use in Trading Strategy:
Doji sequences can indicate trend reversals or market indecision.
Combine this indicator with support/resistance levels, volume, or other indicators to confirm signals.
PS: Good luck in finding a Triple Doji :)
Panic Drop Bitcoin 5 EMA Buy & Sell SignalPanic Drop BTC 5 EMA
What It Does:
This indicator tracks Bitcoin’s price against a 5-period Exponential Moving Average (EMA) to deliver simple buy and sell signals. A green arrow below the candle signals a buy when Bitcoin closes above the 5-EMA, while a red arrow above signals a sell when it closes below. Perfect for spotting Bitcoin’s momentum shifts—whether you’re a newbie, crypto trader, or short on time.
Key Features:
Plots a customizable 5-EMA (default: blue line).
Buy () and Sell () signals on crossovers/crossunders.
Optional background highlight: green (above EMA), red (below).
Alerts for buy/sell triggers.
Fully adjustable: timeframe, colors, signal toggles.
How to Use It:
Add to your BTC/USD chart (works on any timeframe—daily default recommended).
Watch for green arrows (buy) below candles and red arrows (sell) above.
Customize via settings:
Adjust EMA period (default: 5).
Set timeframe (e.g., "D" for daily, "1H" for hourly).
Change colors or toggle signals/background off.
Set alerts: Right-click a signal > "Add Alert" > Select "Buy Signal" or "Sell Signal."
Trade smart: Use signals to catch Bitcoin dips (e.g., buy below $100K) or exits.
Why It’s Great:
Beginners: Clear arrows simplify decisions.
Crypto Traders: 5-EMA catches Bitcoin’s fast moves.
Busy Investors: Signals save time—no deep analysis needed.
Created by Timothy Assi (Panic Drop), eToro’s elite investor. Test it, tweak it, and trade with confidence!
Ethereum Logarithmic Regression Bands (Fine-Tuned)This indicator, "Ethereum Logarithmic Regression Bands (Fine-Tuned)," is my attempt to create a tool for estimating long-term trends in Ethereum (ETH/USD) price action using logarithmic regression bands. Please note that I am not an expert in financial modeling or coding—I developed this as a personal project to serve as a rough estimation rather than a precise or professional trading tool. The data was fitted to non-bubble periods of Ethereum's history to provide a general trendline, but it’s far from perfect.
I’m sharing this because I couldn’t find a similar indicator available, and I thought it might be useful for others who are also exploring ETH’s long-term behavior. The bands start from Ethereum’s launch price and are adjustable via input parameters, but they are based on my best effort to align with historical data. With some decent coding experience, I’m sure someone could refine this further—perhaps by optimizing the coefficients or incorporating more advanced fitting techniques. Feel free to tweak the code, suggest improvements, or use it as a starting point for your own projects!
How to Use:
** THIS CHART IS SPECIFICALLY CODED FOR ETH/USD (KRAKEN) ON THE WEEKLY TIMEFRAME IN LOG VIEW**
The main band (blue) represents the logarithmic regression line.
The upper (red) and lower (green) bands provide a range around the main trend, adjustable with multipliers.
Adjust the "Launch Price," "Base Coefficient," "Growth Coefficient," and other inputs to experiment with different fits.
Disclaimer:
This is not financial advice. Use at your own risk, and always conduct your own research before making trading decisions.
Moving Average Convergence Divergence with Enhanced Cross Alerts
Overview of Features and Settings
- Customizable Parameters:
- Fast and Slow Periods: Users can set the duration for both the fast (default 12) and slow (default 26) moving averages.
- Source Selection: The indicator uses the closing price (close) by default, though this can be modified to any other data source.
- Signal Smoothing: The smoothing period for the signal line is adjustable (default 9), and you can choose whether to use SMA or EMA for both the oscillator and the signal line calculations.
Calculation Logic
1. Calculation of Moving Averages:
- The fast and slow moving averages are computed based on the chosen moving average type (SMA or EMA) over the specified periods.
- The MACD line is then determined as the difference between these two moving averages.
2. Signal Line and Histogram:
- Signal Line: Created by smoothing the MACD line, with the option to choose between SMA and EMA.
- Histogram: Represents the difference between the MACD line and the signal line, visually indicating the divergence between the two.
Detection of Cross Events
The script identifies two specific cross events with additional filtering conditions:
- Bullish Cross:
- The MACD line **crosses above** the signal line.
- The previous value of the histogram is negative, and both the MACD and the signal line are below zero.
- This condition suggests that a cross occurring in the negative territory might indicate a potential upward trend reversal.
- **Bearish Cross:**
- The MACD line **crosses below** the signal line.
- The previous value of the histogram is positive, and both the MACD and the signal line are above zero.
- This condition indicates that a cross in the positive territory may signal a potential downward trend reversal.
For each event, there are dedicated alert conditions defined that trigger notifications when the criteria are met.
Visualization
- Displayed Elements:
- Histogram: Rendered as a column chart with colors that change based on the rate of change. For instance, a rising positive histogram uses a stronger green, whereas a declining positive histogram uses a lighter shade.
- MACD and Signal Lines: Displayed as separate lines with distinct colors to differentiate them.
- Zero Line: A horizontal line is drawn to help visually pinpoint the zero level.
- Crossing Signals:
- Optional markers in the form of arrows appear on the chart:
- **Bullish Cross: A green, upward-pointing triangle at the bottom.
- **Bearish Cross: A red, downward-pointing triangle at the top.
Summary
This indicator not only incorporates the traditional MACD components but also offers the following additional benefits:
- **Enhanced Accuracy:** Extra conditions (such as checking the previous histogram value and the position of the lines relative to zero) improve the identification of significant cross events.
- **Customization:** Users can personalize the moving average types and periods, making the indicator adaptable to different trading strategies.
- **Visual Assistance:** The combination of histogram columns, lines, and markers helps quickly pinpoint potential trend reversals, thereby aiding trading decisions.
This comprehensive description is intended to clearly demonstrate to users how the indicator works, outlining its calculations, filtering conditions, and its role in identifying cross events within technical analysis.
Volatility BandsThe Volatility Bands script is a custom indicator designed to help traders visualize volatility levels in the market. It calculates dynamic bands around a central moving average, providing insights into potential support and resistance levels based on recent price action.
The script calculates multiple volatility bands (u0, u1, u2, d0, d1, d2) that adjust based on recent price movements. The outer bands (u2 and d2) represent extreme volatility levels, while the inner bands (u0, u1, d0, d1) indicate more immediate support and resistance.
Look for price reactions at the band levels. A touch of the upper bands may indicate overbought conditions, while a touch of the lower bands may indicate oversold conditions.
Central Moving Average: A smoothed moving average that adapts to price changes, providing a clear trend direction.
The script has no input parameters.
Script Functions:
erf(x): Calculates the error function for a given input x. Used in the calculation of the smoothing factor for the UMA.
uma(input): Provides a smoothed average that adapts to recent price changes, reducing lag compared to traditional moving averages.
dev(input, mu): Used to calculate the volatility bands around the central moving average.
Indiq 2.0The functionality of the indicator includes the following features:
Moving Averages (MA):
The ability to adjust periods for short (short_ma_length) and long (long_ma_length) moving averages.
Display of moving averages on the chart:
Short MA (blue line).
Long MA (red line).
Generation of buy and sell signals:
Buy (BUY): When the short MA crosses the long MA from below.
Sell (SELL): When the short MA crosses the long MA from above.
Visualization of signals on the chart:
Buy is displayed as a green BUY marker below the candle.
Sell is displayed as a red SELL marker above the candle.
Liquidity Heatmap:
Liquidity levels:
Levels are calculated based on the closing price and a step (liquidity_step).
Levels are grouped by the nearest price values.
Volumes at levels:
Volume (volume) is accumulated for each liquidity level.
Levels with a volume less than min_volume_filter are not displayed.
Time filtering:
Levels that have not been updated within the last time_filter bars are not displayed.
Volatility filtering:
Levels are filtered by volatility (ATR) to exclude those outside the volatility range.
Color gradient:
The color of levels depends on volume (gradient from gradient_start_color to gradient_end_color).
Visualization:
Liquidity levels are displayed as horizontal lines.
Volumes at levels are shown as text labels.
RSI Filtering:
The ability to enable/disable RSI filtering (rsi_filter).
Liquidity levels are filtered based on overbought (rsi_overbought) and oversold (rsi_oversold) conditions.
Levels that do not meet RSI conditions are not displayed.
MACD Filtering:
The ability to enable/disable MACD filtering (macd_filter).
Liquidity levels are filtered based on the MACD histogram condition (e.g., only if the histogram is above zero).
Levels that do not meet MACD conditions are not displayed.
Display of Market Maker Buys:
Condition for market maker buys:
Volume exceeds the average volume over the last 20 bars by 2 times.
Closing price is above the opening price.
Market maker buys are displayed on the chart as orange MM Buy markers below the candle.
Indicator Settings:
Moving average parameters:
short_ma_length: Period for the short MA.
long_ma_length: Period for the long MA.
Liquidity heatmap parameters:
liquidity_step: Step between liquidity levels.
max_levels: Maximum number of levels to display.
time_filter: Time filter (last N bars).
min_volume_filter: Minimum volume for displaying a level.
volatility_filter: Volatility filter (ATR multiplier).
RSI parameters:
rsi_filter: Enable/disable RSI filtering.
rsi_overbought: Overbought RSI level.
rsi_oversold: Oversold RSI level.
MACD parameters:
macd_filter: Enable/disable MACD filtering.
Color settings:
gradient_start_color: Starting color of the gradient.
gradient_end_color: Ending color of the gradient.
Visualization:
Moving averages:
Short MA: Blue line.
Long MA: Red line.
Signals:
Buy: Green BUY marker.
Sell: Red SELL marker.
Liquidity heatmap:
Liquidity levels: Horizontal lines with a color gradient.
Volumes: Text labels at levels.
Market maker buys:
Orange MM Buy markers.
Alerts:
The ability to set alerts for signals:
Buy (BUY).
Sell (SELL).
Additional Features:
Flexible filter settings:
Filtering by time, volume, volatility, RSI, and MACD.
Extensibility:
The ability to add new filters (e.g., Stochastic, Volume Profile, etc.).
Visual customization:
Adjustment of colors, sizes, and display styles.
Summary:
The indicator provides a comprehensive tool for analyzing liquidity, generating trading signals, and tracking market maker activity. It combines:
A liquidity heatmap.
Signals based on moving averages.
Filtering by RSI and MACD.
Display of market maker buys.
Flexible settings and visualization.
This indicator is suitable for traders who want to analyze liquidity levels, identify entry and exit points, and monitor the actions of large market players.
Candle Size Alertت وضیحات برای انتشار ابزار در TradingView
🔹 نام ابزار: Candle Size Alert
🔹 توضیحات:
این اندیکاتور برای شناسایی کندلهای بزرگ طراحی شده است. این ابزار میانگین اندازهی ۱۰ کندل گذشته را محاسبه کرده و اگر کندل فعلی ۳ برابر میانگین کندلهای قبلی باشد، یک لیبل هشدار در بالای کندل نمایش میدهد. همچنین میتوان هشدارهای معاملاتی را از طریق alertcondition() فعال کرد.
🔹 ویژگیها:
✅ امکان تغییر تعداد کندلهای محاسبه شده (پیشفرض: ۱۰)
✅ امکان تنظیم ضریب حساسیت (پیشفرض: ۳ برابر)
✅ نمایش لیبل هشدار در بالای کندلهای بزرگ
✅ پشتیبانی از هشدارهای خودکار (AlertCondition)
⚠️ نکته: این اندیکاتور فقط برای تحلیل استفاده میشود و سیگنال خرید یا فروش ارائه نمیدهد.
🔹 Indicator Name: Candle Size Alert
🔹 Description:
This indicator detects large candles by calculating the average size of the last 10 candles. If the current candle is 3 times larger than the average of the previous candles, a warning label appears above the candle. Additionally, automated alerts can be triggered using alertcondition().
🔹 Features:
✅ Adjustable candle count for calculations (default: 10)
✅ Customizable sensitivity multiplier (default: 3x)
✅ Visual alert label above large candles
✅ Supports automated alerts (AlertCondition)
⚠️ Note: This indicator is for analysis purposes only and does not provide buy/sell signals.
Price Deviation from EMAThis script creates a chart that tracks a stock's price as a percentage deviation from its EMA. Here's what it does:
Creates a standalone indicator (not overlay) that shows the percentage deviation
Calculates the EMA based on your chosen length (default 200 periods, can be modified)
Plots the percentage deviation from this EMA as a red line
Shows the EMA itself as a horizontal blue line at 0% (the baseline)
Adds horizontal reference lines at +/-5% and +/-10% deviations
Includes labels showing the current deviation percentage and EMA information
M2 Global Liquidity Index - 10 Week Lead
M2 Global Liquidity Index - Forward Projection (10 Weeks)
This indicator provides a 10-week forward projection of the M2 Global Liquidity Index, offering traders insight into potential future market conditions based on global money supply trends.
What This Indicator Shows
The M2 Global Liquidity Index aggregates M2 money stock data from five major economies:
- China (CNY)
- United States (USD)
- European Union (EUR)
- Japan (JPY)
- Great Britain (GBP)
All values are converted to USD and presented as a unified global liquidity metric, providing a comprehensive view of worldwide monetary conditions.
Forward Projection Feature
This adaptation displays the indicator 10 weeks ahead of the current price, allowing you to visualize potential future liquidity conditions that might influence market behavior. The projection maintains data integrity while providing an advanced view of the liquidity landscape.
Trading Applications
- Anticipate potential market reactions to changing global liquidity conditions
- Identify divergences between projected liquidity and current price action
- Develop longer-term strategic positions based on forward liquidity projections
- Enhance your macro-economic analysis toolkit
Credit
This indicator is an adaptation of the original "M2 Global Liquidity Index" created by Mik3Christ3ns3n. Full credit for the original concept and implementation goes to the original author. This version simply adds a 10-week forward projection to the existing calculations.
Disclaimer
This indicator is for informational purposes only and should be used as one of many tools in your analysis. Past performance and projections are not guarantees of future results.
MTF ATR BandsA simple but effective MTF ATR bands indicator.
The script calculate and display ATR bands low and high of the current timeframe using high, low inputs and an RMA moving average, adding to it ATR of the period multiplied with the user multiplier, default is set to 1.5.
Than is calculated a smoothed average of the range and the color of it based on its slope, same color is used to fill the atr bands.
Than the higher timeframe bands are calculated and displayed on the chart.
How can be used ?
The higher timeframe average and bands can give you long term direction of the trend and the current timeframes moving average and filling short term trend, for example using the 15 min chart with a 4h HTF bands, or an 1h with a daily, or a daily with an weekly or weekly with bi-monthly atr bands.
Also can be used as a stop loss indicator.
Hope you will like it, any question send me a PM.
Smart Scalper Indicator🎯 How the Smart Scalper Indicator Works
1. EMA (Exponential Moving Average)
EMA 10 (Blue Line):
Shows the short-term trend.
If the price is above this line, the trend is bullish; if below, bearish.
EMA 20 (Orange Line):
Displays the longer-term trend.
If EMA 10 is above EMA 20, it indicates a bullish trend (Buy signal).
2. SuperTrend
Green Line:
Represents support levels.
If the price is above the green line, the market is considered bullish.
Red Line:
Represents resistance levels.
If the price is below the red line, the market is considered bearish.
3. VWAP (Volume Weighted Average Price)
Purple Line:
Indicates the average price considering volume.
If the price is above the VWAP, the market is strong (Buy signal).
If the price is below the VWAP, the market is weak (Sell signal).
4. ATR (Average True Range)
Used to measure market volatility.
An increasing ATR indicates higher market activity, enhancing the reliability of signals.
ATR is not visually displayed but is factored into the signal conditions.
⚡ Entry Signals
Green Up Arrow (Buy):
EMA 10 is above EMA 20.
The price is above the SuperTrend green line.
The price is above the VWAP.
Volatility (ATR) is increasing.
Red Down Arrow (Sell):
EMA 10 is below EMA 20.
The price is below the SuperTrend red line.
The price is below the VWAP.
Volatility (ATR) is increasing.
🔔 Alerts
"Buy Alert" — Notifies when a Buy condition is met.
"Sell Alert" — Notifies when a Sell condition is met.
✅ How to Use the Indicator:
Add the indicator to your TradingView chart.
Enable alerts to stay updated on signal triggers.
Check the signal:
A green arrow suggests a potential Buy.
A red arrow suggests a potential Sell.
Set Stop-Loss:
Below the SuperTrend line or based on ATR levels.
Take Profit:
Target 1-2% for short-term trades.