Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 1/15/2005 Posts: 17
|
Hello, I am trying to program an indicator and I would need your help. For your information, the indicator (TTF for Trend Trigger Factor) is described in the December 2004 issue of Stocks and Commodity.
The TTF is defined from two factors: buy power and sell power. If you were to label today as day 0, yesterday as day 2, the day before as day 3, and so on, then the buy power and sell power are as follows: 15-day buy power= Highest high of (day 0 to day 14 inclusive) – Lowest low of (day 14 to 29 inclusive) 15-day sell power= Highest high of (day 14 to day 29 inclusive) – Lowest low of (day 0 to 14 inclusive)
I use MAXh14 and MINl14 for the Highest high of (day 0 to day 14 inclusive) and Lowest low of (day 0 to 14 inclusive), respectively. However, I haven’t found out how to program the Lowest low of (day 14 to 29 inclusive) and Highest high of (day 14 to day 29 inclusive). Then the TFF is easy to calculate: 15-day TFF = ((Buy power – sell power) / (0.5*(Buy power + sell power)))*100.
Thank you
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
QUOTEHowever, I haven’t found out how to program the Lowest low of (day 14 to 29 inclusive) and Highest high of (day 14 to day 29 inclusive).
Try this:
MAXH16.13 MINL16.13
Looks at a 16 day period starting back from 13 days ago....
- Craig Here to Help!
|
|
Registered User Joined: 1/15/2005 Posts: 17
|
It works fine! Thank you
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Excellent!
- Craig Here to Help!
|
|
Registered User Joined: 12/31/2004 Posts: 3
|
I am really impressed by the Trend Trigger Factor. I just finished inserting it TTF15 (MAXH14 - MINL15.15 - (MAXH15.15 - MINL14)) / (.5*(MAXH14 - MINL15.15 + (MAXH15.15 - MINL14))))*100 Thanks so much for making it available Larry Allred
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 4,308
|
Glad it's working for you!
- Doug Teaching Online!
|
|
Guest-1 |