Bulls Power

Bulls Power compares the highest price with an EMA to estimate the strength of buyers.

Role in the strategy

SlotAvailableRole
Entry PointNo—
Entry RuleYesFilters entries by the Bulls Power direction or its level position.
Exit PointNo—
Exit RuleYesTriggers exits by the Bulls Power direction or its level position.

The Bulls Power 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 Bulls Power value:

RuleLong signal is 1 whenShort signal is 1 when
Bulls Power risesBulls Power rose on the previous barBulls Power fell on the previous bar
Bulls Power fallsBulls Power fell on the previous barBulls Power rose on the previous bar
Bulls Power is higher than the Level lineBulls Power is above LevelBulls Power is below −Level
Bulls Power is lower than the Level lineBulls Power is below LevelBulls Power is above −Level
Bulls Power crosses the Level line upwardBulls Power crossed above Level from belowBulls Power crossed below −Level from above
Bulls Power crosses the Level line downwardBulls Power crossed below Level from aboveBulls Power crossed above −Level from below
Bulls Power changes its direction upwardBulls Power formed a valley (down then up)Bulls Power formed a peak (up then down)
Bulls Power changes its direction downwardBulls Power formed a peak (up then down)Bulls Power formed a valley (down then up)

The Level parameter sets the long threshold; the short threshold is always −Level.

Parameters

ParameterTypeDefaultRangePurpose
Periodnumber131 to 1000Period of the EMA of the close price
Levelnumber0−100 to 100Long threshold; the short threshold is −Level

Calculation

tech.BullsPower in engine/indicator-engine/tech.ts computes Bulls Power = High − EMA(Close, Period). The line is drawn in a separate chart pane; positive values mark buying pressure.

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.