Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

summation of market indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
hodaddey05
Posted : Sunday, July 31, 2011 11:49:44 AM
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
Bruce_L
Posted : Monday, August 1, 2011 10:31:39 AM


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
hodaddey05
Posted : Monday, August 1, 2011 1:52:55 PM
Registered User
Joined: 9/13/2005
Posts: 18
thanks Bruce, it worked great!
Bruce_L
Posted : Monday, August 1, 2011 1:57:58 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.