Registered User Joined: 10/6/2014 Posts: 34
|
Hi,
Is there an indicator for the dollar amount traded for a stock on that day.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You can do a simple approximation in a daily time frame by multiplying the price times the volume.
Plot = Price.Close * Volume.Value
A slightly more sophisticated measure might involve using all of the price components, but there is no way to know if it is a closer approximation or not.
Plot = (Price.Open + Price.High + Price.Low + Price.Close) * Volume.Value / 4
You could get something which might be closer in an intraday time frame (but no guarantees) and possibly even come up with an exact number using a tick time frame (assuming there enough bars available).
'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Dollar Volume
'|******************************************************************
Static DollarVolume As Double
If isFirstBar Then
DollarVolume = Single.NaN
Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
DollarVolume = 0
End If
DollarVolume += Price.Last * Volume.Value
Plot = DollarVolume
-Bruce Personal Criteria Formulas TC2000 Support Articles
|