Registered User Joined: 2/18/2008 Posts: 20
|
Can you give me the real code to create an indicator for the slope of an EMA? What I'd like is an indicator that sits below the price chart and plots the values on a line graph. The formula would be (current EMA - previous bar's EMA)/ current bar's EMA *1000. I'd like to get the slope of a 13 bar EMA or ideally the slope of any EMA I plot over the price graph. Thanks!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you Drag and Drop the Moving Average from the Chart into the Code tab of the RealCode Editor, it should create something similar to the first line of the RealCode Indicator:
RealCode for Real People: Indicators
'# MA = chart.MovingAverage
Plot = (MA.Value - MA.Value(1)) / MA.Value * 1000
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 2/18/2008 Posts: 20
|
Great! Thank you.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|