Craig and others, I want to use an analogy to explain what I'm trying to program in MSWin now. Let's say one is climbing a mountain, in a series of mountains. If one stops climbing for a second, turns around and looks back, one sees the other mountains across the way. If one climbs higher, and then looks back, there will come a point where one now sees over those other mountains, and sees the horizon, for the first time since climbing the current mountain.
I'm trying to find that point in MSWin. Price rises out of a shallow valley, and begins an ascent up the mountain. There comes a point where price just surpasses any of the previous mountains, say over the past three months.
This is how I think you would program it:
{Rise above previous peak} close >= hhv(close,90) and ref(close,-1) < hhv(close,90)
It seems to look okay on several charts so far. It would be used in combination with other indicators, such as MACD and Stochastics.
Is there anything I'm overlooking here, or some better way of going about it? Does this approach seem to make sense?
Thanks for you input.
Nicholas |