Registered User Joined: 1/20/2016 Posts: 47
|
What is the indicator formula that plots whichever is the maximum of a 10 Day Exponential Moving Average (10 EMA) vs a 10 Day Simple Moving (10 SMA) of the Close. For example, if the 10 EMA yesterday was higher than the 10 SMA yesterday then yesterday's value will have the value of the 10 EMA plotted for it. If the 10 SMA today is higher than the 10 EMA today then today's value will have the value of the 10 SMA plotted for it....and so forth for all of the data a chart.
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
IIF(AVGC10>XAVGC10,AVGC10,XAVGC10)
http://help.tc2000.com/m/69445/l/755637-inline-if-and-converting-conditions-to-indicators
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Another way to write this would be the following.
GREATEST(AVGC10, XAVGC10)
Mathematical Operators and Functions Table
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 1/20/2016 Posts: 47
|
Excellent !! Thank you.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|