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 |

new index plot Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
tmcd
Posted : Wednesday, May 12, 2010 6:46:56 PM
Registered User
Joined: 10/7/2004
Posts: 1
I would like to plot the number of stocks (or percent of stocks ) in an index such as russel 3000 that made a new 6mo high ten days ago and closed  today higher than 10 days ago. I need help writing the Real Code
Bruce_L
Posted : Thursday, May 13, 2010 9:43:57 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Add the following RealCode Rule (or Condition in SF5):

If Price.Last(10) > Price.MaxHigh(125,11) AndAlso Price.Last > Price.Last(10) Then Pass

Then right-click on the Rule and select Create Custom Index (it's called a Market Indicator in SF5). You will be able to choose the desired WatchList and if you want Count Passing or Percent Passing when creating the Custom Index.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Frankp999
Posted : Thursday, May 13, 2010 10:39:50 AM
Registered User
Joined: 7/24/2005
Posts: 48
This realcode indicator does not work for me in SF5. I right-clicked on the screen then selected add new indicator and entered the line of code. The errors are
1. Overload resolution failed because  no accessible "Last" accepts this number of arguments
2. Name Pass is not declared

Bruce_L
Posted : Thursday, May 13, 2010 10:42:25 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
My apologies. You need to create a RealCode Rule (or Condition in SF5), not a RealCode Indicator. Please try it again.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Frankp999
Posted : Thursday, May 13, 2010 10:48:13 AM
Registered User
Joined: 7/24/2005
Posts: 48
Thanks. I assume you mean a RealCode CONDITION in SF5?
Bruce_L
Posted : Thursday, May 13, 2010 10:53:18 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Yes.

-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.