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