Convert Tradestation Volume UPDN into TOS - futures io
futures io



Convert Tradestation Volume UPDN into TOS


Discussion in ThinkOrSwim

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Convert Tradestation Volume UPDN into TOS

(login for full post details)
  #1 (permalink)
Bobkarp
Anaheim, CA
 
 
Posts: 1 since Apr 2016
Thanks: 0 given, 0 received

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

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

variables:
UpDivDn( 1 ),
UpMinusDn( 0 ) ;

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

////////////////////////////////////////////////////////////////////////////////

Thank you

Reply With Quote

Can you help answer these questions
from other members on futures io?
uptick/downtick vs bid/ask
NinjaTrader
Bars repainting
ThinkOrSwim
Tradestation order types - help
TradeStation
Is there inherently more opportunity in smaller markets?
Traders Hideout
Eurex Denali vs dxFeed
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Question about intraday margins
61 thanks
How quickly do algos go bad?
46 thanks
ZombiePack3 Indicators
19 thanks
Webinar: Building a System for Trading Psychology w/Jare …
18 thanks
Want your NinjaTrader indicator created, free?
14 thanks
 
(login for full post details)
  #2 (permalink)
rruuvvii
chicago US
 
 
Posts: 1 since Jun 2021
Thanks: 0 given, 0 received


Bobkarp View Post
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). }

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

variables:
UpDivDn( 1 ),
UpMinusDn( 0 ) ;

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

////////////////////////////////////////////////////////////////////////////////

Thank you


Im very interesting too!!!!

Thanks

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Convert Tradestation Volume UPDN into TOS


Last Updated on June 18, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing

A Transparent Glimpse Into a Prop Traders Life w/Chris Gray @ Earn2Trade

Elite only
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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