In an ongoing effort to simplify my charts I have modified the Market Breadth indicator to be superimposed on the volume. You must have the “Overlapped Volume” style setting selected. You can display NYSE or NASDAQ advancing-declining issues or advancing-declining volume. There is a scaling factor to minimize the plot to suit your needs.
# ADVANCE-DECLINE-UPPER
# (c) 2009 http://thinkscripter.wordpress.com
# thinkscripter@gmail.com
# Last Update 19 Feb 2009
declare on_volume;
declare upper;
input display = {default ADIssues, ADVolume};
input market = {default NYSE, NASDAQ};
input scaleFactor = 1.0;
def maxVolume = highestAll(volume);
def advancing = if(market, close("$advn/q"), close("$advn"));
def declining = if(market, close("$decn/q"), close("$decn"));
def advVolume = if(market, close("$uvol/q"), close("$uvol"));
def decVolume = if(market, close("$dvol/q"), close("$dvol"));
def maxADV = max(highestAll(advVolume), highestAll(decVolume));
def maxADI = max(highestAll(advancing), highestAll(declining));
def ratioV = maxVolume/maxADV;
def ratioI = maxVolume/maxADI;
plot Breadth;
switch (display) {
case ADIssues:
Breadth = if(advancing - declining > 0, advancing - declining, declining - advancing)*scaleFactor*ratioI;
case ADVolume:
Breadth = if(advVolume - decVolume > 0, advVolume - decVolume, decVolume - advVolume)*ScaleFactor*ratioV ;
}
Breadth.AssignValueColor(
if display == display.ADIssues
then
if advancing - declining > 0 then color.dark_green else color.dark_red
else if advVolume - decVolume > 0 then color.dark_green else color.dark_red);
Breadth.SetPaintingStrategy(paintingStrategy.HISTOGRAM);
Breadth.SetLineWeight(5);





I’m having trouble getting mine to look like yours, perhaps you have your chart colors set differently.
The blue is your regular volume? which i think makes it look a little cleaner with this study.
Have you posted your TickPlus indicator before?
This is such an awesome site. Great work on all of the indicators. TICKPLUS looks sweet along with all of the others. I cannot wait!! I will be donating shortly.
You have Great Stuff here ! Can I ask … what indicator are you using for the white triangles (above and below candles) ? …. on the chart in the “Advance/Decline Issues or Volume – Upper Study” code post.
I was looking at your Advance/Decline Issues or Volume – Upper Study, and all my charts show is volume, if I allow, on an intraday chart on ES. Am I doing something wrong?
Thanks
TS- when I enter the code get the following error “Unexpected declare: fullrange at 7:9″. Any ideas?
The declare fullrange command has been removed from thinkScript. Remove that line of code.
-Eric
Yes, blue is the regular volume. TICKPLUS is under development and will be available soon.
-TS
It’s a modified version of the Scalper Buys and Sells that I’m working on – not ready for prime-time yet.
-TS