Convert Tradestation Volume UPDN into TOS - ThinkOrSwim | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim

Convert Tradestation Volume UPDN into TOS
Started:April 25th, 2016 (12:29 PM) by Bobkarp Views / Replies:214 / 0
Last Reply:April 25th, 2016 (12:29 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Convert Tradestation Volume UPDN into TOS

Old April 25th, 2016, 12:29 PM   #1 (permalink)
Trading Apprentice
Anaheim, CA
Futures Experience: Intermediate
Platform: thinkorswim, tradestation
Favorite Futures: Emini
Posts: 1 since Apr 2016
Thanks: 0 given, 0 received

Convert Tradestation Volume UPDN into TOS

Can anyone help me to convert this simple Volume UPDN from Tradestation into TOS. It shows volume Difference and Ratio. This is mostly for intraday charting.


//Volume UPDN

{ Plots the difference or ratio (user choice) of the cumulative up and down volume
for the day so far. For use with "live" market data only (the server fields used in
this indicator do not have stored history so will not be plotted on historical
bars). }

DiffOrRatio_1or2( 1 ) ; // set to 1 for Up-Dn difference, 2 for Up/Dn ratio

UpDivDn( 1 ),
UpMinusDn( 0 ) ;

if GetAppInfo( aiRealTimeCalc ) = 1 then { real-time tick - not on bar in history }
if DiffOrRatio_1or2 = 1 then
UpMinusDn = DailyVolumeUp - DailyVolumeDn ;
Plot1( UpMinusDn, "UpDn" ) ;
//Plot2( 0, "Baseline" ) ;
If Plot1 > 0 then setplotcolor(1,green);
else if DiffOrRatio_1or2 = 2 then
if DailyVolumeDn <> 0 then
UpDivDn = DailyVolumeUp / DailyVolumeDn ;
Plot1( UpDivDn, "UpDn" ) ;
//Plot2( 1, "Baseline" ) ;
if plot1 < 0 then setplotcolor(1,red);
RaiseRunTimeError( "DiffOrRatio_1or2 input must be 1 or 2." ) ;
end ;


Thank you

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > Convert Tradestation Volume UPDN into TOS

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOS Convert to TS - Chart Labels - Daily Volume/Period Volume and Bid/Ask trendfriendpa The Elite Circle 1 November 1st, 2015 03:30 PM
Convert ToS code to Sierra rmiller863 Sierra Chart 0 September 29th, 2015 04:52 PM
convert indicators from Tradestation,MultiChart to TOS platform justtradeit84 ThinkOrSwim 2 November 21st, 2013 01:28 AM
Looking for someone to convert Big Mikes Volume Graph Study for TOS Hguru ThinkOrSwim 0 January 10th, 2013 05:43 PM
Can anyone convert a code from TOS j8fire ThinkOrSwim 8 July 18th, 2012 08:24 PM

All times are GMT -4. The time now is 08:38 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-28 in 0.07 seconds with 19 queries on phoenix via your IP