Volumes
The Volumes indicator shows the number of units traded within each bar.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries by the volume direction or its level position. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers exits by the volume direction or its level position. |
The Volumes indicator 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 bar volume:
| Rule | Signal is 1 when |
|---|---|
| Volume rises | Volume rose on the previous bar |
| Volume falls | Volume fell on the previous bar |
| Volume is higher than the Level line | Volume is above Level |
| Volume is lower than the Level line | Volume is below Level |
| Volume crosses the Level line upward | Volume crossed above Level from below |
| Volume crosses the Level line downward | Volume crossed below Level from above |
| Volume changes its direction upward | Volume formed a valley (down then up) |
| Volume changes its direction downward | Volume formed a peak (up then down) |
Volume has no direction: the same signal is written for both the long and the short side (noDirectionOscillator).
Parameters
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| Level | number | 1000 | 0 to 1000000 | Threshold for the level rules |
Calculation
The indicator mirrors the volume series of the data set directly (engine/indicators/indicator-volumes.ts) and draws it as a histogram in a separate chart pane.
Backtesting
- The rule is evaluated on the previous (closed) bar with the standard dead zone (
SIGMA = 0.000001). - The indicator contributes only a single signal array copied to both directions — 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.