Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/1/2004 Posts: 6
|
I NEED HELP IN WRITING A REAL CODE TO SCAN FOR THE FOLLOWING CONDITION C1 CROSS 20DMA AND MINLOW>20DMA THANKS
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Is the Moving Average Simple or Exponential?
What is the Period of the Minimimum Low?
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/1/2004 Posts: 6
|
HI BRUCE
WHAT I AM LOOKING IS PRICE CROSSING UP TRUE THE 20 DMA SIMPLE YESTERDAY AND TODAY THE LOW IS > THE 20 DMA SIMPLE.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
- Create the Moving Average on the Chart.
- Select Add Rule | Create in RealCode.
- Select Indicators/Rules | your MA | OK.
- This should create something like the first line of the following RealCode Indicator.
'# MA = indicator.MovingAverage
If Price.Low > MA.Value AndAlso _
Price.Last(1) > MA.Value(1) AndAlso _
Price.Last(2) <= MA.Value(2) Then Pass
- Paste the rest of the RealCode into the RealCode Editor and select Apply | OK.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |