Force Index
The Force Index combines price movement and volume to measure the strength of buyers and sellers.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries by the Force Index direction or its zero position. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers exits by the Force Index direction or its zero position. |
The Force Index 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. See Indicators for the slot semantics.
Logic rules
The indicator offers the standard oscillator rule set, evaluated on the Force Index value against the fixed 0 / 0 level pair:
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| Force Index rises | Force Index rose on the previous bar | Force Index fell on the previous bar |
| Force Index falls | Force Index fell on the previous bar | Force Index rose on the previous bar |
| Force Index is higher than the Zero line | Force Index is above 0 | Force Index is below 0 |
| Force Index is lower than the Zero line | Force Index is below 0 | Force Index is above 0 |
| Force Index crosses the Zero line upward | Force Index crossed above 0 from below | Force Index crossed below 0 from above |
| Force Index crosses the Zero line downward | Force Index crossed below 0 from above | Force Index crossed above 0 from below |
| Force Index changes its direction upward | Force Index formed a valley (down then up) | Force Index formed a peak (up then down) |
| Force Index changes its direction downward | Force Index formed a peak (up then down) | Force Index formed a valley (down then up) |
Parameters
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| MA method | select | Simple | Simple, Exponential, Weighted, Smoothed | Smoothing method of the Force Index |
| Period | number | 13 | 2 to 1000 | Smoothing period |
Calculation
engine/indicators/indicator-force-index.ts computes the raw Force Index as (Close − Previous Close) × Volume, smoothed by a moving average with the selected method and period. The line is drawn in a separate chart pane. The indicator needs volume data.
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.