Registered User Joined: 10/7/2004 Posts: 12
|
On either TC2000 or FreeStockCharts, I'd appreciate a formula that would give me a seasonal chart. What I mean by this is a chart of any particular stock, over laid throughout the year over it's previous year...several years composite then averaged to make one seasonal chart.This could save me a lot of money and secure my membership with TC2000.Thanks!Pete
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I cannot think of a practical automated method of creating seasonality charts for TeleChart.
There is at least one seasonality chart available for StockFinder called Cycler. If you want to take a look:
Select Share | Charts.
Type Cycler in the Search line and select Search.
Select the Cycler Chart.
Select Open.
Some notes:
- This is only very loosely based on Craig's original Cycler Tool.
- The default amount of data used is 20 years. This is because it is the maximum data available in Daily.
- The Average is plotted in the same Pane as the yearly Plots instead of its own Frame.
- The Average and yearly Plots are all plotted on the same scale instead of their own individual scales.
- As noted, the Time Frame is not adjustable. The Chart is Daily only.
- This should always plot a 366 day year. This will be true even if there is no February 29th data available.
- Monthly and Weekly cycles are represented using 31 and 7 Period Rate of Change Indicators.
- The Rates of Change are in Calendar Days, but all years are treated as if February 29th exists.
- I have not implemented the Count of Up Months Plot.
We do not have forums for FreeStockCharts.com. All questions, comments and suggestions related to FreeStockCharts.com should be addressed to:
feedback@freestockcharts.com
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
Average monthly percent change might be useful as well. This is code from the StockFinder RealCode Reference. This plots the average monthly percent change for the active symbol.
'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 4.9 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Average Monthly Percent Change
'|******************************************************************
Static monthChanges(11) As System.Collections.generic.list(Of Single)
Static PrevMonth As Integer
Static FirstClose As Single
plot = Single.nan
If isFirstBar Then
prevMonth = CurrentDate.month
FirstClose = Price.Close
For i As Integer = 0 To 11
monthChanges(i) = New System.Collections.generic.List(Of Single)
Next i
ElseIf Not Me.isLastBar Then
' not the first or last bar. record the change from the monthly open
If CurrentDate.Month <> PrevMonth Then
Dim monthPercentChange As Single = ((price.close(1) - FirstClose) / FirstClose) * 100
monthChanges(prevMonth - 1).add(MonthPercentChange)
prevMonth = currentdate.month
firstclose = price.Close
End If
Else
' Last bar of the calculation. Average each month.
For i As Integer = 0 To 11
Dim avg As Single = 0
Dim outDate As Date = New Date(Date.Now.year - 1, i + 1, 1)
' set it to the first day of the month for this year
For j As Integer = 0 To monthChanges(i).count - 1
avg += monthChanges(i).item(j)
Next
avg /= monthChanges(i).count
Me.addtooutput(outdate, avg)
Next
End If
|