OPEN-SOURCE SCRIPT
Dark Vector Scalping

The Dark Vector Scalping indicator is a high-frequency trend-following system designed specifically to capture rapid momentum shifts in the market. It combines a staircase-style breakout logic with volatility-adjusted trailing stops to define market direction.
While the underlying math is robust enough for various asset classes, this specific configuration is optimized for scalping operations on 1-minute and 5-minute timeframes. It aims to filter out the "noise" common in lower timeframes while reacting quickly to genuine breakouts.
Core Components
1. The Apex Engine (Staircase Logic) Unlike traditional moving averages that curve with price, this engine uses a "hard" breakout logic. It looks back at a specific number of bars (Sensitivity) to find the highest highs and lowest lows.
Bullish Flip: Occurs when the price closes below the calculated low of the previous trend.
Bearish Flip: Occurs when the price closes above the calculated high of the previous trend.
Trailing Stop: Once a trend is established, a trailing stop line is drawn. This line only moves in the direction of the trend (up for bullish, down for bearish) and never retraces, acting as a ratchet to lock in paper profits.
2. Volatility Normalization To prevent getting stopped out by random market noise (scam wicks), the indicator calculates the Average True Range (ATR). It multiplies this volatility metric by a user-defined deviation factor to determine exactly how far the stop line should be from the current price action.
3. The Hull Moving Average (HMA) Filter The script includes an optional 50-period Hull Moving Average. The HMA is known for being extremely fast and smooth, reducing lag compared to standard moving averages.
Visual Reference: You can plot the line to see the overall macro trend.
Hard Filter: You can enable a "Safety Filter" in the settings. If enabled, the system will only generate Buy signals if the price is above the HMA, and Sell signals if the price is below the HMA.
4. The Dashboard A data panel is located on the chart (customizable position) to provide instant numerical data without needing to calculate levels manually. It displays the current trend state, the exact price of the trailing stop, and the status of the HMA filter.
Settings & Configuration
Sensitivity (Lookback)
Default: 5
This is the primary setting for the Apex Engine. A setting of 5 is the "sweet spot" for 1-minute and 5-minute charts. It allows the system to react very quickly to sudden volume spikes. Increasing this number (e.g., to 10) will make the signals slower and more conservative.
Stop Deviation
Default: 3.0
This controls the "breathing room" for the trade. A value of 3.0 allows for standard volatility on minute charts without triggering a premature exit. Lowering this to 2.0 will result in tighter stops but more false signals.
HMA Filter
Use HMA as Filter? (Default: OFF):
When OFF, the system signals purely on price action breakouts (fastest).
When ON, the system waits for the price to align with the 50-period HMA before signaling (safest, but may delay entry).
How to Interpret Visuals
Candle Colors
Teal/Green: The market is in a Bullish regime.
Red/Pink: The market is in a Bearish regime.
The Line
The solid stepped line represents the hard invalidation point. If price closes beyond this line, the trend is considered over.
Diamond Signals
Light Green Diamond (Below Bar): Confirmed Buy Signal. A new bullish trend has started.
Light Red/Pink Diamond (Above Bar): Confirmed Sell Signal. A new bearish trend has started.
Trading Strategy Guide
The Scalp Entry
Ensure you are on a 1-minute or 5-minute timeframe.
Wait for a signal Diamond to close. Do not enter while the bar is still forming, as the signal may repaint (disappear) if the price retraces before the close.
Long Entry: Enter when a Green Diamond appears and the candle turns Teal.
Short Entry: Enter when a Red Diamond appears and the candle turns Red.
Risk Management
Stop Loss: Your invalidation level is the "Apex Stop" line. You can place your hard stop loss slightly beyond this line.
Take Profit: Because this is a trend-following system, it is often best to hold until the candle color changes, or to take profit at fixed Risk:Reward ratios (e.g., 1:1.5 or 1:2).
The HMA Nuance If you find the market is "choppy" (moving sideways), enable the "Use HMA as Filter" option in the settings. This will force the system to ignore signals that are counter-trend to the longer-term momentum.
Disclaimer
The information provided by the "Dark Vector Scalping" indicator and this accompanying guide is for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Trading cryptocurrencies, stocks, and forex involves a high level of risk and may not be suitable for all investors. You could lose some or all of your initial investment.
While the underlying math is robust enough for various asset classes, this specific configuration is optimized for scalping operations on 1-minute and 5-minute timeframes. It aims to filter out the "noise" common in lower timeframes while reacting quickly to genuine breakouts.
Core Components
1. The Apex Engine (Staircase Logic) Unlike traditional moving averages that curve with price, this engine uses a "hard" breakout logic. It looks back at a specific number of bars (Sensitivity) to find the highest highs and lowest lows.
Bullish Flip: Occurs when the price closes below the calculated low of the previous trend.
Bearish Flip: Occurs when the price closes above the calculated high of the previous trend.
Trailing Stop: Once a trend is established, a trailing stop line is drawn. This line only moves in the direction of the trend (up for bullish, down for bearish) and never retraces, acting as a ratchet to lock in paper profits.
2. Volatility Normalization To prevent getting stopped out by random market noise (scam wicks), the indicator calculates the Average True Range (ATR). It multiplies this volatility metric by a user-defined deviation factor to determine exactly how far the stop line should be from the current price action.
3. The Hull Moving Average (HMA) Filter The script includes an optional 50-period Hull Moving Average. The HMA is known for being extremely fast and smooth, reducing lag compared to standard moving averages.
Visual Reference: You can plot the line to see the overall macro trend.
Hard Filter: You can enable a "Safety Filter" in the settings. If enabled, the system will only generate Buy signals if the price is above the HMA, and Sell signals if the price is below the HMA.
4. The Dashboard A data panel is located on the chart (customizable position) to provide instant numerical data without needing to calculate levels manually. It displays the current trend state, the exact price of the trailing stop, and the status of the HMA filter.
Settings & Configuration
Sensitivity (Lookback)
Default: 5
This is the primary setting for the Apex Engine. A setting of 5 is the "sweet spot" for 1-minute and 5-minute charts. It allows the system to react very quickly to sudden volume spikes. Increasing this number (e.g., to 10) will make the signals slower and more conservative.
Stop Deviation
Default: 3.0
This controls the "breathing room" for the trade. A value of 3.0 allows for standard volatility on minute charts without triggering a premature exit. Lowering this to 2.0 will result in tighter stops but more false signals.
HMA Filter
Use HMA as Filter? (Default: OFF):
When OFF, the system signals purely on price action breakouts (fastest).
When ON, the system waits for the price to align with the 50-period HMA before signaling (safest, but may delay entry).
How to Interpret Visuals
Candle Colors
Teal/Green: The market is in a Bullish regime.
Red/Pink: The market is in a Bearish regime.
The Line
The solid stepped line represents the hard invalidation point. If price closes beyond this line, the trend is considered over.
Diamond Signals
Light Green Diamond (Below Bar): Confirmed Buy Signal. A new bullish trend has started.
Light Red/Pink Diamond (Above Bar): Confirmed Sell Signal. A new bearish trend has started.
Trading Strategy Guide
The Scalp Entry
Ensure you are on a 1-minute or 5-minute timeframe.
Wait for a signal Diamond to close. Do not enter while the bar is still forming, as the signal may repaint (disappear) if the price retraces before the close.
Long Entry: Enter when a Green Diamond appears and the candle turns Teal.
Short Entry: Enter when a Red Diamond appears and the candle turns Red.
Risk Management
Stop Loss: Your invalidation level is the "Apex Stop" line. You can place your hard stop loss slightly beyond this line.
Take Profit: Because this is a trend-following system, it is often best to hold until the candle color changes, or to take profit at fixed Risk:Reward ratios (e.g., 1:1.5 or 1:2).
The HMA Nuance If you find the market is "choppy" (moving sideways), enable the "Use HMA as Filter" option in the settings. This will force the system to ignore signals that are counter-trend to the longer-term momentum.
Disclaimer
The information provided by the "Dark Vector Scalping" indicator and this accompanying guide is for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Trading cryptocurrencies, stocks, and forex involves a high level of risk and may not be suitable for all investors. You could lose some or all of your initial investment.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.