KS Double Line Scalp
- Indicators
- Kulvinder Singh
- Version: 1.4
KS Double Line Scalp
This is a merged dual-moving average indicator designed primarily for scalping on lower timeframes. It combines two smoothing techniques:
- KS TEMA (Triple Exponential Moving Average)
- KSMA
The goal is to provide a clean, low-lag view of trend direction and momentum by displaying both lines together, allowing traders to spot high-probability scalping setups when the two lines interact.
Core Components
| Component | Type | Default Value | Purpose |
|---|---|---|---|
| TEMA Length | Triple EMA | 9 | Fast, responsive trend line with reduced lag |
| KSMA Length | ALMA-based | 9 | Smooth, sharp trend line |
| Offset | ALMA Parameter | 0.85 | Controls balance between smoothness (near 1) and responsiveness (near 0) |
| Sigma | ALMA Parameter | 6.0 | Controls the "sharpness" / Gaussian filter width |
Key Features
1. Dual-Line System
- Blue Line (TEMA): More responsive, reacts faster to price changes.
- DodgerBlue Line (KSMA): Smoother and cleaner due to ALMA calculation.
2. Advanced Smoothing
- Uses Triple Exponential Moving Average (TEMA) — excellent at reducing lag while maintaining smoothness.
- Uses ALMA (Arnaud Legoux Moving Average) for KSMA — known for being very smooth yet responsive, with minimal lag compared to SMA/EMA.
3. Scalping-Oriented Design
- Default period of 9 is optimized for fast-moving markets (M1, M5, M15).
- The combination helps filter noise while keeping entries timely — ideal for "double confirmation" scalping strategies.
4. Visual Clarity
- Both lines plotted directly on the price chart.
- Clean, professional coloring.
- Proper DRAW_BEGIN settings so lines start only when enough data is available.
5. Efficient & Professional Code
- Fully optimized with prev_calculated handling.
- No unnecessary recalculations.
- Buffers properly separated (calculation buffers hidden).
How Traders Typically Use It (Common Strategies)
- Trend Direction: When both lines are aligned and sloping in the same direction → strong trend.
- Entry Signals: Look for TEMA crossing KSMA (especially in direction of higher timeframe trend).
- Pullback Entries: Price pulls back to the two lines in a trending market.
- Divergence / Convergence: Watch how the gap between TEMA and KSMA behaves (widening = strong momentum, narrowing = potential exhaustion).
- Exit Signals: Opposite crossover or when price rejects the lines.
