How to Access Higher Timeframe Data - Traders Laboratory

Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008, 12:07 AM
thewoj has no status.

 
Join Date: Feb 2008
Posts: 2
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?

Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 11:58 PM
thrunner has no status.

 
Join Date: Feb 2007
Posts: 179
Thanks: 60
Thanked 47 Times in 25 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.
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 ) ;

Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:04 PM
thewoj has no status.

 
Join Date: Feb 2008
Posts: 2
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?

Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 12:36 AM
thrunner has no status.

 
Join Date: Feb 2007
Posts: 179
Thanks: 60
Thanked 47 Times in 25 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.

Reply With Quote
Reply

Tags
average, higher, timeframe, volume


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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 Word on the Street 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 06:44 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70