- Platform
-
- Thinkorswim
Volume of all tickers that went up vs down.

Code:
# UVOL | DVOL
# Created for b4signals.com
# barbaros
declare lower;
plot uvol = close("$uvol") / close("$tvol");
uvol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
uvol.SetDefaultColor(Color.GREEN);
plot dvol = close("$dvol") / close("$tvol");
dvol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
dvol.SetDefaultColor(Color.RED);
AddLabel(yes, " uvol " + AsPercent(uvol), Color.GREEN);
AddLabel(yes, " dvol " + AsPercent(dvol), Color.RED);