Registered User Joined: 2/15/2007 Posts: 22
|
I am trying to use real code to create an entry when the close is greater than the prior close + 1.2 times the 10 day atr. Neither one of these works. Can you correct my work?
# ATR = indicator.Average True Range
If Price.Close > (Price.Close(1) + (1.2 * ATR.value)) Then Pass
# ATR = indicator.Average True Range
If Price.Close > (Price.Close(1) + (1.2 * ATR.10)) Then Pass
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following instead:
'# ATR = indicator.Library.Average True Range
If Price.Close > (Price.Close(1) + (1.2 * ATR.value)) Then Pass
If it doesn't seem to work, try Dragging and Dropping an ATR into the RealCode Editor or selecting Import Indicator from within the RealCode Editor to create the first line.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
You need to add ATR to the code using the Import Indicator button or by dragging an ATR plot into the RealCode condition editor.
|