Volumes

The Volumes indicator shows the number of units traded within each bar.

Role in the strategy

SlotAvailableRole
Entry PointNo—
Entry RuleYesFilters entries by the volume direction or its level position.
Exit PointNo—
Exit RuleYesTriggers 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:

RuleSignal is 1 when
Volume risesVolume rose on the previous bar
Volume fallsVolume fell on the previous bar
Volume is higher than the Level lineVolume is above Level
Volume is lower than the Level lineVolume is below Level
Volume crosses the Level line upwardVolume crossed above Level from below
Volume crosses the Level line downwardVolume crossed below Level from above
Volume changes its direction upwardVolume formed a valley (down then up)
Volume changes its direction downwardVolume 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

ParameterTypeDefaultRangePurpose
Levelnumber10000 to 1000000Threshold 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.