Time Segmented Volume from Worden Telecharts - NinjaTrader | futures io social day trading
futures io futures trading


Time Segmented Volume from Worden Telecharts
Updated: Views / Replies:2,972 / 7
Created: by dataevolved Attachments:7

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Time Segmented Volume from Worden Telecharts

  #1 (permalink)
Elite Member
Australia
 
Futures Experience: Advanced
Platform: NinjaTrader, MotiveWave
Favorite Futures: forex, oil, gold, silver
 
Posts: 4 since Nov 2010
Thanks: 4 given, 0 received

Time Segmented Volume from Worden Telecharts

Hi

I was wondering if anyone has a ninjatrader version of Worden's TSV as per this thread (https://futures.io/thinkorswim-programming/10957-time-segmented-volume-worden-telecharts.html) which was a port to TOS by cbritton as per below. If not, could someone port this for me.

thanks very much
D.


cbritton View Post
Try this:

 
Code
# Time Segmented Value (TSV)

input length = 18;
input avgLength = 10;

# TSV=(Sum( IIf( C > Ref(C,-1), V * ( C-Ref(C,-1) ),
# IIf( C < Ref(C,-1),-V * ( C-Ref(C,-1) ), 0 ) ) ,18)); 

plot TSV = sum( if close > close[1] then volume * (close - close[1]) else if close < close[1] then -1* volume *(close - close[1]) else 0, length);

Plot TSVAvg = Average(TSV, avglength);
You can modify the averaging function to whatever you want.

-C


Reply With Quote
 
  #2 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary


dataevolved View Post
Hi

I was wondering if anyone has a ninjatrader version of Worden's TSV as per this thread (https://futures.io/thinkorswim-programming/10957-time-segmented-volume-worden-telecharts.html) which was a port to TOS by cbritton as per below. If not, could someone port this for me.

thanks very much
D.

the TOS conversion is not correct you can see TSO version stay above zero line. Look at TC2000 TSV it moves above and below zero line.

Attached Thumbnails
Time Segmented Volume from Worden Telecharts-exh1.png   Time Segmented Volume from Worden Telecharts-exh2.png  
Reply With Quote
The following user says Thank You to cory for this post:
 
  #3 (permalink)
Elite Member
Australia
 
Futures Experience: Advanced
Platform: NinjaTrader, MotiveWave
Favorite Futures: forex, oil, gold, silver
 
Posts: 4 since Nov 2010
Thanks: 4 given, 0 received


thanks for letting me know Cory, as I do not use ToS I assumed this was a correct version as per that thread. I would use TC2000 but they only focus only on the US markets, but I also need Australian market too. Appreciate your effort, thanks.

D.

Reply With Quote
 
  #4 (permalink)
Elite Member
Australia
 
Futures Experience: Advanced
Platform: NinjaTrader, MotiveWave
Favorite Futures: forex, oil, gold, silver
 
Posts: 4 since Nov 2010
Thanks: 4 given, 0 received

this version plots above and below the y axis. In essence the function is similar but I am unable to confirm as it is a different instrument, with potentially different volume data. The original source with comments for this was
FXCodeBase.COM: Forex Chart Indicators and Development &bull; View topic - Time Segmented Volume
and the lua code as follows (it uses candles instead of linear output):

 
Code
-- Indicator profile initialization routine
-- Defines indicator profile properties and indicator parameters
-- TODO: Add minimal and maximal value of numeric parameters and default color of the streams
function Init()
    indicator:name("Time Segmented Volume");
    indicator:description("Time Segmented Volume");
    indicator:requiredSource(core.Bar);
    indicator:type(core.Oscillator);
    indicator.parameters:addGroup("Calculation");	
    indicator.parameters:addInteger("Period", "Period", "Period", 14);
	
	indicator.parameters:addGroup("Style");	
    indicator.parameters:addColor("Up_color", "Positive TSV Color", "Color of TSV", core.rgb(0, 255, 0));
	indicator.parameters:addColor("Dn_color", "Negativ TSV Color", "Color of TSV", core.rgb( 255,0 , 0));
end

-- Indicator instance initialization routine
-- Processes indicator parameters and creates output streams
-- TODO: Refine the first period calculation for each of the output streams.
-- TODO: Calculate all constants, create instances all subsequent indicators and load all required libraries
-- Parameters block
local Period;

local first;
local source = nil;
local temp;
-- Streams block
local TSV = nil;

-- Routine
function Prepare(nameOnly)
    Period = instance.parameters.Period;
    source = instance.source;	
	
	 assert(source:supportsVolume(), "The source must have volume");	 
	 
    first = source:first()+Period;

    local name = profile:id() .. "(" .. source:name() .. ", " .. tostring(Period) .. ")";
    instance:name(name);
	
	temp = instance:addInternalStream(0, 0);

    if (not (nameOnly)) then
        TSV = instance:addStream("TSV", core.Bar, name, "TSV", instance.parameters.Up_color, first);		
    end
end

-- Indicator calculation routine
-- TODO: Add your code for calculation output values
function Update(period)
  
	
	if source.close[period]> source.close[period-1] then
	temp[period]=  source.volume[period] * (source.close[period]- source.close[period-1]);
	elseif source.close[period]< source.close[period-1] then
	temp[period]=   (-1) * source.volume[period] * (source.close[period-1]-source.close[period]  );
	else
    temp[period]=0;
	end

	if period <  first then
	return;
	end
	
    TSV[period] = mathex.sum(temp, period-Period+1, period);
	
	if TSV[period] > TSV[period-1] then
	TSV:setColor(period, instance.parameters.Up_color);
	else
	TSV:setColor(period, instance.parameters.Dn_color);
    end	
    
end
thanks again
D.

Reply With Quote
 
  #5 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary

try this

Attached Thumbnails
Time Segmented Volume from Worden Telecharts-es-06-13-5-min-4_11_2013.jpg  
Attached Files
Register to download File Type: zip TSV_NT.zip (3.7 KB, 86 views)
Reply With Quote
The following 2 users say Thank You to cory for this post:
 
  #6 (permalink)
Elite Member
Australia
 
Futures Experience: Advanced
Platform: NinjaTrader, MotiveWave
Favorite Futures: forex, oil, gold, silver
 
Posts: 4 since Nov 2010
Thanks: 4 given, 0 received

thanks v much Cory, I give it a rip, and get back.

Reply With Quote
 
  #7 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary

now with down color zone

Attached Thumbnails
Time Segmented Volume from Worden Telecharts-cz.png  
Attached Files
Register to download File Type: cs TSV_NT.cs (7.7 KB, 62 views)
Reply With Quote
The following 2 users say Thank You to cory for this post:
 
  #8 (permalink)
Elite Member
Albuquerque New Mexico United States
 
Futures Experience: Intermediate
Platform: NT
Favorite Futures: ES
 
Posts: 1 since Mar 2013
Thanks: 3 given, 1 received

TSV Approximation

This is a TSV approximation I've used for some time in my signal generation code with Telechart. I find that it is very true to Worden's TSV line form.

The Telechart PCF is TSV = V*(C-C1)/((H-L+ABS(H-C1)+ABS(C1-L)+0.0000001)/2).


The NT indicator for this is attached.

Attached Files
Register to download File Type: zip TSV.zip (3.5 KB, 102 views)
Reply With Quote
The following 4 users say Thank You to bartlb for this post:

Reply



futures io > > > > Time Segmented Volume from Worden Telecharts

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indicator plotting time in the volume based charts or volume delta charts. Czechmade Traders Hideout 5 November 8th, 2012 11:53 PM
Time per volume bar patbateman NinjaTrader 1 June 24th, 2012 05:31 PM
Volume Profile By Specified time hunt4alpha Platforms and Indicators 11 June 13th, 2012 04:39 AM
Time and Sales into volume bars optionzen NinjaTrader Programming 2 September 29th, 2011 10:32 PM
Time Segmented Volume from Worden Telecharts nemo77 ThinkOrSwim Programming 9 June 13th, 2011 09:55 AM


All times are GMT -4. The time now is 12:08 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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
Page generated 2017-12-17 in 0.10 seconds with 20 queries on phoenix via your IP 54.90.92.204