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 formula for price gap both above and below the 50 day ma as described in the moving avera Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
texastyphoon
Posted : Tuesday, March 2, 2010 8:25:26 PM
Gold Customer Gold Customer

Joined: 3/23/2005
Posts: 10
real code formula for price gap both above and  below the 50 day ma as described in the MA cross over discussed in webinar on 1/19 as discussed by Michael Thompson.
Bruce_L
Posted : Wednesday, March 3, 2010 9:26:01 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
If you Drag and Drop the Moving Average into the Code tab of the RealCode Editor, it should create something similar to the first line of the following RealCode Rule for a Gap Up through the Moving Average:

'# MA = indicator.MovingAverage
If Price.High(1) < MA.Value AndAlso Price.Low > MA.Value Then Pass

If you Drag and Drop the Moving Average into the Code tab of the RealCode Editor, it should create something similar to the first line of the following RealCode Rule for a Gap Down through the Moving Average:

'# MA = indicator.MovingAverage
If Price.Low(1) > MA.Value AndAlso Price.High < MA.Value Then Pass

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