Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 02-26-2008, 12:07 AM   #1

Join Date: Feb 2008
Location: pontiac
Posts: 2
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

How to Access Higher Timeframe Data

I have a radarscreen with various symbols, all with a 5 minute interval.
i want to add an indicator to display the Average Daily Volume for the last 20 days.
how can i access historical daily volume in easylanguage?
thewoj is offline  
Reply With Quote
Old 02-27-2008, 11:58 PM   #2

Join Date: Feb 2007
Location: US
Posts: 314
Ignore this user

Thanks: 86
Thanked 206 Times in 89 Posts

Re: How to Access Higher Timeframe Data

Try this Volume Avg indicator modified for RS. Adjust the input for AvgLength to longer periods e.g. 20 days x 390min /5 on 5 min charts; 390min is 6.5 hrs Reg Trade Hrs.
Code:
inputs:  
	AvgLength( 30 ),  
	AlertPct( 50 ),  
	UpColor( Green ),  
	DownColor( Red ) ; 
 
variables:  
	VVol( 0 ), 
	AvgVVol( 0 ), 
	TVol( 0 ), 
	AvgTVol( 0 ), 
	AlertFactor( 1 + AlertPct * .01 ),  
	AlertStr( NumToStr( AlertPct, 2 ) ) ; 
 
if BarType >= 2 then { ie, not tick/minute data } 
	begin 
	VVol = Volume ; 
	AvgVVol = AverageFC( Volume, AvgLength ) ;  
	Plot1( VVol, "Vol" ) ; 
	Plot2( AvgVVol, "VolAvg" ) ; 
	{ Alert criteria } 
	if VVol crosses over AvgVVol * AlertFactor then 
		Alert( "Volume breaking through " + AlertStr + "% above its avg" ) ; 
	end 
else { if tick/minute data; in the case of minute data, also set the "For volume,  
 use:" field in the Format Symbol dialog to Trade Vol or Tick Count, as desired } 
	begin 
	TVol = Ticks ; 
	AvgTVol = AverageFC( Ticks, AvgLength ) ; 
	Plot1( TVol, "Vol" ) ; 
	Plot2( AvgTVol, "VolAvg" ) ; 
	{ Alert criteria } 
	if TVol crosses over AvgTVol * AlertFactor then 
		Alert( "Volume breaking through " + AlertStr + "% above its avg" ) ; 
	end ; 
 
{ Color criteria } 
if UpTicks > DownTicks then  
	SetPlotColor( 1, UpColor )  
else if UpTicks < DownTicks then 
	SetPlotColor( 1, DownColor ) ;
thrunner is offline  
Reply With Quote
Old 02-28-2008, 11:04 PM   #3

Join Date: Feb 2008
Location: pontiac
Posts: 2
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: How to Access Higher Timeframe Data

thanks for the response.

so on a minute chart i would use 7800 as the AvgLength to get the 20 day average daily volume. i would also need to set "bars back" to 7800.
will this effect performance significantly?
thewoj is offline  
Reply With Quote
Old 02-29-2008, 12:36 AM   #4

Join Date: Feb 2007
Location: US
Posts: 314
Ignore this user

Thanks: 86
Thanked 206 Times in 89 Posts

Re: How to Access Higher Timeframe Data

I doubt it will affect performance. You will find that a 20 day moving average of volume is a pretty much a flat line (look at it on a chart) on a minute chart.
thrunner is offline  
Reply With Quote

Reply

Tags
average, higher, timeframe, volume

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
21/12/07 no chat room access walterw Support Center 8 12-21-2007 12:06 PM
How vital is the timeframe that you pick for your charts? brownsfan019 Technical Analysis 29 11-22-2007 06:49 PM
Barclay gives free access to database of 6,300+ Hedge Funds & CTA's brownsfan019 Wall Street News 0 08-14-2007 10:21 AM
Dow Futures, likely to lift higher? Or not? Bull run Market Analysis 1 08-29-2006 08:39 AM
Market decline but higher value Soultrader Market Profile 1 08-16-2006 08:20 AM

All times are GMT -4. The time now is 09:27 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.