Registered User Joined: 1/27/2005 Posts: 10
|
Just met Chris in Chicago yesterday. He suggested to write. I am trying to write a block program that will allow me to take advantage of market and stock seasonality. For example, the market is the strongest the last 2 trading days of the month and the first 3. It is second strongest on trading day the 8, 9 and 10. Or perhaps Microsoft is stronger on certain days or the Oil industry in certain months.
Per Chris you could help me by writing a block that allows me to select trading days of the month. As you are aware some months have 19 days, some 20 some 21. Can you help?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please save the attached .bTool file to the following folder:
\My Documents\Blocks Files\Workspaces\Tools
You can then open the Tool Window by selecting Start | My Computer from within Blocks Player.
As configured, it Plots the Average Percent Change for a 1 Day Time Frame plotted for each Day of Option Month for the entire history of the symbol. There are twenty-five Bars on the Plot starting at the left edge and ending at the right edge. Each Bar corresponds to a Day of Option Month. It also plots the Minimum and Maximum Percent Change in addition to the Average. Moving the Date Pointer will display these values for the selected Bar.
The Time Frame can be adjusted. For example, if you were to change it to Daily, it would calculate the Average Price Percent Change for each day within these months for the entire history of the symbol.
You may also choose Month of Year (12 Bars in Plot), Day of Week (5 Bars in Plot) or Quarter of Year (4 Bars in Plot).
Feel free to experiment with these settings, but be warned that many combinations will produce unexpected results as it is based on Time Frames that end within the Period specified during the Bar Dates specified (Day of Week, Month of Year, etc.).
You may wish to review the following:
Moving and Tabbing Snap-In Tools Floating, Maximizing, Hiding, Deleting Snap-In Tools Customizing with Properties Your First 3 Block DiagramsAttachments: Average Percent Change.bTool - 18 KB, downloaded 690 time(s).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|