RVI Signal
The RVI Signal is a smoothed version of the RVI that generates trading signals.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries by the RVI position against the Signal line. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers exits by the RVI position against the Signal line. |
The RVI Signal produces conditions, not order prices. As an entry rule it is ANDed with the entry point and the other entry rules; as an exit rule it is ORed with the other exit rules.
Logic rules
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| RVI line crosses the Signal line upward | RVI crossed above the Signal line | RVI crossed below the Signal line |
| RVI line crosses the Signal line downward | RVI crossed below the Signal line | RVI crossed above the Signal line |
| RVI line is higher than the Signal line | RVI is above the Signal line | RVI is below the Signal line |
| RVI line is lower than the Signal line | RVI is below the Signal line | RVI is above the Signal line |
The comparison uses the previous bar's values for both lines.
Parameters
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| Period | number | 10 | 1 to 1000 | Bars of the RVI and Signal |
Calculation
tech.RVI in engine/indicator-engine/tech.ts computes the RVI line; tech.RVISignal computes the Signal line as the weighted average of the RVI with weights 1, 2, 2, 1 over the last four bars. Both lines are drawn in a separate chart pane: the RVI line in green and the Signal line in red.
Backtesting
- The rule is evaluated on the previous (closed) bar with the standard dead zone (
SIGMA = 0.000001). - The indicator contributes only long/short signal arrays — it never changes the entry or exit order price.
- An entry happens only when the entry point allows the direction and every entry rule passes; an exit happens when the exit point is reached and any exit rule passes.