NexusFi: Find Your Edge


Home Menu

 





Volume UP/Down Ratios


Discussion in ThinkOrSwim

Updated
    1. trending_up 8,562 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Volume UP/Down Ratios

  #1 (permalink)
Huddy1955
Los Angeles, California USA
 
Posts: 1 since Dec 2013
Thanks Given: 0
Thanks Received: 1

Hello everyone - I have just started looking at programing in ThinkScript - I have been using Worden2000 and programing there is very, very easy.

Currently on TOS I have a study that shows me an UP/DOWN ratio on the $VOLD (Up Volume - Down Volume).
It looks like this:

def U = close("$UVOL");
def D = close ("$DVOL");
def UDL = U - D;
def UDR = if U > D then U / D else -D / U;
input mode = {default Ratio, Issues};
def modeSwitch = if mode == mode.Ratio then 1 else 0;
AddLabel(yes, concat(
if modeSwitch then UDR else UDL, concat(" ",
if modeSwitch then ":1 U/D RATIO" else " U/D LINE")),
if modeSwitch then if UDR > UDR[1] then color.green else color.red else if UDL > UDL[1] then color.green else color.red);
plot null = double.nan;

This puts a green or red label on the $VOLD chart and gives me an indication of strength of the move - ie 2.2 to 1 or 3.5 to 1 etc, etc.

What I want to do, and I don't have a clue as to how to do it, is to actually PLOT the U/D ratio on a chart (line or candles) rather than just be a label.

I also have a similar ThinkScript for $ADVN-$DECN (advancers - decliners) (Also have it for Q's)

Can anyone point me in the right direction to get this plotted?

thanks

Harald

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 gfmatt 
Edmonton, Alberta
 
Experience: Advanced
Platform: IB
Trading: nq
Posts: 55 since Jan 2012
Thanks Given: 29
Thanks Received: 60

I think Brad and Peter at Shadow Traders have this on their website. Video regarding market internals on TOS

Created by Camtasia Studio 5

Reply With Quote
Thanked by:
  #3 (permalink)
itrade
NY, NY
 
Posts: 1 since May 2010
Thanks Given: 4
Thanks Received: 0


9 years later but I was wondering if you were ever able to figure out how to PLOT the U/D ratio on a chart (line or candles) rather than just be a label?

Thank you!

Reply With Quote




Last Updated on April 12, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts