Forexify© BTCForexify BTC is a trading strategy primarily designed for one-way breakout trends in Bitcoin.
It leverages high-speed trading technology to deliver a smoother trading experience during unilateral market movements, while simultaneously increasing the win rate and return on investment.
Trendtrading
30-Day Rolling VWAP30-Day Rolling VWAP (30-RVWAP)
Overview:
The 30-Day Rolling VWAP is an advanced technical analysis tool designed for crypto traders that combines Volume Weighted Average Price over a 30-day rolling window with sophisticated volume analysis to generate high-probability trading signals.
Key Features:
1. Dynamic Color-Coded VWAP Line
Green glow = Strong bullish pressure
Red glow = Strong bearish pressure
Gray = Neutral/balanced market
The line changes color based on volume-weighted directional pressure
2. Volume Pressure Zones
Multi-layered glowing fill effect around VWAP
Expands/contracts based on volatility and volume
Shows potential support/resistance zones
3. Smart Alert System
Buy/Sell alerts based on VWAP color change
Cross above/below VWAP alerts
Confidence levels based on pressure strength
How to Use:
1. Color Signals
When VWAP turns green: Consider buying (bullish pressure)
When VWAP turns red: Consider selling (bearish pressure)
Gray color indicates consolidation/neutral market
2. Alert Structure
Buy/Sell alerts include confidence percentage (0-100%)
Higher confidence = stronger directional pressure
Cross alerts notify when price crosses VWAP with distance
3. Volume Pressure Zones
Wider zones = higher volatility/volume
Use zones as dynamic support/resistance levels
Watch for price reactions at zone boundaries
4. Trading Strategy
Enter long when VWAP turns green with high confidence (60%+)
Enter short when VWAP turns red with high confidence
Use VWAP as trailing stop (exit when cross alerts trigger)
Use pressure zones for profit targets
5. Alert Messages
Buy Signal: "BTCUSDT | 15m | BUY Signal | Price: 42380.00 | VWAP: 42350.00 | Distance: 0.07% | Confidence: 78% due to strong bullish pressure"
Cross Alert: "BTCUSDT | 15m | CROSS ABOVE VWAP | Price: 42360.00 | VWAP: 42350.00 | Distance: 0.02%"
Best Practices:
Use higher timeframes (4H+) for trend direction; preferably **daily timeframe**
Combine with other indicators for confirmation
Monitor volume for signal validation
Consider market context when entering trades
The indicator combines multiple volume metrics to filter out false signals and provides clear visual and alert-based trading signals.
SNIPER SIGNAL™ [GODMODE v3]🧠 SNIPER SIGNAL™
Private Invite‑Only Script – DM @YourHandle or visit for access.
Built for serious traders. No noise. No guesswork. Just clean sniper entries and intelligent exits that protect your capital and maximize gains.
✅ WHAT'S NEW IN V3:
Partial Take Profit Logic → Lock gains early, ride the rest
ATR‑Based Trailing Stop → Exit on strength, not fear
Dynamic SL/TP + Timed Exit Options
Real‑Time Alerts → BUY / SELL / TP / SL / Trail / Timeout
Win Rate HUD → Track performance live on your chart
💥 OPTIMIZED FOR:
Forex, Indices, Gold, Crypto, Metals, Futures
Use on 1H / 4H / 1D for best results.
⚙️ INCLUDED:
Clean BUY/SELL signals only when trend, momentum, and volatility align
Live EXIT markers for smart capital protection
Built-in win/loss tracking
Fully compatible with TradingView alerts system
⚔️ Want access? DM “SNIPER” on X or visit: sdmoo.gumroad.com
Volume NodesVolume Nodes Indicator:
What This Indicator Does:
The Volume Nodes indicator identifies and visualizes statistically significant volume events on your chart, helping you identify important price levels where substantial trading activity has occurred. Unlike standard volume indicators, Volume Nodes:
Uses statistical analysis (z-scores) to identify truly abnormal volume bars
Calculates accurate buy/sell volume ratios by analyzing all lower timeframe data
Identifies the Volume Point of Control (VPOC) for high volume areas
Visualizes significant volume ranges as they extend across the chart
Tracks when price interacts with these important levels
Key Features:
High Volume Detection: Highlights bars with unusually high volume (z-score above threshold)
Low Volume Detection: Highlights bars with unusually low volume (z-score below threshold)
VPOC Lines: Horizontal lines showing the exact price level with maximum volume concentration
Volume Range Fills: Shaded areas showing the entire price range with significant volume
Accurate Volume Metrics: Shows true buy/sell volume ratios or delta percentages derived from lower timeframe data
How to Use It in Your Trading: **Move to front in the visual order on chart**
Step 1: Identify Important Volume Zones
High Volume Bars (green/red candles) indicate where significant buying or selling has occurred
VPOC Lines extending from these bars show you the exact price level with highest volume
Range Fills show you the entire zone where significant volume occurred
Step 2: Use These Levels for Trading Decisions
Support/Resistance: VPOC lines often act as support or resistance levels
Breakout Validation: Breakouts on high volume are more likely to be valid
Low Volume Warning: Low volume bars (yellow) often indicate indecision or potential reversals
Trading with Volume Flow: Use the buy/sell ratio or delta % to confirm the strength and direction of moves
Step 3: Monitor Price Interaction with Volume Zones
When price approaches a VPOC line, watch for reaction (bounce or breakout)
When price enters a volume range area, increased volatility often follows
When price crosses a VPOC line, the line changes transparency indicating it's been tested
Tips for Optimal Use
Higher Timeframes: The indicator works exceptionally well on higher timeframes (4H, daily, weekly) where volume patterns are more significant
Range Trading: Use volume nodes to identify the boundaries of trading ranges
Combine with Price Action: Look for price action confirmation (rejections, engulfing patterns) at VPOC levels
Multiple Timeframe Analysis: Compare volume nodes across different timeframes to find confluent levels
Alert Setup: Set up alerts for when price enters important volume zones or crosses VPOC lines
Reversal Signals: High volume bars with significant wicks often signal exhaustion points where smart money is transferring positions. Bullish candles with long upper wicks suggest sellers absorbing buying pressure at highs, while bearish candles with long lower wicks indicate buyers stepping in at lows - both potentially signaling momentum shifts that precede reversals.
The indicator is particularly valuable for identifying levels where large players have been active in the market and are likely to defend or act again in the future.
PG MA Crossover based Trend StrategyBuy (Long Entry) Logic:
A long trade is triggered when all the following conditions are met:
MA Trend is Rising:
The selected moving average (VWMA/EMA/SMA) is increasing, based on a customizable reversalThreshold.
Price Action Confirms Uptrend:
Current and previous candle closes are both above the MA.
Current close is above the previous high (momentum confirmation).
Price Is Not Overstretched:
Close is within 5% above the MA to avoid chasing.
Time Filter Active:
Trade happens only between 09:45 and 15:15.
Backtest Window:
Entry happens only if the bar’s timestamp falls within the user-defined backtesting period.
Re-Entry Logic (after stop-out):
If price dips below MA after an exit and then comes back above MA, it triggers a re-entry.
🛑 Stop-Loss Logic:
Triggered if price falls below a fixed percentage from the entry price:
Stop Loss % is customizable (default: 1.5%).
Example: Entry at ₹100 → SL triggered if price falls below ₹98.50.
A red label and alert are generated when this happens.
🔄 Trailing Stop Loss Logic:
Activated after entry, tracks the highest price and triggers exit if price falls below a trailing level:
Trailing Stop % is customizable (default: 0.8%).
If the price falls 0.8% below the highest price since entry, it exits the trade.
A purple label and alert are generated on this exit.
💡 Profit Target Exit Logic:
You’ve intentionally removed it, so the trade only exits via:
Fixed stop loss (customizable)
Trailing stop loss (customizable)
Original Gann Swing Chart Rules [AlgoFuego]🔵 Original Gann Swing Chart Rules
An advanced indicator built on W.D. Gann’s original rules, enhanced with innovative mechanical trend-following methods.
🔹 Description
This indicator functions by balancing short-term adaptability with long-term trend analysis.
The indicator incorporates Gann’s principles alongside mechanical trend-following techniques to offer a structured method for analyzing trends and detecting potential market reversals.
Golden Rule: Non-trend bars are excluded from analysis, and each new bar is compared with the previous trend bar, it highlights significant swing points with greater clarity.
🔸 The core concept behind the golden rule on which this indicator is built.
The person watching the tide coming, wanting to pinpoint the exact spot that signals the high tide, places a stick in the sand at the points where the incoming waves reach until the stick reaches a position where the waves no longer rise, and eventually recedes enough to show that the tide has shifted.
This method is effective for monitoring and identifying tides and floods in the stock market.
🔸Rule 1: The trend bar is everything.
→It is a bar that forms a new high, low, or both.
🔸Rule 2: The professional traders track new highs and lows.
🔸Rule 3: The hidden bar is nothing.
→It is a bar that does not form a new high, low, or both.
🔸Rule 4: The sea has a wavy nature, and the market as well.
🔸Rule 5: The slope is the immediate direction of the swing.
Downward slope
→The downslope is the descending slope of a swing, shows a decline, reflecting a bearish price trend.
Upward slope
→The upslope is the ascending slope of a swing, shows an incline, reflecting a bullish price trend.
🔸Rule 6: The start and end of the movement are the swing points.
→The lowest or highest price of the last bar in the direction of the slope represents the swing point after the slopes direction changes.
Valley
→It is the lowest price of the last bar in a downslope before the market turns to a upslope.
End=> Downward slope and Start=> Upward slope
Peak
→It is the highest price of the last bar in a upslope before the market turns to an downslope.
End=> Upward slope and Start=> Downward slope
🔸Rule 7: The Golden Rule: Ignore all no-trend bars and compare the new bar with the previous trend bar.
→Applying the golden rule in upward slope
→Applying the golden rule in downward slope
🔸 Related content: Personal words of W.D Gann from the book Wall Street Stock Selector.
→"This was only one month's reaction the same as March 1925. The market held in a dull narrow range for about 2 months while accumulation was taking place and in June the main trend turned up again."
→The beginning of the main trend and the formation of the Valley.
→The beginning of the main trend and the formation of the Peak.
🔸 Rule 8: The Closing Price of the Bar to Understand Movement Direction.
Sequence is important
→ Downward bar
→ Upward bar
🔸 Outside Bar Rules
→Explanation of rules and calculations.
🔸 How does a trend start?
Upward trend
Trend change from Downward to Upward.
Prices must take out the nearest 'Peak' and the Trend was previously Downward.
A breakout above the previous peak signals a bullish reversal.
→ Model 1 - Dropping Valley Reversal
The market forms a dropping valley, followed by a breakout above the previous peak.
→ Model 2 - Equal Valley Reversal
The market forms an equal valley, followed by a breakout above the previous peak.
→ Model 3 - Rising Valley Reversal
The market forms a rising valley, followed by a breakout above the previous peak.
Downward trend
Trend change from Upward to Downward.
Prices must take out the nearest ‘Valley' and the Trend was previously Upward.
A breakdown below the previous valley signals a bearish reversal.
→ Model 1 - Rising Peak Reversal
The market forms a rising peak, followed by a breakdown below the previous valley.
→ Model 2 - Equal Peak Reversal
The market forms an equal peak, followed by a breakdown below the previous valley.
→ Model 3 - Dropping Peak Reversal
The market forms a dropping peak, followed by a breakdown below the previous valley.
🔸 The fractal nature of markets
Rising wave
→ The rising wave is the entire bull market between turning points
High point : When the Main trend turns from upward to downward, the peak of the primary trend is formed.
Dropping wave
→ The Dropping wave is the entire bear market between turning points.
Low point : When the Main trend turns from downward to upward, the primary trend valley is formed.
Fractal nature application.
Everything in one picture.
🔹 Features
Strict adherence to the rules: Follows the Original Gann Swing Chart Rules to detect swing points.
Fractal analysis: Uses trend bars and fractal analysis to identify swing points.
Robust functionality: Engineered to handle complex market conditions with advanced logic.
Custom alerts: Alerts for peak/valley completion, main and primary trend reversals & continuations.
Golden rule application: Filters out non-trend bars by comparing only with the last trend bar.
Reversal & trend detection: Applies eight outside bar rules to detect trend reversals and continuations.
Dynamic customization: Fully customizable settings.
🔹 Settings overview
Fine-tune the indicator to match your unique trading strategy by adjusting trend settings, customizing alerts, and modifying visualization options.
1. Main trend settings
Hide/Show Main trend options: Instantly hide all main trend options (alerts remain separate).
Main trendline display & alerts: Toggle trendline visibility and set alerts for peaks and valleys.
Trendline customization: Adjust styles, colors, and slopes for upward/downward trends.
Peaks & Valleys markers: Show/hide points and customize their color and size.
Opposite Main trend turning points: Enable alerts and modify style, width, color, and offset.
Breakout/Breakdown points: Set alerts and customize their appearance.
2. Primary trend settings
Hide/Show primary trend options: Instantly hide all primary trend options (alerts remain separate).
Primary trendline display & alerts: Toggle trendline visibility and set alerts for peaks and valleys.
Trendline customization: Adjust styles, colors, and slopes for upward/downward trends.
Peaks & Valleys markers: Show/hide points and customize their color and size.
Opposite primary trend turning points: Enable alerts and modify style, width, color, and offset.
Breakout/Breakdown points: Set alerts and customize their appearance.
3. Additional options
Tooltips display: Control tooltip visibility for labels and languages.
Candle/Bar coloring: Customize candle and bar colors based on algorithm-selected trends.
🔸 Additional features
🔹Custom reading of bars.
The arrow represents the direction of the slope, the dot is the type of trend, and the line is the closing price.
🔹 Advanced Moving Average Activator
The Advanced Moving Average Activator, this setting calculates the average closing prices of trend bars only, which are the only bars considered by Gann.
The advantage of this method is that it helps avoid hidden bars that are not accounted for, making the difference more evident in a ranging market. The values are updated only when new highs or lows occur.
Additionally, you can set alerts when the price closes above or below the moving average.
🔹 Bar Counter
After a trend change, you can see exactly when the shift occurred and customize the type of trend you want to track.
For example, by conducting your own research on the assets you trade, based on historical data, you might discover valuable insights, such as the primary trend possibly lasting longer than 20 bars!
You can use these insights to refine your trading strategy and make more data-driven decisions.
🔹 How to use
Step 1: Configure the settings and choose your trading approach
Adjust the indicator settings to match your trading style and market conditions.
Effectively using the indicator starts with selecting your preferred trading style.
You can trade in alignment with the primary trend, capitalize on market reversals, or take advantage of breakouts.
Trading with the primary trend: Best for traders who prefer longer-term positions with higher stability.
Trading reversals: Ideal for those looking to enter at potential turning points but requires additional confirmation.
Trading breakouts: Suitable for traders targeting strong price movements after key level breakouts.
Adapting to market volatility: Monitor changing volatility and adjust your strategy accordingly for optimal results.
Step 2: Analyze the chart
Apply the indicator to your TradingView chart and interpret swing signals for informed decisions.
Carefully study the chart patterns to detect subtle signals.
Check if similar signals worked well in past market conditions.
Use multi-timeframe analysis for a broader perspective.
Step 3: Trade with the primary trend
Utilize trend direction to align trades with prevailing market movements.
Always trade in the direction of the primary trend.
Confirm the trend direction using multiple indicators or by relying on the primary trend as confirmation!.
Avoid trading against strong market momentum.
Step 4: Identify entry signals
Use indicator signals to identify ideal trade entry points.
Look for confirmation before entering a trade.
Wait for clear signals to avoid false entries.
Practice on a demo account to build confidence in your entry strategy.
Step 5: Apply risk management
Define stop-loss and take-profit levels to protect your capital effectively.
Set stop-loss orders at strategic levels to limit potential losses.
Risk only a small percentage of your capital per trade.
Adjust risk levels based on your overall portfolio performance.
Step 6: Confirm with trend analysis
Validate trends using additional indicators for a higher probability of success.
Use complementary tools to confirm trend direction.
Monitor trend changes to adjust your strategy promptly.
Keep an eye on volume indicators for added confirmation.
Step 7: Execute the trade
Enter trades based on confirmed signals and predefined strategy rules.
Ensure all your criteria are met before executing a trade.
Stay disciplined and stick to your strategy.
Review market conditions right before execution.
Step 8: Monitor the trade
Track trade performance and make adjustments as necessary.
Keep an eye on market conditions throughout the trade.
Be ready to adjust your strategy if unexpected events occur.
Use trailing stops to secure profits while allowing for gains.
Step 9: Implement exit strategy
Close trades strategically based on your pre-established exit plan.
Plan your exit strategy in advance and adhere to it.
Consider partial exits to secure profits along the way.
Avoid emotional decisions when closing trades.
Step 10: Review performance
Analyze past trades to continuously refine and improve your strategy.
Regularly review and document your trades for insights.
Identify patterns in both your successes and mistakes.
Update your strategy based on comprehensive performance reviews.
🔹 Disclosure
While this script is useful and provides insight into market tops, bottoms, and trend trading, it's critical to understand that past performance is not necessarily indicative of future results and there are many more factors that go into being a profitable trader.
OTC IndicatorThis OTC (Bernd Skorupinski) inspired indicator shows the US Treasury Bond Futures, Gold Futures, and Dollar Index at the same time. This is an important tool, as when all 3 instruments are aligned, it is a strong confluence to support a bullish or bearish shift in the market.
This powerful indicator requires a payment of $200 to access (lifetime access). Payment can be sent via PayPal to: setandforget@@gmx.com
Put your Tradingview username in the PayPal note section during payment or contact me.
MastersCycleSignal(Mastersinnifty)Overview
MastersCycleSignal is a market-timing and target-projection indicator designed for trend-following and swing traders. The script intelligently combines cycle detection, sine wave projection, adaptive momentum filtering, and Gann Square of 9 principles to identify potential market turning points along with precise stop-loss and target levels.
At its core, the indicator dynamically estimates the dominant market cycle using cosine correlation, projects future price behavior via a smooth sine-wave approximation, and generates actionable buy/sell signals. Once a valid signal is confirmed, the script calculates corresponding Gann-based target levels and stop-loss suggestions — enabling disciplined risk management.
In addition, the script visualizes projected future price paths with trend lines, and dynamically adjusts these targets as the price action unfolds. This combination allows traders to prepare for upcoming price movements rather than simply reacting to past data.
═══════════════════════════════════════════════════════
Uniqueness
This script stands out in several key ways:
• Cycle Detection Algorithm: The indicator uses a real-time cycle detection method based on cosine correlation to identify the dominant market cycle, rather than relying on pre-set fixed periods.
• Gann Target Calculation: It integrates the geometric principles of Gann's Square of 9 for target generation, offering mathematically consistent price projections that adapt to market conditions.
• Adaptive Signal Confirmation: Rather than triggering buy/sell markers at the first sign of a trend shift, it waits for confirmation through volatility scaling, momentum divergence, and RSI factor adjustments to reduce false positives.
• Auto-Extending Target Projections: As price approaches existing targets, the script automatically extends new target levels, allowing users to continuously track evolving profit zones.
This fusion of cycle theory, trend analysis, momentum confirmation, and geometric target estimation creates a balanced, structured trading framework — offering users clarity on where to enter, exit, and protect positions.
═══════════════════════════════════════════════════════
Usefulness
MastersCycleSignal is ideal for:
• Identifying early trend reversals.
• Anticipating market turning points using cycle analysis.
• Systematic target and stop-loss planning.
• Reducing guesswork during trend following and swing trading.
• Providing visual guidance for intraday and positional setups.
═══════════════════════════════════════════════════════
How to Use
• Attach the indicator to any chart.
• Works across all markets (stocks, indices, forex, crypto) and timeframes.
• When a new Buy Signal or Sell Signal appears (green or red shapes on the chart), use the:
• Suggested stop-loss label for risk protection.
• Automatically drawn target lines to plan exits.
• The orange Projected Sine Wave gives an advance visual estimate of potential future price movement.
• Users can adjust:
• Cycle Detection Length to fine-tune sensitivity.
• Projection Length for the lookahead distance of the sine wave.
• Gann Square of 9 Degrees to align target calculations with personal preference or market volatility.
• Whether to show signals and targets on the chart.
This structured workflow makes it easy to follow a disciplined approach to both entries and exits.
═══════════════════════════════════════════════════════
⚠️ Disclaimer:
• The script uses no lookahead bias and no future data access.
• Performance claims are not made, and its chart-based outputs visually illustrate market structure rather than promising future results.
• Target levels are geometric projections based on prior prices and cycle length, not guaranteed predictive values.
Multi-Timeframe Market Structure Bars v2Summary
This script presents a real‑time dashboard of market structure across multiple user‑defined horizons, using color‑coded bars to signal bullish or bearish bias on each timeframe. Traders gain an instant, consolidated view of market sentiment—from longer‑term to ultra‑short‑term—without switching charts, enabling faster, more informed decisions.
What It Is
The Multi‑Timeframe Market Structure Bars indicator displays a row of bold bars—one per timeframe—in a dedicated panel, each bar changing color to reflect the underlying market bias on that timeframe.
Rather than plotting price or overlays on your main chart, it offers a snapshot‑style layout, with the topmost bar representing your longest timeframe and the bottom bar your shortest.
Core Functionality
Unified Trend Vision: By stacking multiple bars vertically, the script condenses what would otherwise be separate trend analyses into a single glance.
Configurable Horizons: Each bar’s timeframe is fully adjustable, so you can tailor the display to any set of periods—e.g., weekly down to one‑minute—matching your trading style.
Instant Bias Signals: As market conditions shift, individual bars switch color immediately, revealing structure shifts across all monitored timeframes.
Benefits to Traders
Speedy Decision‑Making: Quickly confirm whether short‑term moves align with the broader trend, reducing hesitation and late entries.
Avoids Context Switching: No need to flip between multiple charts—everything you need is in one concise panel.
Enhanced Trade Filters: Use the dashboard as a pre‑filter, only taking setups when multiple bars indicate the same bias.
Visual Clarity: The bold, high‑contrast design ensures even rapid chart scrolling or zooming won’t obscure your read on the market.
How to Use
Set Your Timeframes
Input your preferred periods for each bar (e.g., “Daily,” “4H,” “1H,” “15m,” “5m”).
Monitor Bar Colors
Green (or your bullish color) means that timeframe’s structure supports upward bias; red (or bearish) means downward.
Align with Your Strategy
Only initiate trades when the majority (or all) of bars point in your intended direction, ensuring multi‑horizon agreement.
Set Alerts on Flips
Create alerts tied to bar‑color changes to be notified the moment a key timeframe shifts, keeping you on top of evolving conditions.
Practical Tips & Considerations
Non‑Repainting Behavior: Signals reflect confirmed shifts and will not retroactively change once drawn, giving you confidence in their reliability.
Lag Awareness: Like any structure‑based tool, rapid spikes or whipsaws can lead to delayed flips; consider coupling with price‑action checks.
Panel Placement: Since this indicator runs in a separate pane, you can stack it above or below other context tools (e.g., volume profiles) for a layered analysis.
Complementary Use: Best employed as a confirmation layer rather than a standalone signal generator—combine it with entry triggers or risk‑management rules for optimal results.
By abstracting complex, multi‑timeframe analysis into a simple, intuitive interface, this indicator empowers you to maintain a clear, consolidated view of market structure—helping you spot alignment, filter trades, and react quickly without revealing every calculation detail under the hood.
Scalping Trend Power per MT51. Overview
Scalping Trend Power per MT5 is a short‑term scalping strategy designed to capture small price movements while effectively managing risk. The strategy uses a combination of exponential moving averages (EMAs), the Relative Strength Index (RSI), and the Average True Range (ATR) to generate trade signals and manage exits with dynamic stop‑losses and multiple profit targets. Additionally, it includes inputs that adjust for realistic trading costs such as manual spread, commission, and slippage. All parameters are fully customizable so that traders may fine‑tune the strategy to match their risk tolerance and market conditions.
2. Trade Management Settings
Lot Size (lotSize):
– Default Value: 0.1
– This input determines the base lot size for each trade. It defines the proportional amount of the asset that the strategy will trade.
Lot Multiplier (lotMultiplier):
– Default Value: 1.0 (with a minimum of 0.1 and incremental steps of 0.1)
– This multiplier scales the base lot size. For example, if the Lot Size is 0.1 and the multiplier is set to 1.0, the resulting lot size is 0.1. Increasing the multiplier increases the position size proportionally.
Contract Type (contractType):
– Default Value: "FX" (options include FX, CFD, Futures)
– This text input identifies the type of instrument. Although it does not alter the calculations, it is included in the alert messages and documentation for clarity.
Risk per Trade (%) (riskPercentage):
– Default Value: 1.0
– This parameter represents the fraction (as a percentage) of your account that you are willing to risk on each trade. It is referenced in the alerts but does not directly calculate position sizing in the script.
Risk/Reward Ratio (riskRewardRatio):
– Default Value: 1.2, with steps of 0.1
– This ratio determines the distance for the take profit (TP) levels relative to the ATR-based stop loss. A ratio of 1.2 means that the profit target is 1.2 times the stop-loss distance.
Trailing Stop Multiplier (trailingStopMultiplier):
– Default Value: 1.2, with steps of 0.1
– This multiplier determines the base distance for the trailing stop based on the ATR value. It helps capture additional profit by adjusting the stop dynamically as the price moves favorably.
3. Indicator Inputs
EMA Short Length (emaShortLength):
– Default Value: 9
– Defines the period for the short exponential moving average. A lower number makes the indicator more sensitive to recent price changes.
EMA Long Length (emaLongLength):
– Default Value: 21
– Sets the period for the long exponential moving average, which smooths out price data over a longer period to define the prevailing trend.
RSI Length (rsiLength):
– Default Value: 14
– This defines the number of periods used in calculating the Relative Strength Index. A value of 14 is standard and helps gauge overbought/oversold conditions.
ATR Length (atrLength):
– Default Value: 14
– The number of periods used to calculate the Average True Range, which measures market volatility and is used to determine dynamic stop-loss distances.
RSI Overbought (rsiOverbought):
– Default Value: 70
– When the RSI exceeds this value, the market is considered potentially overbought, serving as a filter to avoid entering long trades in such conditions.
RSI Oversold (rsiOversold):
– Default Value: 30
– When the RSI falls below this level, the market is considered potentially oversold, assisting in filtering short trades or early exit signals.
4. Multi-Timeframe Exit Inputs
Higher Timeframe for Exit (higherTF):
– Default Value: "30" (can be set to any valid timeframe such as "D", "W", etc.)
– This input allows the strategy to reference a higher timeframe for additional exit logic. For instance, a 30‑minute or daily RSI can provide broader market context when managing an open position.
Higher TF RSI Overbought (higherRsiOverbought):
– Default Value: 70
– The RSI threshold on the higher timeframe above which long positions might be exited to avoid prolonged reversals.
Higher TF RSI Oversold (higherRsiOversold):
– Default Value: 30
– The RSI threshold on the higher timeframe below which short positions might be exited.
5. Advanced Trailing Stop and Volume Filter Inputs
Pivot Lookback Period (pivotLookback):
– Default Value: 5
– This period is used to detect local price pivots (highs and lows) which can guide the trailing stop placement.
Volume Lookback Period (volumeLookback):
– Default Value: 20
– The number of bars used to calculate the average volume, which is then used to scale the stop-loss based on volume conditions.
Volume Multiplier (volumeMultiplier):
– Default Value: 1.0 (minimum 0.1, incremental steps of 0.1)
– This multiplier adjusts the volume scaling factor when computing the adjusted stop-loss, allowing you to fine‑tune stop adjustments relative to recent volume.
6. Partial Exit (Multi-TP) Inputs
Enable Partial Exit (enablePartialExit):
– Default Value: true
– Activates the option for exiting portions of an open position at distinct profit targets.
TP1 Profit Multiplier (tp1ProfitMult):
– Default Value: 1.0
– Determines the distance for the first profit target (TP1) as a multiple of the ATR-based profit measure.
TP2 Profit Multiplier (tp2ProfitMult):
– Default Value: 1.5
– Sets the distance for the second profit target (TP2). A higher value means TP2 is further from the entry price.
TP3 Profit Multiplier (tp3ProfitMult):
– Default Value: 2.0
– Sets the distance for the third profit target (TP3).
TP1 Exit (%) (tp1ExitPercentage):
– Default Value: 33%
– The percentage of the position to exit when TP1 is hit.
TP2 Exit (%) (tp2ExitPercentage):
– Default Value: 33%
– The percentage of the position to exit when TP2 is hit.
TP3 Exit (%) (tp3ExitPercentage):
– Default Value: 34%
– The remaining percentage of the position to exit at TP3.
7. Confirmation Bars
Confirmation Bars (confirmBars):
– Default Value: 2
– This input sets how many consecutive bars must satisfy the long or short condition before a trade is considered valid. It helps filter out false signals by requiring persistent conditions.
8. Trade Decrease Factor
Trade Decrease Factor (tradeDecreaseFactor):
– Default Value: 0 (with baseLongTrades set to 5)
– Each increment in this factor reduces the maximum allowable long trades per trend. For example, if the base is 5 and the factor is set to 2, then the strategy is limited to 3 long trades in a single trend. The minimum allowable value is 1 trade per trend.
9. Cost Buffer
Cost Buffer (costBuffer):
– Default Value: 0.0
– This value widens the stop-loss by a fixed amount to account for commission costs and slippage, reducing premature stop-outs when realistic trading costs are applied.
10. Manual Spread Calculation Inputs
Since the built‑in spread variable is not used in this version, the strategy calculates a manual effective spread:
Fallback Spread (ticks) (fallbackSpread):
– Default Value: 1 tick
– Represents the number of ticks to use if no built‑in spread is available.
Manual Mintick (manualMintick):
– Default Value: 0.0001
– This input represents the tick size (minimum movement) for the instrument. The effective spread is then computed as:
effectiveSpread = fallbackSpread * manualMintick
This effective spread is used to adjust the entry prices:
For long trades, the effective entry price becomes:
close + effectiveSpread / 2
For short trades, it becomes:
close - effectiveSpread / 2
11. PineConnector Inputs
Activate PineConnector (activatePineConnector):
– Default Value: false
– When enabled, the strategy sends alerts in a format that supports integration with an external order routing tool, such as PineConnector.
PineConnector License Code (pineConnectorLicense):
– Default Value: (an empty string)
– Used to include your license or identifier in alert messages if PineConnector is activated.
12. Additional Calculations and Functionality
Dynamic TP and SL:
The script calculates dynamicTP as ATR multiplied by the riskRewardRatio.
dynamicSL is computed as ATR multiplied by trailingStopMultiplier.
The final stop-loss (adjustedSL) is calculated by adding the cost buffer to dynamicSL and then scaling it by recent volume (using a simple moving average of volume and a user-defined volume multiplier).
Trend Detection and Confirmation:
The strategy defines rawLongSignal and rawShortSignal based on the comparison of the short and long EMAs and corresponding RSI thresholds.
These conditions are then confirmed over a number of bars (set by confirmBars) to produce the final long and short signals.
Trade Management:
Once a trade is active, the strategy prevents new entries and will close the existing trade if an opposing signal is generated.
The script also tracks the number of long trades in a continuous trend and limits them based on the maxLongTradesPerTrend value.
Partial Exits and Visual Aids:
Multiple profit targets (TP1, TP2, TP3) are calculated and drawn as horizontal lines with labels.
Partial exits are triggered when the price reaches these levels for a specified number of bars.
Background colors and candlestick colors are used to visually indicate the prevailing trend and active trade direction.
Backtesting Settings:
The strategy is designed to backtest on a 10,000-unit initial capital environment.
It uses realistic commission (0.1% per trade) and slippage (1 tick) values to simulate a more practical trading scenario.
Conclusion
This detailed description covers each adjustable parameter of the Scalping Trend Power per MT5 (Manual Spread) strategy. By tuning the inputs—from risk settings and indicator lengths to spread, cost buffer, and volume multipliers—traders can optimize the strategy according to their specific market conditions and risk management preferences. This self-contained explanation ensures that all necessary details are provided without external references, aligning with best practices for transparent, realistic backtesting and publication.
Feel free to modify any input values or parameters to better match your personal trading requirements before applying the strategy in a live environment.
Forexsom EMA + RSI StrategyThis indicator combines a classic EMA crossover technique with an RSI filter and a trend visualization tool, aiming to help traders identify momentum-based trade signals in line with broader market direction.
🔍 What This Script Does
This script plots:
A Fast EMA (default: 9)
A Slow EMA (default: 21)
A 50-period EMA as a visual trend filter
Buy/Sell signal labels based on EMA crossovers confirmed by RSI
It highlights Buy signals when the fast EMA crosses above the slow EMA, and RSI is below the overbought threshold (default: 70). Sell signals occur when the fast EMA crosses below the slow EMA and RSI is above the oversold threshold (default: 30). A 50 EMA line is included to help visually assess the current trend.
This setup is designed to reduce false signals by avoiding trades when RSI shows overextended conditions, while also encouraging trades aligned with the general trend direction.
⚙️ User Inputs
Fast EMA Length – length of the fast-moving average (default: 9)
Slow EMA Length – length of the slow-moving average (default: 21)
RSI Length – length of the RSI oscillator (default: 14)
RSI Overbought – RSI threshold above which long signals are filtered out (default: 70)
RSI Oversold – RSI threshold below which short signals are filtered out (default: 30)
Trend EMA Length – used for the visual trend filter (default: 50)
🧠 Why This is Useful
This script provides a structured and minimalistic approach to trend-following strategies. By combining price-based crossovers with momentum confirmation from RSI, it aims to:
Avoid entering trades in overbought/oversold conditions
Provide visually clean and directional setups
Help newer traders understand how different indicators can complement each other
⚠️ Notes
This is not a trading strategy or backtest — it is a visual tool to assist discretionary decisions.
It is intended for educational and informational purposes only.
It does not repaint, and it works on any standard chart type (not intended for use on Heikin Ashi, Renko, etc.).
Built by @Forexsom to support traders seeking clearer technical confluence in trend-based trading environments.
Triple Confirmation Scalper v2 - Alarm CompatibleTriple Confirmation Scalper Strategy
A high-probability scalping strategy combining trend momentum, overbought/sold conditions, and volume confirmation to filter low-noise signals.
📊 Strategy Logic
Trend Direction
Dual EMA crossover (9 & 21 periods) for momentum and trend bias.
Overbought/Oversold Zones
RSI (14-period) to avoid entries at extremes.
Volume Spike Filter
OBV + 20-period volume average to confirm breakout validity.
Dynamic Risk Management
Stop-loss: Adaptive to recent price action (5-candle low/high ±1%).
Take-profit: 1.5% target (1.5:1 risk/reward).
🔍 Advanced Features
Precision VWAP (20-period, HLC3-based) for dynamic S/R levels.
Visual Aids:
EMA/VWAP bands + trend-colored background.
Volume spike alerts.
TradingView Alerts pre-configured for long/short signals.
⚙️ Default Settings
Commission: 0.1% factored into backtests.
Mode: Supports both long/short positions.
⚠️ Disclaimer
This is a technical analysis tool, not financial advice.
Past performance ≠ future results. Test thoroughly in a demo account.
Adjust parameters (e.g., EMA periods, RSI thresholds) to match your risk tolerance.
✅ TradingView Compliance Notes:
No exaggerated claims (e.g., "100% win rate").
Clear disclaimer included.
Focus on objective strategy logic (no promotional language).
Trend Trading IndicatorThis trend trading indicator uses multiple different custom formulas to identify market trends as well as identify when the market is moving sideways. It has a master trend that will show you the trend using the color of the candles and then there are multiple different types of entry and confluence signals that will appear as different chart shapes above or below the candles to inform you about when to enter a trade and how strong the trend is so you know whether to hold a position longer or get out. There is also a panel at the bottom of the chart that shows you the trend strength for 5 different timeframes so you can easily identify the short and long term trends and scan through charts quickly to find markets with the strongest trends.
The indicator can be customized to fit your trading style by adjusting the timeframes for the master trend, which timeframes affect signals, turning on or off the various entry & confluence signals, turning on or off ranging market filters and more. It can be adjusted to react quickly for intraday trading or use long timeframes for swing trading or only trading when the market is in a strong long term trend.
The indicator also has a built in trend direction value that can be sent to other indicators to be used as a trend filter as well by setting the source value on an external indicator to use the trend direction value from this indicator. This is useful for preventing signals from coming in on other indicators when they go against the trend that this indicator has identified according to the settings it is configured with.
How To Use This Indicator Properly
This indicator is designed to only give signals when the market is trending and filter out the sideways price action for you. Due to this, depending on the timeframe settings you use, there may be extended periods where there are no signals because the market is going sideways. You can adjust your timeframe settings to react faster or slower by lowering the timeframes used and turning off some of the higher timeframes or use all of the timeframes available and only get signals when the market is in a strong long term trend for the safest trades.
The indicator uses a master trend that needs to show a trend before any other confluence signals can come in. The master trend will show up by coloring the candles blue when the trend is bullish or orange when the trend is bearish according to the settings you have chosen. When the market is not trending, the candles will be colored grey. This helps to keep you out of trades when the market is going sideways. You will only be able to see the master trend by using the colored candles though, so make sure to turn the chart’s candle coloring off so it doesn’t override the indicator candle coloring.
Once a trend has been established, then other signals will begin to show up if the trend is strong and various parameters are met. The indicator includes the following types of signals:
Master Trend Signals
Strong Trend Buy & Sell Signals
Pullback During Strong Trend Signals
Strong All Timeframe Trend Signals
Trend Strength Score Signals
The indicator also has multiple filters you can use to customize the master trend to allow more or less signals to come in. The more filters you have on, the better and more likely the signals are to be winners because it will only give signals when there are very strong trends on all timeframes. If you want a lot of signals for intraday scalping, you can turn off most of the filters and just use lower timeframes for the master trend settings. The following filters can be used to customize the trend parameters:
Signals Only Allowed In Direction Of Timeframes 4 & 5
Trend Of Timeframe #1 Used For Master Trend Signals
Trend Of Timeframe #2 Used For Master Trend Signals
Trend Of Timeframe #3 Used For Master Trend Signals
Trend Of Timeframe #4 Used For Master Trend Signals
Trend Of Timeframe #5 Used For Master Trend Signals
No Master Trend Signals If This Timeframe Is Ranging - #1
No Master Trend Signals If This Timeframe Is Ranging - #2
No Master Trend Signals If This Timeframe Is Ranging - #3
Make sure to keep all trend timeframes in order from 1-5 for best results, even if they are turned off. The indicator is programmed to compare each timeframe to the next one, so keeping the timeframes in order will give you proper calculations. For example: timeframes 1-5 should be 15, 60, 240, 1D, 1W or 240, 1D, 1W, 1M, 3M and so on.
The indicator has alerts for bullish and bearish versions of each type of signal so you can get notified when a chart is trending strongly.
Market Hours Available To Use The Indicator On
The indicator works on stocks, crypto, forex and futures markets and other markets that have the same hours, you just need to select the hours that the market you are trading has in the main indicator settings to get the correct signals. There are options for stock hours(6.5 hours a day, 5 days per week), futures/forex hours(23 hours a day, 5 days per week) and crypto hours(24 hours a day, 7 days per week). Just select the correct option in the dropdown menu and the indicator will calculate based on those hours.
Master Trend Settings
The master trend is calculated using Timeframes 1-5, the setting for whether to use timeframes 1-5 for signals, ranging market filters 1-3 and only allow signals in the direction of timeframes 4 & 5. These settings will affect how the overall trend is calculated, which has to be trending in order for any confluence signals to come in.
Set timeframe 1 to a higher timeframe than your chart is set to. For example if you trade the 1 minute or 5 minute chart, timeframe #1 needs to be set to something higher than your chart so 15, 60 or 240. Then set timeframes 2-5 to be one timeframe higher than the previous one. So if timeframe 1 is 60, then timeframe 2 should be 240 and so on. Make sure to do this even if you do not turn on each timeframe to be used for master trend signals as the higher timeframes will still affect the confluence signals.
Turn on or off the toggle for each timeframe if you want the master trend to use. Keeping just lower timeframes on will give more signals for short term trends and leaving all of the timeframes on will only give signals when all of the timeframes are trending. I recommend keeping timeframes 1 & 2 on at the very least and then turning on or off timeframes 3-5 based on how many signals you want and how strong you want the trend to be in order for signals to be given.
Ranging Market Filters
The indicator has parameters to detect if the market is ranging or moving sideways on each timeframe and will show this by coloring the trend strength score in the bottom panel grey for that timeframe. When the market is ranging, it is best to not trade because there is no established trend. Use these filters to increase the probability of the master trend and confluence trend signals being correct and moving in the direction of the trend.
If you turn on the ranging market filters, you will not get any signals if the market is detected as ranging on any of the timeframes you have turned on for the ranging market filters.
You can use 1, 2 or all 3 ranging market filters to dial in the indicator to your preference. Make sure to backtest it and look at historical data to see how this will affect the indicator and choose what settings work best for your style of trading.
Signals Only Allowed In Direction Of Timeframes 4 & 5
If you only want to make sure you are trading in the direction of the long term trend, turn this setting on. It will prevent the indicator from giving any signals that are not in the same direction as the long term trends and increase your probability for winning trades.
This setting allows you to quickly filter out any noise that you will get from lower timeframe trends that are not in the same direction as the long term trends and helps to ensure you stick to the overall trend. Markets will usually make much faster and larger moves in the direction of the overall trend and have high resistance, choppy moves when going in the opposite direction, so this will help you avoid getting into those trades even if you don’t have timeframes 4 & 5 turned on in the master trend timeframe settings.
Strong Buy & Sell Signals
When the master trend detects a trending market and the trend is strong on all 5 timeframes, the indicator will show crosses on the chart meaning these are great entry points to get into the market with positions in the direction of the trend. There are 3 levels of these signals and will show as small crosses, medium crosses and large crosses. The larger the cross is, the stronger the trend is and is more likely to continue the trend.
Use these strong buy & sell signal crosses as entry points and place your stop loss at the most recent major pivot. Then trail your stop loss with the trade to lock in profits.
Pullbacks During Strong Trend Signals
When there is a strong trend on timeframes 3-5 and a pullback on timeframes 1 & 2, then move back in the direction of the higher timeframe trend, this will fire a signal to enter a trade in the direction of the trend. These are excellent entries since the market has pulled back, allowing you to have a good entry with low potential drawdown.
These signals will appear as label tag or price tag looking signals. Use these for your entries and then place a stop loss just beyond the most recent major pivot and trail your stop loss as the trade moves in your favor to lock in profits.
Strong All Timeframe Trend Signals
When the trend is strong on all timeframes that you have set to use for master trend signals, the indicator will show circles/dots on the chart above or below the candles. There is also a second type of strong trend calculation that it uses that will detect a strong trend in a slightly different way and that formula will paint a background color on the chart as extra confluence. When the background color and dots show up at the same time, that means both formulas are showing strong trends.
Use these dots and background coloring to confirm your position and continue to hold it for more gains. Strong trends typically continue in the same direction so use these signals as extra confluence to hold your position and stay in the trade.
Trend Strength Score Signals
Each timeframe will have a trend strength score calculated. If you turn the visuals on in the master trend timeframe settings, they will show up as an oscillator in the bottom panel. It will show red for bearish trends and green for bullish trends and grey when the market is ranging. It will also show a label next to each timeframe telling you the score out of the maximum score for that timeframe.
Pay attention to these as they will give you a very quick way to read the long term and short term trends. When all timeframes are trending strongly, the background will paint red or green to notify you of strong trends that you can trade.
When the long term trends agree, but short term trends are going against the long term, look for the short term trends to reverse and use those areas as entry positions for longer trades in the direction of the overall trend. Doing this really helps to identify possible reversals and keep you from getting into those types of trades too early.
Timeframes The Indicator Can Be Used On
The indicator is setup to be used on the following chart timeframes: 15 seconds, 30 seconds, 1 minute, 2 minute, 3 minute, 5 minute, 10 minute, 15 minute, 30 minute, 1 hour, 2 hour, 4 hour, 6 hour, 8 hour, 12 hour and 1 day charts.
If your chart is set to a different timeframe than the ones listed above, it will not calculate properly, so make sure your chart is on the correct timeframe.
Markets The Indicator Can Be Used On
The indicator has 3 modes for various market hours. The type of market doesn’t matter, what matters is how many hours that market is open for. Almost all markets fall under 3 types of opening hours so we have provided the ability for the indicator to calculate correctly on all 3 types of market hours. The hours it can use are: stocks(6.5 hours per day, 5 days per week), crypto(24 hours per day, 7 days per week) and futures/forex(23 hours per day, 5 days per week).
You will need to update this setting from the dropdown at the top of the indicator settings to match the chart that you are on for it to calculate correctly.
Filtering Other Indicators Using The Trend Direction Of This Indicator
The indicator has a built in trend direction value that can be sent to other indicators and used as a filter. By setting an input.source() value on other indicators that are on the same chart as this indicator, you can set that indicator to do or not do whatever you want when this trend indicator shows a trend or not.
The name of the source you can use on your external indicator is called Trend Direction To Send To External Indicators. The values it sends are as follows: 0 when there is no master trend direction, 1 when the master trend is bullish and -1 when the master trend is bearish.
By using this source, you can prevent other indicators from giving sell signals during up trends, prevent other indicators from giving buy signals during down trends and prevent other indicators from giving any signals when the market is ranging or not showing an established trend.
Alerts Available To Use
The indicator has alerts for bullish versions as well as bearish versions of each type of signal available. Use these alerts to notify you of strong trends on markets that you may not have the charts up for at all times but still want to trade.
Institutional Quantum Momentum Impulse [BullByte]## Overview
The Institutional Quantum Momentum Impulse (IQMI) is a sophisticated momentum oscillator designed to detect institutional-level trend strength, volatility conditions, and market regime shifts. It combines multiple advanced technical concepts, including:
- Quantum Momentum Engine (Hilbert Transform + MACD Divergence + Stochastic Energy)
- Fractal Volatility Scoring (GARCH + Keltner-based volatility)
- Dynamic Adaptive Bands (Self-adjusting thresholds based on efficiency)
- Market Phase Detection (Volume + Momentum alignment)
- Liquidity & Cumulative Delta Analysis
The indicator provides a Z-score normalized momentum reading, making it ideal for mean-reversion and trend-following strategies.
---
## Key Features
### 1. Quantum Momentum Core
- Combines Hilbert Transform, MACD divergence, and Stochastic Energy into a single composite momentum score.
- Normalized using a Z-score for statistical significance.
- Smoothed with EMA/WMA/HMA for cleaner signals.
### 2. Dynamic Adaptive Bands
- Upper/Lower bands adjust based on volatility and efficiency ratio .
- Acts as overbought/oversold zones when momentum reaches extremes.
### 3. Market Phase Detection
- Identifies bullish , bearish , or neutral phases using:
- Volume-Weighted MA alignment
- Fractal momentum extremes
### 4. Volatility & Liquidity Filters
- Fractal Volatility Score (0-100 scale) shows market instability.
- Liquidity Check ensures trades are taken in favorable spread conditions.
### 5. Dashboard & Visuals
- Real-time dashboard with key metrics:
- Momentum strength, volatility, efficiency, cumulative delta, and market regime.
- Gradient coloring for intuitive momentum visualization .
---
## Best Trade Setups
### 1. Trend-Following Entries
- Signal :
- QM crosses above zero + Market Phase = Bullish + ADX > 25
- Cumulative Delta rising (buying pressure)
- Confirmation :
- Efficiency > 0.5 (strong momentum quality)
- Liquidity = High (tight spreads)
### 2. Mean-Reversion Entries
- Signal :
- QM touches upper band + Volatility expanding
- Market Regime = Ranging (ADX < 25)
- Confirmation :
- Efficiency < 0.3 (weak momentum follow-through)
- Cumulative Delta divergence (price high but delta declining)
### 3. Breakout Confirmation
- Signal :
- QM holds above zero after a pullback
- Market Phase shifts to Bullish/Bearish
- Confirmation :
- Volatility rising (expansion phase)
- Liquidity remains high
---
## Recommended Timeframes
- Intraday (5M - 1H): Works well for scalping & swing trades.
- Swing Trading (4H - Daily): Best for trend-following setups.
- Position Trading (Weekly+): Useful for macro trend confirmation.
---
## Input Customization
- Resonance Factor (1.0 - 3.618 ): Adjusts MACD divergence sensitivity.
- Entropy Filter (0.382/0.50/0.618) : Controls stochastic damping.
- Smoothing Type (EMA/WMA/HMA) : Changes momentum responsiveness.
- Normalization Period : Adjusts Z-score lookback.
---
The IQMI is a professional-grade momentum indicator that combines institutional-level concepts into a single, easy-to-read oscillator. It works across all markets (stocks, forex, crypto) and is ideal for traders who want:
✅ Early trend detection
✅ Volatility-adjusted signals
✅ Institutional liquidity insights
✅ Clear dashboard for quick analysis
Try it on TradingView and enhance your trading edge! 🚀
Happy Trading!
- BullByte
HALC SYHALC SY @CK
Heikin Ashi Last Candle shows color of the last closed 30m heikin ashi candle for every new candle on your graph indicating local trend for scalp & short term trading in rder to help u choose right direction in your 1-5m tf trading. Non-repainting & designed for use on any graph type incl HA, Renko and other problematic syntetic as well as any of your own.
Dont recommend as entry signal but strong support to confirm/deny your trade system entry signal. Enjoy!
TrendLibrary "Trend"
calculateSlopeTrend(source, length, thresholdMultiplier)
Parameters:
source (float)
length (int)
thresholdMultiplier (float)
Purpose:
The primary goal of this function is to determine the short-term trend direction of a given data series (like closing prices). It does this by calculating the slope of the data over a specified period and then comparing that slope against a dynamic threshold based on the data's recent volatility. It classifies the trend into one of three states: Upward, Downward, or Flat.
Parameters:
`source` (Type: `series float`): This is the input data series you want to analyze. It expects a series of floating-point numbers, typically price data like `close`, `open`, `hl2` (high+low)/2, etc.
`length` (Type: `int`): This integer defines the lookback period. The function will analyze the `source` data over the last `length` bars to calculate the slope and standard deviation.
`thresholdMultiplier` (Type: `float`, Default: `0.1`): This is a sensitivity factor. It's multiplied by the standard deviation to determine how steep the slope needs to be before it's considered a true upward or downward trend. A smaller value makes it more sensitive (detects trends earlier, potentially more false signals), while a larger value makes it less sensitive (requires a stronger move to confirm a trend).
Calculation Steps:
Linear Regression: It first calculates the value of a linear regression line fitted to the `source` data over the specified `length` (`ta.linreg(source, length, 0)`). Linear regression finds the "best fit" straight line through the data points.
Slope Calculation: It then determines the slope of this linear regression line. Since `ta.linreg` gives the *value* of the line on the current bar, the slope is calculated as the difference between the current bar's linear regression value (`linRegValue`) and the previous bar's value (`linRegValue `). A positive difference means an upward slope, negative means downward.
Volatility Measurement: It calculates the standard deviation (`ta.stdev(source, length)`) of the `source` data over the same `length`. Standard deviation is a measure of how spread out the data is, essentially quantifying its recent volatility.
Adaptive Threshold: An adaptive threshold (`threshold`) is calculated by multiplying the standard deviation (`stdDev`) by the `thresholdMultiplier`. This is crucial because it means the definition of a "flat" trend adapts to the market's volatility. In volatile times, the threshold will be wider, requiring a larger slope to signal a trend. In quiet times, the threshold will be narrower.
Trend Determination: Finally, it compares the calculated `slope` to the adaptive `threshold`:
If the `slope` is greater than the positive `threshold`, the trend is considered **Upward**, and the function returns `1`.
If the `slope` is less than the negative `threshold` (`-threshold`), the trend is considered **Downward**, and the function returns `-1`.
If the `slope` falls between `-threshold` and `+threshold` (inclusive of 0), the trend is considered **Flat**, and the function returns `0`.
Return Value:
The function returns an integer representing the determined trend direction:
`1`: Upward trend
`-1`: Downward trend
`0`: Flat trend
In essence, this library function provides a way to gauge trend direction using linear regression, but with a smart filter (the adaptive threshold) to avoid classifying minor noise or low-volatility periods as significant trends.
02 SMC + BB Breakout (Improved)This strategy combines Smart Money Concepts (SMC) with Bollinger Band breakouts to identify potential trading opportunities. SMC focuses on identifying key price levels and market structure shifts, while Bollinger Bands help pinpoint overbought/oversold conditions and potential breakout points. The strategy also incorporates higher timeframe trend confirmation to filter out trades that go against the prevailing trend.
Key Components:
Bollinger Bands:
Calculated using a Simple Moving Average (SMA) of the closing price and a standard deviation multiplier.
The strategy uses the upper and lower bands to identify potential breakout points.
The SMA (basis) acts as a centerline and potential support/resistance level.
The fill between the upper and lower bands can be toggled by the user.
Higher Timeframe Trend Confirmation:
The strategy allows for optional confirmation of the current trend using a higher timeframe (e.g., daily).
It calculates the SMA of the higher timeframe's closing prices.
A bullish trend is confirmed if the higher timeframe's closing price is above its SMA.
This helps filter out trades that go against the prevailing long-term trend.
Smart Money Concepts (SMC):
Order Blocks:
Simplified as recent price clusters, identified by the highest high and lowest low over a specified lookback period.
These levels are considered potential areas of support or resistance.
Liquidity Zones (Swing Highs/Lows):
Identified by recent swing highs and lows, indicating areas where liquidity may be present.
The Swing highs and lows are calculated based on user defined lookback periods.
Market Structure Shift (MSS):
Identifies potential changes in market structure.
A bullish MSS occurs when the closing price breaks above a previous swing high.
A bearish MSS occurs when the closing price breaks below a previous swing low.
The swing high and low values used for the MSS are calculated based on the user defined swing length.
Entry Conditions:
Long Entry:
The closing price crosses above the upper Bollinger Band.
If higher timeframe confirmation is enabled, the higher timeframe trend must be bullish.
A bullish MSS must have occurred.
Short Entry:
The closing price crosses below the lower Bollinger Band.
If higher timeframe confirmation is enabled, the higher timeframe trend must be bearish.
A bearish MSS must have occurred.
Exit Conditions:
Long Exit:
The closing price crosses below the Bollinger Band basis.
Or the Closing price falls below 99% of the order block low.
Short Exit:
The closing price crosses above the Bollinger Band basis.
Or the closing price rises above 101% of the order block high.
Position Sizing:
The strategy calculates the position size based on a fixed percentage (5%) of the strategy's equity.
This helps manage risk by limiting the potential loss per trade.
Visualizations:
Bollinger Bands (upper, lower, and basis) are plotted on the chart.
SMC elements (order blocks, swing highs/lows) are plotted as lines, with user-adjustable visibility.
Entry and exit signals are plotted as shapes on the chart.
The Bollinger band fill opacity is adjustable by the user.
Trading Logic:
The strategy aims to capitalize on Bollinger Band breakouts that are confirmed by SMC signals and higher timeframe trend. It looks for breakouts that align with potential market structure shifts and key price levels (order blocks, swing highs/lows). The higher timeframe filter helps avoid trades that go against the overall trend.
In essence, the strategy attempts to identify high-probability breakout trades by combining momentum (Bollinger Bands) with structural analysis (SMC) and trend confirmation.
Key User-Adjustable Parameters:
Bollinger Bands Length
Standard Deviation Multiplier
Higher Timeframe
Higher Timeframe Confirmation (on/off)
SMC Elements Visibility (on/off)
Order block lookback length.
Swing lookback length.
Bollinger band fill opacity.
This detailed description should provide a comprehensive understanding of the strategy's logic and components.
***DISCLAIMER: This strategy is for educational purposes only. It is not financial advice. Past performance is not indicative of future results. Use at your own risk. Always perform thorough backtesting and forward testing before using any strategy in live trading.***
Auto TrendLines [TradingFinder] Support Resistance Signal Alerts🔵 Introduction
The trendline is one of the most essential tools in technical analysis, widely used in financial markets such as Forex, cryptocurrency, and stocks. A trendline is a straight line that connects swing highs or swing lows and visually indicates the market’s trend direction.
Traders use trendlines to identify price structure, the strength of buyers and sellers, dynamic support and resistance zones, and optimal entry and exit points.
In technical analysis, trendlines are typically classified into three categories: uptrend lines (drawn by connecting higher lows), downtrend lines (formed by connecting lower highs), and sideways trends (moving horizontally). A valid trendline usually requires at least three confirmed touchpoints to be considered reliable for trading decisions.
Trendlines can serve as the foundation for a variety of trading strategies, such as the trendline bounce strategy, valid breakout setups, and confluence-based analysis with other tools like candlestick patterns, divergences, moving averages, and Fibonacci levels.
Additionally, trendlines are categorized into internal and external, and further into major and minor levels, each serving unique roles in market structure analysis.
🔵 How to Use
Trendlines are a key component in technical analysis, used to identify market direction, define dynamic support and resistance zones, highlight strategic entry and exit points, and manage risk. For a trendline to be reliable, it must be drawn based on structural principles—not by simply connecting two arbitrary points.
🟣 Selecting Pivot Types Based on Trend Direction
The first step is to determine the market trend: uptrend, downtrend, or sideways.
Then, choose pivot points that match the trend type :
In an uptrend, trendlines are drawn by connecting low pivots, especially higher lows.
In a downtrend, trendlines are formed by connecting high pivots, specifically lower highs.
It is crucial to connect pivots of the same type and structure to ensure the trendline is valid and analytically sound.
🟣 Pivot Classification
This indicator automatically classifies pivot points into two categories :
Major Pivots :
MLL : Major Lower Low
MHL : Major Higher Low
MHH : Major Higher High
MLH : Major Lower High
These define the primary structure of the market and are typically used in broader structural analysis.
Minor Pivots :
mLL: minor Lower Low
mHL: minor Higher Low
mHH: minor Higher High
mLH: minor Lower High
These are used for drawing more precise trendlines within corrective waves or internal price movements.
Example : In a downtrend, drawing a trendline from an MHH to an mHH creates structural inconsistency and introduces noise. Instead, connect points like MHL to MHL or mLH to mLH for a valid trendline.
🟣 Drawing High-Precision Trendlines
To ensure a reliable trendline :
Use pivots of the same classification (Major with Major or Minor with Minor).
Ensure at least three valid contact points (three touches = structural confirmation).
Draw through candles with the least deviation (choose wicks or bodies based on confluence).
Preferably draw from right to left for better alignment with current market behavior.
Use parallel lines to turn a single trendline into a trendline zone, if needed.
🟣 Using Trendlines for Trade Entries
Bounce Entry: When price approaches the trendline and shows signs of reversal (e.g., a reversal candle, divergence, or support/resistance), enter in the direction of the trend with a logical stop-loss.
Breakout Entry: When price breaks through the trendline with strong momentum and a confirmation (such as a retest or break of structure), consider trading in the direction of the breakout.
🟣 Trendline-Based Risk Management
For bounce entries, the stop-loss is placed below the trendline or the last pivot low (in an uptrend).
For breakout entries, the stop-loss is set behind the breakout candle or the last structural level.
A broken trendline can also act as an exit signal from a trade.
🟣 Combining Trendlines with Other Tools (Confluence)
Trendlines gain much more strength when used alongside other analytical tools :
Horizontal support and resistance levels
Moving averages (such as EMA 50 or EMA 200)
Fibonacci retracement zones
Candlestick patterns (e.g., Engulfing, Pin Bar)
RSI or MACD divergences
Market structure breaks (BoS / ChoCH)
🔵 Settings
Pivot Period : This defines how sensitive the pivot detection is. A higher number means the algorithm will identify more significant pivot points, resulting in longer-term trendlines.
Alerts
Alert :
Enable or disable the entire alert system
Set a custom alert name
Choose how often alerts trigger (every time, once per bar, or on bar close)
Select the time zone for alert timestamps (e.g., UTC)
Each trendline type supports two alert types :
Break Alert : Triggered when price breaks the trendline
React Alert : Triggered when price reacts or bounces off the trendline
These alerts can be independently enabled or disabled for all trendline categories (Major/Minor, Internal/External, Up/Down).
Display :
For each of the eight trendline types, you can control :
Whether to show or hide the line
Whether to delete the previous line when a new one is drawn
Color, line style (solid, dashed, dotted), extension direction (e.g., right only), and width
Major lines are typically thicker and more opaque, while minor lines appear thinner and more transparent.
All settings are designed to give the user full control over the appearance, behavior, and alert system of the indicator, without requiring manual drawing or adjustments.
🔵 Conclusion
A trendline is more than just a line on the chart—it is a structural, strategic, and flexible tool in technical analysis that can serve as the foundation for understanding price behavior and making trading decisions. Whether in trending markets or during corrections, trendlines help traders identify market direction, key zones, and high-potential entry and exit points with precision.
The accuracy and effectiveness of a trendline depend on using structurally valid pivot points and adhering to proper market logic, rather than relying on guesswork or personal bias.
This indicator is built to solve that exact problem. It automatically detects and draws multiple types of trendlines based on actual price structure, separating them into Major/Minor and Internal/External categories, and respecting professional analytical principles such as pivot type, trend direction, and structural location.
[COG]Adaptive Volatility Bands# Adaptive Volatility Bands (AVB) Indicator Guide for Traders
## Special Acknowledgment 🙌
This script is inspired by and builds upon the foundational work of **DonovanWall**, a respected contributor to the trading community. His innovative approach to adaptive indicators has been instrumental in developing this advanced trading tool.
## What is the Adaptive Volatility Bands Indicator?
The Adaptive Volatility Bands (AVB) is a sophisticated technical analysis tool designed to help traders understand market dynamics by creating dynamic, responsive price channels that adapt to changing market conditions. Unlike traditional static indicators, this script uses advanced mathematical techniques to create flexible bands that adjust to market volatility in real-time.
## Key Features and Inputs
### 1. Price and Filtering Options
- **Price Source**: Determines the base price used for calculations (default is HLC3 - Average of High, Low, and Close)
- **Filter Poles**: Controls the smoothness of the indicator (1-9 poles)
- Lower values: More responsive, more noise
- Higher values: Smoother, but slower to react
### 2. Volatility and Band Settings
- **Sample Length**: Determines how many bars are used to calculate volatility (default 144)
- **Volatility Multiplier**: Adjusts the width of the main bands (default 1.414)
- **Outer Band Multiplier**: Controls the width of the outer bands (default 2.5)
- **Inner Band Ratio**: Positions the inner bands between the center and outer bands (default 0.25)
### 3. Advanced Processing Options
- **Lag Reduction Mode**: Helps reduce indicator delay
- **Fast Response Mode**: Makes the indicator more responsive to recent price changes
### 4. Signal and Visualization Options
- **Show Entry Signals**: Displays buy and sell signals
- **Signal Display Style**: Choose between labels or shapes
- **Range Filter**: Adds an additional filter for signal validation
## How the Indicator Works
The Adaptive Volatility Bands create a dynamic price channel with three key components:
1. **Center Line**: Represents the core trend direction
2. **Inner Bands**: Closer to the center line
3. **Outer Bands**: Wider bands that show broader price potential
### Color Dynamics
- The indicator uses a smart color gradient system
- Colors change based on price position within the bands
- Helps visualize bullish (green/blue) and bearish (red) market conditions
## Trading Strategies for Beginners
### Basic Entry Signals
- **Buy Signal**:
- Price touches the center line from below
- Candle is bullish (closes higher than it opens)
- Price is above the center line
- Trend is upward
- **Sell Signal**:
- Price touches the center line from above
- Candle is bearish (closes lower than it opens)
- Price is below the center line
- Trend is downward
### Risk Management Tips
1. Use the bands to identify:
- Potential trend changes
- Volatility levels
- Support and resistance areas
2. Combine with other indicators for confirmation
3. Always use stop-loss orders
4. Adjust parameters to match your trading style and asset
## When to Use This Indicator
Best suited for:
- Trending markets
- Swing trading
- Identifying potential entry and exit points
- Understanding market volatility
### Recommended Markets
- Stocks
- Forex
- Cryptocurrencies
- Futures
## Customization
The script offers extensive customization:
- Adjust smoothness
- Change band multipliers
- Modify color schemes
- Enable/disable features like lag reduction
## Important Considerations for Beginners
🚨 **Disclaimer**:
- No indicator guarantees profits
- Always practice with a demo account first
- Learn and understand the indicator before live trading
- Market conditions change, so continually adapt your strategy
## Getting Started
1. Add the script to your TradingView chart
2. Experiment with different settings
3. Backtest on historical data
4. Start with small positions
5. Continuously learn and improve
Happy Trading! 📈🔍
Cumulative Histogram TickThis script is designed to create a cumulative histogram based on tick data from a specific financial instrument. The histogram resets at the start of each trading session, which is defined by a fixed time.
Key Components:
Tick Data Retrieval:
The script fetches the closing tick values from the specified instrument using request.security("TICK.NY", timeframe.period, close). This line ensures that the script works with the tick data for each bar on the chart.
Session Start and End Detection:
Start Hour: The script checks if the current bar's time is 9:30 AM (hour == 9 and minute == 30). This is used to reset the cumulative value at the beginning of each trading session.
End Hour: It also checks if the current bar's time is 4:00 PM (hour == 16). However, this condition is used to prevent further accumulation after the session ends.
Cumulative Value Management:
Reset: When the start hour condition is met (startHour), the cumulative value (cumulative) is reset to zero. This ensures that each trading session starts with a clean slate.
Accumulation: For all bars that are not at the end hour (not endHour), the tick value is added to the cumulative total. This process continues until the end of the trading session.
Histogram Visualization:
The cumulative value is plotted as a histogram using plot.style_histogram. The color of the histogram changes based on whether the cumulative value is positive (green) or negative (red).
Usage
This script is useful for analyzing intraday market activity by visualizing the accumulation of tick data over a trading session. It helps traders identify trends or patterns within each session, which can be valuable for making informed trading decisions.
Enhanced Fuzzy SMA Analyzer (Multi-Output Proxy) [FibonacciFlux]EFzSMA: Decode Trend Quality, Conviction & Risk Beyond Simple Averages
Stop Relying on Lagging Averages Alone. Gain a Multi-Dimensional Edge.
The Challenge: Simple Moving Averages (SMAs) tell you where the price was , but they fail to capture the true quality, conviction, and sustainability of a trend. Relying solely on price crossing an average often leads to chasing weak moves, getting caught in choppy markets, or missing critical signs of trend exhaustion. Advanced traders need a more sophisticated lens to navigate complex market dynamics.
The Solution: Enhanced Fuzzy SMA Analyzer (EFzSMA)
EFzSMA is engineered to address these limitations head-on. It moves beyond simple price-average comparisons by employing a sophisticated Fuzzy Inference System (FIS) that intelligently integrates multiple critical market factors:
Price deviation from the SMA ( adaptively normalized for market volatility)
Momentum (Rate of Change - ROC)
Market Sentiment/Overheat (Relative Strength Index - RSI)
Market Volatility Context (Average True Range - ATR, optional)
Volume Dynamics (Volume relative to its MA, optional)
Instead of just a line on a chart, EFzSMA delivers a multi-dimensional assessment designed to give you deeper insights and a quantifiable edge.
Why EFzSMA? Gain Deeper Market Insights
EFzSMA empowers you to make more informed decisions by providing insights that simple averages cannot:
Assess True Trend Quality, Not Just Location: Is the price above the SMA simply because of a temporary spike, or is it supported by strong momentum, confirming volume, and stable volatility? EFzSMA's core fuzzyTrendScore (-1 to +1) evaluates the health of the trend, helping you distinguish robust moves from noise.
Quantify Signal Conviction: How reliable is the current trend signal? The Conviction Proxy (0 to 1) measures the internal consistency among the different market factors analyzed by the FIS. High conviction suggests factors are aligned, boosting confidence in the trend signal. Low conviction warns of conflicting signals, uncertainty, or potential consolidation – acting as a powerful filter against chasing weak moves.
// Simplified Concept: Conviction reflects agreement vs. conflict among fuzzy inputs
bullStrength = strength_SB + strength_WB
bearStrength = strength_SBe + strength_WBe
dominantStrength = max(bullStrength, bearStrength)
conflictingStrength = min(bullStrength, bearStrength) + strength_N
convictionProxy := (dominantStrength - conflictingStrength) / (dominantStrength + conflictingStrength + 1e-10)
// Modifiers (Volatility/Volume) applied...
Anticipate Potential Reversals: Trends don't last forever. The Reversal Risk Proxy (0 to 1) synthesizes multiple warning signs – like extreme RSI readings, surging volatility, or diverging volume – into a single, actionable metric. High reversal risk flags conditions often associated with trend exhaustion, providing early warnings to protect profits or consider counter-trend opportunities.
Adapt to Changing Market Regimes: Markets shift between high and low volatility. EFzSMA's unique Adaptive Deviation Normalization adjusts how it perceives price deviations based on recent market behavior (percentile rank). This ensures more consistent analysis whether the market is quiet or chaotic.
// Core Idea: Normalize deviation by recent volatility (percentile)
diff_abs_percentile = ta.percentile_linear_interpolation(abs(raw_diff), normLookback, percRank) + 1e-10
normalized_diff := raw_diff / diff_abs_percentile
// Fuzzy sets for 'normalized_diff' are thus adaptive to volatility
Integrate Complexity, Output Clarity: EFzSMA distills complex, multi-factor analysis into clear, interpretable outputs, helping you cut through market noise and focus on what truly matters for your decision-making process.
Interpreting the Multi-Dimensional Output
The true power of EFzSMA lies in analyzing its outputs together:
A high Trend Score (+0.8) is significant, but its reliability is amplified by high Conviction (0.9) and low Reversal Risk (0.2) . This indicates a strong, well-supported trend.
Conversely, the same high Trend Score (+0.8) coupled with low Conviction (0.3) and high Reversal Risk (0.7) signals caution – the trend might look strong superficially, but internal factors suggest weakness or impending exhaustion.
Use these combined insights to:
Filter Entry Signals: Require minimum Trend Score and Conviction levels.
Manage Risk: Consider reducing exposure or tightening stops when Reversal Risk climbs significantly, especially if Conviction drops.
Time Exits: Use rising Reversal Risk and falling Conviction as potential signals to take profits.
Identify Regime Shifts: Monitor how the relationship between the outputs changes over time.
Core Technology (Briefly)
EFzSMA leverages a Mamdani-style Fuzzy Inference System. Crisp inputs (normalized deviation, ROC, RSI, ATR%, Vol Ratio) are mapped to linguistic fuzzy sets ("Low", "High", "Positive", etc.). A rules engine evaluates combinations (e.g., "IF Deviation is LargePositive AND Momentum is StrongPositive THEN Trend is StrongBullish"). Modifiers based on Volatility and Volume context adjust rule strengths. Finally, the system aggregates these and defuzzifies them into the Trend Score, Conviction Proxy, and Reversal Risk Proxy. The key is the system's ability to handle ambiguity and combine multiple, potentially conflicting factors in a nuanced way, much like human expert reasoning.
Customization
While designed with robust defaults, EFzSMA offers granular control:
Adjust SMA, ROC, RSI, ATR, Volume MA lengths.
Fine-tune Normalization parameters (lookback, percentile). Note: Fuzzy set definitions for deviation are tuned for the normalized range.
Configure Volatility and Volume thresholds for fuzzy sets. Tuning these is crucial for specific assets/timeframes.
Toggle visual elements (Proxies, BG Color, Risk Shapes, Volatility-based Transparency).
Recommended Use & Caveats
EFzSMA is a sophisticated analytical tool, not a standalone "buy/sell" signal generator.
Use it to complement your existing strategy and analysis.
Always validate signals with price action, market structure, and other confirming factors.
Thorough backtesting and forward testing are essential to understand its behavior and tune parameters for your specific instruments and timeframes.
Fuzzy logic parameters (membership functions, rules) are based on general heuristics and may require optimization for specific market niches.
Disclaimer
Trading involves substantial risk. EFzSMA is provided for informational and analytical purposes only and does not constitute financial advice. No guarantee of profit is made or implied. Past performance is not indicative of future results. Use rigorous risk management practices.
Multi-Fibonacci Trend Average[FibonacciFlux]Multi-Fibonacci Trend Average (MFTA): An Institutional-Grade Trend Confluence Indicator for Discerning Market Participants
My original indicator/Strategy:
Engineered for the sophisticated demands of institutional and advanced traders, the Multi-Fibonacci Trend Average (MFTA) indicator represents a paradigm shift in technical analysis. This meticulously crafted tool is designed to furnish high-definition trend signals within the complexities of modern financial markets. Anchored in the rigorous principles of Fibonacci ratios and augmented by advanced averaging methodologies, MFTA delivers a granular perspective on trend dynamics. Its integration of Multi-Timeframe (MTF) filters provides unparalleled signal robustness, empowering strategic decision-making with a heightened degree of confidence.
MFTA indicator on BTCUSDT 15min chart with 1min RSI and MACD filters enabled. Note the refined signal generation with reduced noise.
MFTA indicator on BTCUSDT 15min chart without MTF filters. While capturing more potential trading opportunities, it also generates a higher frequency of signals, including potential false positives.
Core Innovation: Proprietary Fibonacci-Enhanced Supertrend Averaging Engine
The MFTA indicator’s core innovation lies in its proprietary implementation of Supertrend analysis, strategically fortified by Fibonacci ratios to construct a truly dynamic volatility envelope. Departing from conventional Supertrend methodologies, MFTA autonomously computes not one, but three distinct Supertrend lines. Each of these lines is uniquely parameterized by a specific Fibonacci factor: 0.618 (Weak), 1.618 (Medium/Golden Ratio), and 2.618 (Strong/Extended Fibonacci).
// Fibonacci-based factors for multiple Supertrend calculations
factor1 = input.float(0.618, 'Factor 1 (Weak/Fibonacci)', minval=0.01, step=0.01, tooltip='Factor 1 (Weak/Fibonacci)', group="Fibonacci Supertrend")
factor2 = input.float(1.618, 'Factor 2 (Medium/Golden Ratio)', minval=0.01, step=0.01, tooltip='Factor 2 (Medium/Golden Ratio)', group="Fibonacci Supertrend")
factor3 = input.float(2.618, 'Factor 3 (Strong/Extended Fib)', minval=0.01, step=0.01, tooltip='Factor 3 (Strong/Extended Fib)', group="Fibonacci Supertrend")
This multi-faceted architecture adeptly captures a spectrum of market volatility sensitivities, ensuring a comprehensive assessment of prevailing conditions. Subsequently, the indicator algorithmically synthesizes these disparate Supertrend lines through arithmetic averaging. To achieve optimal signal fidelity and mitigate inherent market noise, this composite average is further refined utilizing an Exponential Moving Average (EMA).
// Calculate average of the three supertends and a smoothed version
superlength = input.int(21, 'Smoothing Length', tooltip='Smoothing Length for Average Supertrend', group="Fibonacci Supertrend")
average_trend = (supertrend1 + supertrend2 + supertrend3) / 3
smoothed_trend = ta.ema(average_trend, superlength)
The resultant ‘Smoothed Trend’ line emerges as a remarkably responsive yet stable trend demarcation, offering demonstrably superior clarity and precision compared to singular Supertrend implementations, particularly within the turbulent dynamics of high-volatility markets.
Elevated Signal Confluence: Integrated Multi-Timeframe (MTF) Validation Suite
MFTA transcends the limitations of conventional trend indicators by incorporating an advanced suite of three independent MTF filters: RSI, MACD, and Volume. These filters function as sophisticated validation protocols, rigorously ensuring that only signals exhibiting a confluence of high-probability factors are brought to the forefront.
1. Granular Lower Timeframe RSI Momentum Filter
The Relative Strength Index (RSI) filter, computed from a user-defined lower timeframe, furnishes critical momentum-based signal validation. By meticulously monitoring RSI dynamics on an accelerated timeframe, traders gain the capacity to evaluate underlying momentum strength with precision, prior to committing to signal execution on the primary chart timeframe.
// --- Lower Timeframe RSI Filter ---
ltf_rsi_filter_enable = input.bool(false, title="Enable RSI Filter", group="MTF Filters", tooltip="Use RSI from lower timeframe as a filter")
ltf_rsi_timeframe = input.timeframe("1", title="RSI Timeframe", group="MTF Filters", tooltip="Timeframe for RSI calculation")
ltf_rsi_length = input.int(14, title="RSI Length", minval=1, group="MTF Filters", tooltip="Length for RSI calculation")
ltf_rsi_threshold = input.int(30, title="RSI Threshold", minval=0, maxval=100, group="MTF Filters", tooltip="RSI value threshold for filtering signals")
2. Convergent Lower Timeframe MACD Trend-Momentum Filter
The Moving Average Convergence Divergence (MACD) filter, also calculated on a lower timeframe basis, introduces a critical layer of trend-momentum convergence confirmation. The bullish signal configuration rigorously mandates that the MACD line be definitively positioned above the Signal line on the designated lower timeframe. This stringent condition ensures a robust indication of converging momentum that aligns synergistically with the prevailing trend identified on the primary timeframe.
// --- Lower Timeframe MACD Filter ---
ltf_macd_filter_enable = input.bool(false, title="Enable MACD Filter", group="MTF Filters", tooltip="Use MACD from lower timeframe as a filter")
ltf_macd_timeframe = input.timeframe("1", title="MACD Timeframe", group="MTF Filters", tooltip="Timeframe for MACD calculation")
ltf_macd_fast_length = input.int(12, title="MACD Fast Length", minval=1, group="MTF Filters", tooltip="Fast EMA length for MACD")
ltf_macd_slow_length = input.int(26, title="MACD Slow Length", minval=1, group="MTF Filters", tooltip="Slow EMA length for MACD")
ltf_macd_signal_length = input.int(9, title="MACD Signal Length", minval=1, group="MTF Filters", tooltip="Signal SMA length for MACD")
3. Definitive Volume Confirmation Filter
The Volume Filter functions as an indispensable arbiter of trade conviction. By establishing a dynamic volume threshold, defined as a percentage relative to the average volume over a user-specified lookback period, traders can effectively ensure that all generated signals are rigorously validated by demonstrably increased trading activity. This pivotal validation step signifies robust market participation, substantially diminishing the potential for spurious or false breakout signals.
// --- Volume Filter ---
volume_filter_enable = input.bool(false, title="Enable Volume Filter", group="MTF Filters", tooltip="Use volume level as a filter")
volume_threshold_percent = input.int(title="Volume Threshold (%)", defval=150, minval=100, group="MTF Filters", tooltip="Minimum volume percentage compared to average volume to allow signal (100% = average)")
These meticulously engineered filters operate in synergistic confluence, requiring all enabled filters to definitively satisfy their pre-defined conditions before a Buy or Sell signal is generated. This stringent multi-layered validation process drastically minimizes the incidence of false positive signals, thereby significantly enhancing entry precision and overall signal reliability.
Intuitive Visual Architecture & Actionable Intelligence
MFTA provides a demonstrably intuitive and visually rich charting environment, meticulously delineating trend direction and momentum through precisely color-coded plots:
Average Supertrend: Thin line, green/red for uptrend/downtrend, immediate directional bias.
Smoothed Supertrend: Bold line, teal/purple for uptrend/downtrend, cleaner, institutionally robust trend.
Dynamic Trend Fill: Green/red fill between Supertrends quantifies trend strength and momentum.
Adaptive Background Coloring: Light green/red background mirrors Smoothed Supertrend direction, holistic trend perspective.
Precision Buy/Sell Signals: ‘BUY’/‘SELL’ labels appear on chart when trend touch and MTF filter confluence are satisfied, facilitating high-conviction trade action.
MFTA indicator applied to BTCUSDT 4-hour chart, showcasing its effectiveness on higher timeframes. The Smoothed Length parameter is increased to 200 for enhanced smoothness on this timeframe, coupled with 1min RSI and Volume filters for signal refinement. This illustrates the indicator's adaptability across different timeframes and market conditions.
Strategic Applications for Institutional Mandates
MFTA’s sophisticated design provides distinct advantages for advanced trading operations and institutional investment mandates. Key strategic applications include:
High-Probability Trend Identification: Fibonacci-averaged Supertrend with MTF filters robustly identifies high-probability trend continuations and reversals, enhancing alpha generation.
Precision Entry/Exit Signals: Volume and momentum-filtered signals enable institutional-grade precision for optimized risk-adjusted returns.
Algorithmic Trading Integration: Clear signal logic facilitates seamless integration into automated trading systems for scalable strategy deployment.
Multi-Asset/Timeframe Versatility: Adaptable parameters ensure applicability across diverse asset classes and timeframes, catering to varied trading mandates.
Enhanced Risk Management: Superior signal fidelity from MTF filters inherently reduces false signals, supporting robust risk management protocols.
Granular Customization and Parameterized Control
MFTA offers unparalleled customization, empowering users to fine-tune parameters for precise alignment with specific trading styles and market conditions. Key adjustable parameters include:
Fibonacci Factors: Adjust Supertrend sensitivity to volatility regimes.
ATR Length: Control volatility responsiveness in Supertrend calculations.
Smoothing Length: Refine Smoothed Trend line responsiveness and noise reduction.
MTF Filter Parameters: Independently configure timeframes, lookback periods, and thresholds for RSI, MACD, and Volume filters for optimal signal filtering.
Disclaimer
MFTA is meticulously engineered for high-quality trend signals; however, no indicator guarantees profit. Market conditions are unpredictable, and trading involves substantial risk. Rigorous backtesting and forward testing across diverse datasets, alongside a comprehensive understanding of the indicator's logic, are essential before live deployment. Past performance is not indicative of future results. MFTA is for informational and analytical purposes only and is not financial or investment advice.
Forexsom MA Crossover SignalsA Trend-Following Trading Indicator for TradingView
Overview
This indicator plots two moving averages (MA) on your chart and generates visual signals when they cross, helping traders identify potential trend reversals. It is designed to be simple yet effective for both beginners and experienced traders.
Key Features
✅ Dual Moving Averages – Plots a Fast MA (default: 9-period) and a Slow MA (default: 21-period)
✅ Customizable MA Types – Choose between EMA (Exponential Moving Average) or SMA (Simple Moving Average)
✅ Clear Buy/Sell Signals – Displays "BUY" (green label) when the Fast MA crosses above the Slow MA and "SELL" (red label) when it crosses below
✅ Alerts – Get notified when new signals appear (compatible with TradingView alerts)
✅ Clean Visuals – Easy-to-read moving averages with adjustable colors
How It Works
Bullish Signal (BUY) → Fast MA crosses above Slow MA (suggests uptrend)
Bearish Signal (SELL) → Fast MA crosses below Slow MA (suggests downtrend)
Best Used For
✔ Trend-following strategies (swing trading, day trading)
✔ Confirming trend reversals
✔ Filtering trade entries in combination with other indicators
Customization Options
Adjust Fast & Slow MA lengths
Switch between EMA or SMA for smoother or more responsive signals
Why Use This Indicator?
Simple & Effective – No clutter, just clear signals
Works on All Timeframes – From scalping (1M, 5M) to long-term trading (4H, Daily)
Alerts for Real-Time Trading – Never miss a signal
Trendline Breaks with Multi Fibonacci Supertrend StrategyTMFS Strategy: Advanced Trendline Breakouts with Multi-Fibonacci Supertrend
Elevate your algorithmic trading with institutional-grade signal confluence
Strategy Genesis & Evolution
This advanced trading system represents the culmination of a personal research journey, evolving from my custom " Multi Fibonacci Supertrend with Signals " indicator into a comprehensive trading strategy. Built upon the exceptional trendline detection methodology pioneered by LuxAlgo in their " Trendlines with Breaks " indicator, I've engineered a systematic framework that integrates multiple technical factors into a cohesive trading system.
Core Fibonacci Principles
At the heart of this strategy lies the Fibonacci sequence application to volatility measurement:
// Fibonacci-based factors for multiple Supertrend calculations
factor1 = input.float(0.618, 'Factor 1 (Weak/Fibonacci)', minval = 0.01, step = 0.01)
factor2 = input.float(1.618, 'Factor 2 (Medium/Golden Ratio)', minval = 0.01, step = 0.01)
factor3 = input.float(2.618, 'Factor 3 (Strong/Extended Fib)', minval = 0.01, step = 0.01)
These precise Fibonacci ratios create a dynamic volatility envelope that adapts to changing market conditions while maintaining mathematical harmony with natural price movements.
Dynamic Trendline Detection
The strategy incorporates LuxAlgo's pioneering approach to trendline detection:
// Pivotal swing detection (inspired by LuxAlgo)
pivot_high = ta.pivothigh(swing_length, swing_length)
pivot_low = ta.pivotlow(swing_length, swing_length)
// Dynamic slope calculation using ATR
slope = atr_value / swing_length * atr_multiplier
// Update trendlines based on pivot detection
if bool(pivot_high)
upper_slope := slope
upper_trendline := pivot_high
else
upper_trendline := nz(upper_trendline) - nz(upper_slope)
This adaptive trendline approach automatically identifies key structural market boundaries, adjusting in real-time to evolving chart patterns.
Breakout State Management
The strategy implements sophisticated state tracking for breakout detection:
// Track breakouts with state variables
var int upper_breakout_state = 0
var int lower_breakout_state = 0
// Update breakout state when price crosses trendlines
upper_breakout_state := bool(pivot_high) ? 0 : close > upper_trendline ? 1 : upper_breakout_state
lower_breakout_state := bool(pivot_low) ? 0 : close < lower_trendline ? 1 : lower_breakout_state
// Detect new breakouts (state transitions)
bool new_upper_breakout = upper_breakout_state > upper_breakout_state
bool new_lower_breakout = lower_breakout_state > lower_breakout_state
This state-based approach enables precise identification of the exact moment when price breaks through a significant trendline.
Multi-Factor Signal Confluence
Entry signals require confirmation from multiple technical factors:
// Define entry conditions with multi-factor confluence
long_entry_condition = enable_long_positions and
upper_breakout_state > upper_breakout_state and // New trendline breakout
di_plus > di_minus and // Bullish DMI confirmation
close > smoothed_trend // Price above Supertrend envelope
// Execute trades only with full confirmation
if long_entry_condition
strategy.entry('L', strategy.long, comment = "LONG")
This strict requirement for confluence significantly reduces false signals and improves the quality of trade entries.
Advanced Risk Management
The strategy includes sophisticated risk controls with multiple methodologies:
// Calculate stop loss based on selected method
get_long_stop_loss_price(base_price) =>
switch stop_loss_method
'PERC' => base_price * (1 - long_stop_loss_percent)
'ATR' => base_price - long_stop_loss_atr_multiplier * entry_atr
'RR' => base_price - (get_long_take_profit_price() - base_price) / long_risk_reward_ratio
=> na
// Implement trailing functionality
strategy.exit(
id = 'Long Take Profit / Stop Loss',
from_entry = 'L',
qty_percent = take_profit_quantity_percent,
limit = trailing_take_profit_enabled ? na : long_take_profit_price,
stop = long_stop_loss_price,
trail_price = trailing_take_profit_enabled ? long_take_profit_price : na,
trail_offset = trailing_take_profit_enabled ? long_trailing_tp_step_ticks : na,
comment = "TP/SL Triggered"
)
This flexible approach adapts to varying market conditions while providing comprehensive downside protection.
Performance Characteristics
Rigorous backtesting demonstrates exceptional capital appreciation potential with impressive risk-adjusted metrics:
Remarkable total return profile (1,517%+)
Strong Sortino ratio (3.691) indicating superior downside risk control
Profit factor of 1.924 across all trades (2.153 for long positions)
Win rate exceeding 35% with balanced distribution across varied market conditions
Institutional Considerations
The strategy architecture addresses execution complexities faced by institutional participants with temporal filtering and date-range capabilities:
// Time Filter settings with flexible timezone support
import jason5480/time_filters/5 as time_filter
src_timezone = input.string(defval = 'Exchange', title = 'Source Timezone')
dst_timezone = input.string(defval = 'Exchange', title = 'Destination Timezone')
// Date range filtering for precise execution windows
use_from_date = input.bool(defval = true, title = 'Enable Start Date')
from_date = input.time(defval = timestamp('01 Jan 2022 00:00'), title = 'Start Date')
// Validate trading permission based on temporal constraints
date_filter_approved = time_filter.is_in_date_range(
use_from_date, from_date, use_to_date, to_date, src_timezone, dst_timezone
)
These capabilities enable precise execution timing and market session optimization critical for larger market participants.
Acknowledgments
Special thanks to LuxAlgo for the pioneering work on trendline detection and breakout identification that inspired elements of this strategy. Their innovative approach to technical analysis provided a valuable foundation upon which I could build my Fibonacci-based methodology.
This strategy is shared under the same Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license as LuxAlgo's original work.
Past performance is not indicative of future results. Conduct thorough analysis before implementing any algorithmic strategy.