Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 9/13/2005 Posts: 18
|
I have created a market indicator which counts the number of stocks on a watchlist (all US common stocks for example) which pass a condition on a daily basis (like up more than X% on a given day). I would not like to sum the daily counts over the previous 10 days and plot this as a new or child indicator. I can easily plot a 10 day moving average but do not want the average in this case, I only want the total number of sume on a 10 day trailing basis. How can this be done using either the available predefined indicators or the real code for a new one. Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
- Add a Moving Average to the Market Indicator.
- Right-click on the Moving Average and select Edit.
- Select Block Diagram (in the lower left corner).
- Double left-click on the Moving Average Block in the Block Diagram.
- Select Add | Sum for Period | OK.
- Close the Block Diagram.
- Right-click on the Moving Average and select Edit.
- Change the Average Type to Sum for Period.
- Change the MovAvg Period to 10.
- Select OK.
Block Diagrams have been de-emphasized in StockFinder but the Your First 3 Block Diagrams video covers creating Block Diagrams. Most people don't do much with Block Diagrams and use Drag and Drop or RealCode exclusively.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 9/13/2005 Posts: 18
|
thanks Bruce, it worked great!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |