Positive & negative market data index
An improved variation of the classic PVI & NVI volume analysis indicator. Compare price dynamics with a range of market data.

Indicator appearance.
Description
The indicator is called [SF] PNDI (in the list: [SFT] Positive & negative data index), in the technical analysis section. It is available on the Pro plan and above. It combines two indices in one: the mode is chosen with the Calculation mode setting.
Positive market data index (PMDI) is an indicator that gives signals about price dynamics based on growth in the selected market data. PMDI helps assess trend strength and confirm price reversals.
The indicator draws two lines:
- PNDI, the index itself;
- a moving average of the index.
Both lines are green when the index is above its average and red when it is below.
Positive mode (PMDI). The index follows the price only on bars where the selected data rose compared with the previous bar. If the data did not rise, the index stays the same:
where:
- is the tracked market data parameter at time ,
- is the closing price at time .
Negative mode (NMDI). The index follows the price only on bars where the selected data fell. If the data did not fall, the index stays the same:
where: is the tracked market data parameter at time , is the closing price at time .
With the Volume source, the indicator works like the classic PVI (Positive mode) and NVI (Negative mode).
Settings:
| Parameter | Default | What it sets |
|---|---|---|
| Symbol | empty | Asset. Empty means the chart ticker |
| Calculation mode | Positive | Positive is PMDI, Negative is NMDI |
| Source | Volume | Market data: Volume, Volume delta, Open interest, Tape or Average trade size |
| Initial value | 100 | Initial value of the index |
| Moving average typeline | SMA | Average type: SMA, EMA, WMA, VWMA, LSMA |
| Length | 240 | Average length |
Use cases
RSR
NMDI shows whether a given market data metric has a trend, together with price.
Consider the TWT token on 8 Nov 2023. The asset shows a steady downtrend in open interest and cumulative delta.
With some assumptions, we can say that holders of long positions tend to get rid of their exposure with market orders as soon as possible.
This kind of dynamic points to weakness in the asset at the moment. It can be a reason to reduce a long position and look for a point to open a short.
On 8 Nov 2023 at 7:28 UTC+3, manipulation activity rose in the asset, and large volumes traded that were later positioned toward the downward move. They can be used as a price level for opening a short position. The moment when manipulation activity falls can be taken as the profit-taking point.

RSR