Appearance
Bull Bear Power
High and low against an EMA: bull minus bear pressure.
Kind indicator · Drawn in its own pane
Try it
On the chart, press / and choose Bull Bear Power under Oscillators. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Length | int | 13 |
| Bull color | color | "#089981" |
| Bear color | color | "#F23645" |
Source
From packages/alphascript/indicators/bbpower.as.js.
js
indicator({ name: "Bull Bear Power", shortTitle: "BBPower", overlay: false });
const length = input.int("Length", 13, { min: 1 });
const e = ta.ema(candle.close, length);
plot(ta.calc([candle.high, candle.low, e], (h, l, m) => h - m + (l - m)), { title: "BBPower", style: "columns",
colorUp: input.color("Bull color", "#089981", { group: "Style" }), colorDown: input.color("Bear color", "#F23645", { group: "Style" }) });