PROTECTED SOURCE SCRIPT
MSB (MM+SP2L+BTB) V6_by_shahriar

📝 MSB(MM + SP2L + BTB) V6_by_shahriar
This indicator is the improved and professional version of the earlier Combo V16. The logic has been streamlined by removing less critical patterns and focusing exclusively on the three most powerful strategies—Micro Map (MM), Spike to 2nd Leg (SP2L), and Back To Break Even (Pro BTB). These three form a "strong triangle" of high-probability entries, all strictly filtered by a long-term Simple Moving Average (SMA) to ensure trades align with the prevailing market trend.
💡 Strategy Logic Overview
This strategy generates a Buy or Sell signal only when the signal condition is met and the price is on the correct side of the Trend SMA (default 200).
1. Micro Map (MM): The Catalyst for Strong Profit Moves
The Micro Map strategy is the critical final piece of the Strong Triangle, acting as the precise trigger that signals the end of consolidation and the start of a powerful, high-momentum profit move in the direction of the trend. While SP2L identifies the momentum start and BTB identifies the retest of value, MM identifies the moment price is ready to explode.

2. Spike to 2nd Leg (SP2L)
The SP2L strategy capitalizes on the market's tendency to continue movement after an initial strong impulse.
Trigger: It first detects a strong impulse move (Spike) based on the Min Bars in Spike and Min Spike Move % inputs. The entry is then triggered upon the breakout of the first corrective bar (pullback) that follows that initial Spike, confirming the continuation of the trend.

3. Back To Break Even (Pro BTB)
The Pro BTB strategy identifies high-probability entries near previous support/resistance levels that have been broken and then retested (a "Breaker" structure).
Trigger: It first detects a breakout of a high/low level defined by the Donchian Channel Length. The signal is generated when the price returns to touch the exact breakout level and then confirms the original trend direction with a closing candle (e.g., a bullish close on a retest of a broken resistance).
⚙️ Settings and Customization (Inputs Tab)
The indicator's parameters are fully customizable to adjust sensitivity and adapt to different markets and timeframes.
Setting Name,Category,Description
SMA Length (Trend Filter),General,Defines the period for the Simple Moving Average (SMA) used to determine the primary trend direction. (Default: 200)
Donchian Channel Length,General,"Determines the lookback period for the Donchian Channel, used to establish significant high/low levels for the Pro BTB strategy. (Default: 20)"
ATR Multiplier for Micro Map/BTB SL,General,A multiplier for the Average True Range (ATR) that can be used for calculating Stop Loss (SL) distance outside of the indicator's core logic.
ATR Multiplier for SP2L SL (Wider),General,"A wider ATR multiplier, often used for setting Stop Loss in the higher volatility SP2L strategy."
Min Bars in Spike,Spike Params,Minimum number of bars used to calculate the price change for detecting an initial Spike in the SP2L strategy.
Min Spike Move %,Spike Params,Minimum percentage price change required over the Min Bars in Spike to qualify as a strong Spike.
MM Correction Bars,Micro Map Params,Sets the number of bars to analyze for the Lower Highs/Higher Lows pattern that confirms consolidation/pullback in the MM strategy.
MM Breakout Lookback,Micro Map Params,Sets the lookback period for the high/low that must be broken to trigger a MM signal after consolidation.
🎨 Style Tab
The Style tab allows users to customize the visual appearance of the indicator on the chart:
⚠️ Disclaimer (Liability Waiver)
This indicator is intended for educational and analytical purposes only.
The signals generated by this combination of strategies are based on historical price data and technical analysis principles. Trading involves substantial risk, and past performance is not indicative of future results. Users must conduct their own thorough research (due diligence) and analysis before making any trading decisions. The indicator serves as a supplementary tool and should not be the sole basis for entering or exiting any financial market position. You are solely responsible for all trading decisions and risks taken.
This indicator is the improved and professional version of the earlier Combo V16. The logic has been streamlined by removing less critical patterns and focusing exclusively on the three most powerful strategies—Micro Map (MM), Spike to 2nd Leg (SP2L), and Back To Break Even (Pro BTB). These three form a "strong triangle" of high-probability entries, all strictly filtered by a long-term Simple Moving Average (SMA) to ensure trades align with the prevailing market trend.
💡 Strategy Logic Overview
This strategy generates a Buy or Sell signal only when the signal condition is met and the price is on the correct side of the Trend SMA (default 200).
1. Micro Map (MM): The Catalyst for Strong Profit Moves
The Micro Map strategy is the critical final piece of the Strong Triangle, acting as the precise trigger that signals the end of consolidation and the start of a powerful, high-momentum profit move in the direction of the trend. While SP2L identifies the momentum start and BTB identifies the retest of value, MM identifies the moment price is ready to explode.
- Logic: This strategy focuses on identifying a tightly controlled consolidation or pullback (indicated by patterns like Lower Highs or Higher Lows over the MM Correction Bars period) that occurs within the major trend (above/below the Trend SMA).
- Trigger: The signal fires when price decisively breaks out of this compressed area (using the MM Breakout Lookback high/low), indicating that the short-term resistance/support has collapsed and the larger trend momentum is taking over.
- Profit Potential: Because this entry follows a period of energy buildup (consolidation), the MM signal is often the precursor to the strongest leg of the move, offering the highest potential for profit capture.
2. Spike to 2nd Leg (SP2L)
The SP2L strategy capitalizes on the market's tendency to continue movement after an initial strong impulse.
Trigger: It first detects a strong impulse move (Spike) based on the Min Bars in Spike and Min Spike Move % inputs. The entry is then triggered upon the breakout of the first corrective bar (pullback) that follows that initial Spike, confirming the continuation of the trend.
3. Back To Break Even (Pro BTB)
The Pro BTB strategy identifies high-probability entries near previous support/resistance levels that have been broken and then retested (a "Breaker" structure).
Trigger: It first detects a breakout of a high/low level defined by the Donchian Channel Length. The signal is generated when the price returns to touch the exact breakout level and then confirms the original trend direction with a closing candle (e.g., a bullish close on a retest of a broken resistance).
⚙️ Settings and Customization (Inputs Tab)
The indicator's parameters are fully customizable to adjust sensitivity and adapt to different markets and timeframes.
Setting Name,Category,Description
SMA Length (Trend Filter),General,Defines the period for the Simple Moving Average (SMA) used to determine the primary trend direction. (Default: 200)
Donchian Channel Length,General,"Determines the lookback period for the Donchian Channel, used to establish significant high/low levels for the Pro BTB strategy. (Default: 20)"
ATR Multiplier for Micro Map/BTB SL,General,A multiplier for the Average True Range (ATR) that can be used for calculating Stop Loss (SL) distance outside of the indicator's core logic.
ATR Multiplier for SP2L SL (Wider),General,"A wider ATR multiplier, often used for setting Stop Loss in the higher volatility SP2L strategy."
Min Bars in Spike,Spike Params,Minimum number of bars used to calculate the price change for detecting an initial Spike in the SP2L strategy.
Min Spike Move %,Spike Params,Minimum percentage price change required over the Min Bars in Spike to qualify as a strong Spike.
MM Correction Bars,Micro Map Params,Sets the number of bars to analyze for the Lower Highs/Higher Lows pattern that confirms consolidation/pullback in the MM strategy.
MM Breakout Lookback,Micro Map Params,Sets the lookback period for the high/low that must be broken to trigger a MM signal after consolidation.
🎨 Style Tab
The Style tab allows users to customize the visual appearance of the indicator on the chart:
- Trend SMA: Displays the long-term SMA line used for trend filtering.
- BTB Long/Short Level: Displays the exact price level of the Donchian Channel breakout when a BTB signal is active (helps visualize the retest point).
- Signal Shapes: Allows customization of the color, size, and style of the shapes for Buy/Sell signals for MM, SP2L, and BTB individually.
⚠️ Disclaimer (Liability Waiver)
This indicator is intended for educational and analytical purposes only.
The signals generated by this combination of strategies are based on historical price data and technical analysis principles. Trading involves substantial risk, and past performance is not indicative of future results. Users must conduct their own thorough research (due diligence) and analysis before making any trading decisions. The indicator serves as a supplementary tool and should not be the sole basis for entering or exiting any financial market position. You are solely responsible for all trading decisions and risks taken.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.