Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Maximum Functions Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
rcbenjamin1220
Posted : Wednesday, October 18, 2017 5:07:22 AM
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. 

StockGuy
Posted : Wednesday, October 18, 2017 7:17:48 AM

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

 

Bruce_L
Posted : Wednesday, October 18, 2017 8:51:21 AM


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
rcbenjamin1220
Posted : Wednesday, October 18, 2017 10:49:13 AM
Registered User
Joined: 1/20/2016
Posts: 47

Excellent !! Thank you.

Bruce_L
Posted : Wednesday, October 18, 2017 10:50:27 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.