Bulls Power
Bulls Power compares the highest price with an EMA to estimate the strength of buyers.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries by the Bulls Power direction or its level position. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers 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:
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| Bulls Power rises | Bulls Power rose on the previous bar | Bulls Power fell on the previous bar |
| Bulls Power falls | Bulls Power fell on the previous bar | Bulls Power rose on the previous bar |
| Bulls Power is higher than the Level line | Bulls Power is above Level | Bulls Power is below −Level |
| Bulls Power is lower than the Level line | Bulls Power is below Level | Bulls Power is above −Level |
| Bulls Power crosses the Level line upward | Bulls Power crossed above Level from below | Bulls Power crossed below −Level from above |
| Bulls Power crosses the Level line downward | Bulls Power crossed below Level from above | Bulls Power crossed above −Level from below |
| Bulls Power changes its direction upward | Bulls Power formed a valley (down then up) | Bulls Power formed a peak (up then down) |
| Bulls Power changes its direction downward | Bulls 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
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| Period | number | 13 | 1 to 1000 | Period of the EMA of the close price |
| Level | number | 0 | −100 to 100 | Long 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.