Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Real Code for Market Breadth Oscillator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Azam
Posted : Tuesday, October 5, 2010 3:04:32 AM
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
Bruce_L
Posted : Tuesday, October 5, 2010 8:04:40 AM


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
Azam
Posted : Wednesday, October 6, 2010 1:38:48 AM
Registered User
Joined: 9/20/2010
Posts: 13
Thanks Bruce.
Bruce_L
Posted : Wednesday, October 6, 2010 8:21:24 AM


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.