Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Platinum Customer
Joined: 2/14/2005 Posts: 169
|
Hi,
SF5 includes a Data page. Price volatilty values are provided in that page. I want to write some blocks to provide Price volatility. I will be trying to make an indicator using blocks and also using RealCode.
Please provide an example of a blocks code and also a Realcode which does the sole job of providing Price volatility.
Steve
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The Price Volatility indicator is one of StockFinder's built in indicators. So you should just be able to add it to the chart and edit it to view its Block Diagram.
The following would be an approximation of Price Volatility created as a daily RealCode Indicator.
'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Price Volatility Approximation
'|******************************************************************
Dim PVA As Single = 0
For i As Integer = 0 To 60 Step 5
PVA += Math.Abs(Price.PercentChange(5, i))
Next
Plot = Math.Round(10 * PVA / 13, 0)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Platinum Customer
Joined: 2/14/2005 Posts: 169
|
Hi,
Regarding the built in indicator available from the drop down list of the add indicators, I tried it and it left me with an empty graph.
I looked at its block diagram and there are no other blocks or calculations in the diagram other than TimeFrame bar builder.
Please take a look at what you get on your computer and let me know if this is working block.
Thx,
Steve
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It is definitely working for me. You may want to contact technical support.
Attachments: PriceVolatility.gif - 40 KB, downloaded 759 time(s).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Platinum Customer
Joined: 2/14/2005 Posts: 169
|
Hi,
Looked OK on your computer, so, yes, I'll ask Tech Suppport how to fix what's on my computer.
Thanks for checking on this --
Steve
|
|
Platinum Customer
Joined: 2/14/2005 Posts: 169
|
Hi,
One other question. Where does the "10" come from in the statement
Plot = Math.Round(10 * PVA / 13, 0) ?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The 10 is just an arbitrary factor applied to the calcualtions. I do not know why it was chosen.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |