Get Updates:
Email
Twitter
RSS

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

Advance/Decline Upper


# 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);

8 Responses to “Advance/Decline Issues or Volume – Upper Study”

  1. Brad says:

    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?

  2. Gary says:

    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. ;)

  3. CL says:

    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.

  4. RonP says:

    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

  5. Dan says:

    TS- when I enter the code get the following error “Unexpected declare: fullrange at 7:9″. Any ideas?

  6. thinkscripter says:

    Yes, blue is the regular volume. TICKPLUS is under development and will be available soon.
    -TS

  7. thinkscripter says:

    It’s a modified version of the Scalper Buys and Sells that I’m working on – not ready for prime-time yet.
    -TS

Leave a Reply