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 |

Real Code Indicator Help -- Market Thermometer Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Edge888
Posted : Sunday, April 5, 2009 8:00:58 PM
Platinum Customer Platinum Customer

Joined: 5/20/2007
Posts: 25
Dr. Elder has a market termometer indicator that read like this:

Temperature =
the greater of either

                    (Today’s High – Yesterday’s High) OR
                    (Yesterday’s Low – Today’s Low)

It is always a positive number, reflecting the aboslute value of either the upward or the downward extension of yesterday's range, whichever is greater.  Plot temperature as a histogram above zero.

My attempt of a custom indicator in PCF looks like this:


((ABS(H-H1) >= ABS(L1-L))*-1)*(ABS(H-H1)) + ((ABS(L1-L) > ABS(H-H1))*-1)*(ABS(L1-L))


Does this look like a correct interpretation?

Also, can you help create a custom indicator in Real Code that I can call when needed?  Thank you for your help!/Will

 

Bruce_L
Posted : Monday, April 6, 2009 9:25:47 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Your Personal Criteria Fromula appears to be correct. One way to write this as a RealCode Indicator would be:

Plot = System.Math.Max( _
    System.Math.Abs(Price.High - Price.High(1)), _
    System.Math.Abs(Price.Low - Price.Low(1)))

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Edge888
Posted : Tuesday, April 7, 2009 2:43:47 AM
Platinum Customer Platinum Customer

Joined: 5/20/2007
Posts: 25
Thank you...Will
Bruce_L
Posted : Tuesday, April 7, 2009 8:05:32 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.