NexusFi: Find Your Edge


Home Menu

 





Convert Tradestation Volume UPDN into TOS


Discussion in ThinkOrSwim

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




 
Search this Thread

Convert Tradestation Volume UPDN into TOS

  #1 (permalink)
Bobkarp
Anaheim, CA
 
Posts: 1 since Apr 2016
Thanks Given: 0
Thanks Received: 0

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 NexusFi?
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #2 (permalink)
rruuvvii
chicago US
 
Posts: 1 since Jun 2021
Thanks Given: 0
Thanks Received: 0


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




Last Updated on June 18, 2021


© 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