Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Like Tree4Likes

Reply
PRV -- Pro Rated Volume Details »»
PRV -- Pro Rated Volume
Platform: EasyLanguage, by Tams Tams is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: MultiCharts Rating: (2 votes - 5.00 average)
Released: 04-22-2009 Last Update: Never Installs: 12
 
No support by the author.

PRV -- Pro Rated Volume

For the volume hawks!

This indicator projects the volume at the end of the bar.
It calculates the PRV based on the current trade pace,
and the time remaining in the bar.

This information is useful to spot turning points
ie. whether the money is drying up... or flooding in.

This indicator is usable on minute charts only.

Instructions:
Set the volume to display as a thick histogram
and the PRV to display either as a thin histogram, or as a thick point.


Download Now

File Type: txt PRV_ProRatedVolume.txt (1.7 KB, 241 views)

Screenshots

PRV -- Pro Rated Volume-prv_pro_rated_volume.jpg  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Similar Indicator
Mod Developer Type Replies Last Post
Up/Down Volume Indicator Blu-Ray Trading Indicators 6 05:10 PM 12-12-2010
Volume Delta Indicator Soultrader Trading Indicators 29 01:08 AM 05-22-2009
Volume Weighed Color Bars Tams Trading Indicators 14 09:35 AM 07-03-2009
Shifted Tams Trading Indicators 10 07:20 AM 06-20-2009
Price Action Trainer Tams Trading Indicators 21 10:33 AM 01-26-2012
The Following 6 Users Say Thank You to Tams For This Useful Post:
aaa (04-25-2009), devtrend (12-28-2009), eford1 (08-18-2010), moneymarkets (04-22-2009), TIKITRADER (12-14-2009), vienna (02-14-2011)

Comments
Old 04-23-2009, 11:09 AM   #2

Trader333's Avatar

Join Date: May 2008
Location: UK
Posts: 153
Ignore this user

Thanks: 79
Thanked 24 Times in 20 Posts

Re: PRV -- Pro Rated Volume

Does anyone know how I can code Easylanguage for TS2000i to take the word "ComputerDateTime" from the code below with an alternative ? I have tried the word "CurrentTime" but it is not working quite the way it should do. The rest works fine and it is only this that is an issue.


Paul

Quote:
if date = date[1] then
begin
CurrentTimeInSecs = ( ComputerDateTime - DateToJulian( Date ) ) * 86400 ;
TotSecondsDiff = CurrentTimeInSecs - CurrentTimeInSecs[1] ;
end;
Trader333 is offline  
Reply With Quote
Old 04-23-2009, 11:40 AM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,774
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: PRV -- Pro Rated Volume

here's the difference between the two keywords


The indicator needs to find out the Current Time In Seconds, the currenttime keyword can only supply the time in minutes.




Quote:
ComputerDateTime

Returns a double-precision decimal DateTime value indicating the computer's current date and time.

The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900,
and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight.

Usage

ComputerDateTime

Example

ComputerDateTime will return a value of 39448.25000000 for 6:00 AM on January 1st, 2008
Quote:
CurrentTime

Returns a numerical value, indicating the computer's current time.
The time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM.

Usage

CurrentTime

Examples

CurrentTime will return a value of 1015 for 10:15 AM

CurrentTime will return a value of 1545 for 3:45 PM

Last edited by Tams; 04-23-2009 at 11:54 AM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
Trader333 (04-23-2009)
Old 08-07-2011, 10:09 PM   #4

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,774
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: PRV -- Pro Rated Volume

in the spirit of sharing,
I encourage you to post your enhanced code.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 02-04-2012, 01:39 AM   #5

Join Date: Jan 2012
Posts: 29
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: PRV -- Pro Rated Volume

hey Tams, I am not sure what I have to change here to make it work in tradestation, can you give me another hint.

// PRV Pro Rated Volume
// author: unknown (previousely posted by TXUK)
// enhancements by TAMS
//
// This indicator projects the volume at the end of the bar.
// It calculates the PRV based on the current trade pace,
// and the time remaining in the bar.
//
// This information is useful to spot turning points
// ie. whether the money is drying up... or flooding in.
//
// This indicator is usable on minute charts only.
//
// Instructions:
// Set the volume to display as a thick histogram
// and the PRV to display either as a thin histogram, or as a thick point.//
//
// enhancemnts by TAMS:
// 20070102
// added user configurable colors
// auto detect chart resolution (original version can only be used on 5min chart)
// added delay, so that the PRV does not get overwhelmed at the beginning of the bar
// added the zero line, so that autoscale starts at zero instead of the lowest volume
//


inputs:
UpCol( black ),
DnCol( Red ),
UpPRV(green),
DnPRV(Darkcyan),
delay(10);

variables:
offset(0),
color(0);

vars:
CurrentTimeInSecs ( 0 ),
TotSecondsDiff( 0 ) ,
SecondsDiff( 0 ) ,
MinutesDiff( 0 ),
prv(0);

plot1(0, "Zero");

if date = date[1] then
begin
CurrentTimeInSecs = ( Currenttime - DateToJulian( Date ) ) * 86400 ;
TotSecondsDiff = CurrentTimeInSecs - CurrentTimeInSecs[1] ;
end;

If TotSecondsDiff > delay then
begin
prv = (ticks/TotSecondsDiff) * 60 * barinterval ;
IF prv > ticks[1] THEN
setPlotColor( 2, UpPRV)
else
SetPlotColor(2, dnPRV);
Plot2 (prv, "PRV");
end;

if c > c[1] then
color = upcol
else
if c < c[1] then
color = dncol
else
color = color[1];

Plot2[1] (ticks[1], "PRV");
plot3(ticks, "Volume", color);
danhoyda is offline  
Reply With Quote
Old 02-04-2012, 01:56 AM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,774
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: PRV -- Pro Rated Volume

when posting codes, please use the code tag.

code tag is the at the top of the reply message window frame.

Code:
tagged code looks like this

code
code
code
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 02-04-2012, 01:58 AM   #7

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,774
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: PRV -- Pro Rated Volume

Quote:
Originally Posted by danhoyda »
hey Tams, I am not sure what I have to change here to make it work in tradestation, can you give me another hint.
...;
this indicator was written on tradestation.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 02-04-2012, 10:46 AM   #8

Join Date: Jan 2012
Posts: 29
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: PRV -- Pro Rated Volume <>

when i try to apply it to a chart it says floating point invalid calculation.
danhoyda is offline  
Reply With Quote

Reply

Tags
price volume relationship, prv, time, volume

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retest on Lower Volume with Volume Gradient walterw Technical Analysis 3 04-16-2009 12:10 AM
NYSE Up Volume($UVOL)/Down Volume ($DVOL) Comparison MC Market Internals 23 02-09-2009 09:18 AM

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