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
|
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
|
Platinum Customer
Joined: 5/20/2007 Posts: 25
|
Thank you...Will
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|