mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 12:08:05 +00:00
Add Vortex Indicator implementation and documentation
- Implemented Vortex Indicator in Vortex.cs, including calculation logic and event handling. - Added detailed documentation for Vortex Indicator in Vortex.md, covering historical context, algorithm, outputs, and trading interpretation. - Updated oscillators index to include TTM Wave indicator. - Added TTM Wave documentation with algorithm and trading interpretation. - Updated reversals index to include TTM Scalper Alert indicator. - Added TTM Scalper Alert documentation with algorithm and trading strategy. - Updated NDepend badges to reflect increased code metrics (classes, methods, lines of code, public types, comments, and complexity).
This commit is contained in:
@@ -15,3 +15,4 @@ Reversal indicators identify potential turning points where price may change dir
|
||||
| [PIVOTWOOD](pivotwood/Pivotwood.md) | Woodie's Pivot Points | Weighted close pivots (2× close weight) for intraday trading. |
|
||||
| [PSAR](psar/Psar.md) | Parabolic Stop And Reverse | Trailing stop that accelerates with trend; SAR dots mark entry/exit signals. |
|
||||
| [SWINGS](swings/Swings.md) | Swing High/Low Detection | Identifies significant price reversals and swing points using configurable lookback. |
|
||||
| [TTM_SCALPER](ttm_scalper/TtmScalper.md) | TTM Scalper Alert | 3-bar pivot high/low detection for scalping entries. John Carter. |
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
# TTM_SCALPER: TTM Scalper Alert
|
||||
|
||||
> **Pending Implementation** - Placeholder for John Carter's TTM Scalper Alert indicator
|
||||
|
||||
## Historical Context
|
||||
|
||||
John Carter designed TTM Scalper Alert for quick identification of potential reversal points using a simple three-bar pattern recognition. The indicator marks pivot highs and lows that can serve as entry triggers for scalping strategies, particularly when combined with other TTM suite indicators.
|
||||
|
||||
## Algorithm
|
||||
|
||||
### Pivot High Detection
|
||||
```
|
||||
pivotHigh = high[1] > high[2] AND high[1] > high[0]
|
||||
// Three consecutive bars where middle bar has highest high
|
||||
```
|
||||
|
||||
### Pivot Low Detection
|
||||
```
|
||||
pivotLow = low[1] < low[2] AND low[1] < low[0]
|
||||
// Three consecutive bars where middle bar has lowest low
|
||||
```
|
||||
|
||||
### Alternative: Close-Based Version
|
||||
```
|
||||
pivotHigh = close[1] > close[2] AND close[1] > close[0]
|
||||
pivotLow = close[1] < close[2] AND close[1] < close[0]
|
||||
```
|
||||
|
||||
## Default Parameters
|
||||
|
||||
| Parameter | Value | Description |
|
||||
|:----------|:------|:------------|
|
||||
| UseCloses | false | Use close prices instead of high/low |
|
||||
| ShowPaintBars | true | Color bars at pivot points |
|
||||
|
||||
## Outputs
|
||||
|
||||
| Output | Type | Description |
|
||||
|:-------|:-----|:------------|
|
||||
| PivotHigh | bool | True on confirmed pivot high (painted on bar-1) |
|
||||
| PivotLow | bool | True on confirmed pivot low (painted on bar-1) |
|
||||
| PivotHighPrice | double | Price level of pivot high |
|
||||
| PivotLowPrice | double | Price level of pivot low |
|
||||
|
||||
## Visual Markers
|
||||
|
||||
- **▼ (Down Triangle):** Pivot high - potential short entry
|
||||
- **▲ (Up Triangle):** Pivot low - potential long entry
|
||||
- Markers appear one bar after confirmation (on the middle bar of the 3-bar pattern)
|
||||
|
||||
## Trading Strategy
|
||||
|
||||
1. **Long Entry:** Pivot low signal + TTM Squeeze firing bullish + TTM Trend bullish
|
||||
2. **Short Entry:** Pivot high signal + TTM Squeeze firing bearish + TTM Trend bearish
|
||||
3. **Stop Placement:** Beyond the pivot point high/low
|
||||
|
||||
## Category
|
||||
|
||||
**Reversals** - Detects potential trend reversal points using simple 3-bar pivot pattern.
|
||||
|
||||
## See Also
|
||||
|
||||
- [SWINGS: Swing High/Low Detection](../swings/Swings.md)
|
||||
- [FRACTALS: Williams Fractals](../fractals/Fractals.md)
|
||||
- [TTM_SQUEEZE: TTM Squeeze](../../dynamics/ttm_squeeze/TtmSqueeze.md)
|
||||
Reference in New Issue
Block a user