PREMIUM: FREE thinkscript_Breadth Ratio Line

ShadowTrader BREADTH RATIO LINE thinkScript

ShadowTrader Breadth Ratio Line

  • Allows you to chart the Breadth Ratio as a line or histogram at the bottom of your breadth chart
  • Be able to compare breadth ratios between different days at a glance
  • Shows the trend of the breadth ratio intraday or historically
  • Includes choice of 14 different ways to plot as line, histogram, arrows, dots, etc.
  • See video below for how to insert and customize on your thinkorswim platform

breadth_ratio_line

 

 

Your thinkScript is in the blue box below.  Watch the video on the right for instructions on how to install and customize the Breadth Ratio Line thinkScript on your thinkorswim platform ————————————————->

 
 
If you have any issues copying the code from the box below, ShadowTrader recommends trying it from a different browser.

If you cannot resolve your issue, please contact support@shadowtrader.net


Statement of Rights and Responsibilities and Non-distribution
This Statement of Rights and Responsibilities (“Statement,” “Terms,” or “SRR”) derives from ShadowTrader’s terms of service that governs our relationship with users and others who interact with ShadowTrader brands, products and services, which we call the ShadowTrader Services or “Services”. By using or accessing the ShadowTrader Services, you agree to this Statement, as updated from time to time in accordance with the ShadowTrader Terms and Conditions and Statement of Rights and Responsibilities. License of the ShadowTrader code: This work is copyrighted by ShadowTrader and all rights of this work under the license are reserved. Use of the ShadowTrader licensed code is for private use only and any other use are prohibited. By exercising any of the rights herein, you are accepting the terms of this license. You have a non-exclusive right to use or alter the ShadowTrader code. Use of this Work other than as provided for in this license is prohibited. Any redistribution is strictly prohibited and will be enforced.

#ShadowTrader (Copyright ShadowTrader), a division of ShadowTrader Technologies, LLC. 2017. All rights reserved. This ShadowTrader Script is for educational purposes only.  ShadowTrader is not responsible for the use,  functionality or the performance of this Script. This work is copyrighted by ShadowTrader and all rights of this work under the license are reserved. Use of the ShadowTrader licensed code is for private use only and any other use are prohibited. By exercising any of the rights herein, you are accepting the terms of this license. You have a non-exclusive right to use or alter the ShadowTrader code. Use of this ShadowTrader Script other than as provided for in this license is prohibited. Any redistribution is strictly prohibited and will be enforced.
declare lower;

input ShowZeroLine = yes;

def UVOL = close(“$UVOL”);
def DVOL = close(“$DVOL”);
def UVOLQ = close(“$UVOL/Q”);
def DVOLQ = close(“$DVOL/Q”);

#NYSE Breadth ratio
plot NYSEratio = if (UVOL >= DVOL) then (UVOL / DVOL) else -(DVOL / UVOL);

NYSEratio.AssignValueColor(if NYSEratio > 0 then Color.GREEN else Color.RED);

plot zeroline = if ShowZeroLine then 0 else Double.NaN;
zeroline.AssignValueColor(if NYSEratio > 0 then Color.GREEN else Color.RED);
zeroline.SetLineWeight(1);
zeroline.HideTitle();
zeroline.HideBubble();