Gold Customer
Joined: 12/24/2004 Posts: 33
|
How would I set up an indicator to show me when the closing price is within, say 10 cents (or a certain %) of the last low for a stock?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
How do you want define the "last low" for a stock?
If you define the low as being over a certain period of time, you could do something like the following for a net difference (I'm using a 252 bar low in this case).
C <= MINL252 + .1
Or something like the following for a percent difference. I'm going to use 30 bars and 1% in this example.
C <= 1.01 * MINL30
If you have some sort of requirement for what constitutes a low other than just being the lowest value over a fixed number of bars, then things will get more complicated. You would need to design a condition formula to identify the requirements and then use the techniques explored in the Days Since Last Peak (or other day-counting needs) topic in order to determine the value of the low the most recent time those requirements were met within the span of time covered by the lookback of the formula.
Formulas of this type can be quite long and can quickly get too long and slow to be practical or post in the forums if the requirements for identifying the "last low" are complicated or the lookback period is long.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Gold Customer
Joined: 12/24/2004 Posts: 33
|
I like the % idea, wll work on that approach. Thank you for your time and response!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|