Open-source scriptindicator/v1
Awesome Oscillator
Compare short and long simple averages of median price with a zero-centered histogram.
#awesome-oscillator#momentum#oscillator
Description
The Awesome Oscillator subtracts a 34-period simple average of median price from a 5-period average. Its histogram emphasizes changes in market momentum and whether short-term movement is stronger or weaker than the broader baseline.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedAwesome Oscillator · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Awesome Oscillator", { overlay: false });
const fast = sma(hl2, 5);
const slow = sma(hl2, 34);
const ao = fast.map((v, i) => v - slow[i]);
const colors = ao.map((v, i) => i > 0 && v >= ao[i - 1] ? "#26a69a" : "#ef5350");
plot(ao, { title: "AO", type: "histogram", color: colors });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
Community discussion
0 comments
No comments yet. Start the discussion.