Registered User Joined: 9/20/2010 Posts: 13
|
Dear Stockfinder,I posted a copy of this accidently in the real code section.I am trying to write code for a market breadth oscillator (similar to McCellan Oscillator) with no success. * I would like to choose a group (whether S&P components or MorningStar Industry Groups) as my data.* One by one, for each component, and for each bar, I would like to find if a condition Passes or not (eg moving average crossover over Williams Accumulation/Distribution). * A counter for the number of passes in that group is divided by the number of components of that group to get a Pass percentage for that Bar.* The answer is plotted. Then we go to the next bar.Thank you for your assistance.Regards,Azam
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You would just create a Condition for whatever you are attempting to count.
Creating Conditions
Writing Conditions in RealCode
And then right-click on the Condition and select Create Market Indicator | Percent Passing.
Market Indicators from Conditions
Custom Market Indicators
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 9/20/2010 Posts: 13
|
Thanks Bruce.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|