[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

outside/inside



PureBytes Links

Trading Reference Links

Drat, ever since Yahoo started sticking in an advert after I post I 
keep messing it up and end up double posting..have to see if I can 
get this right....

Anyway... I need a bit of code to test for the following:

working with bands...somewhat like Bollinger Bands

look for the high or low to be outside the upper or lower band 
respectively followed by a close inside the band

there may be multiple Highs or Lows outside the band before the 
inside close

the current bar may have a H or L outside the band with its close 
inside...I want the next inside close

I have seen tests for multiple bars back ie. ref(L,-1) or ref(L,-2) 
etc.

I have seen ma(Low,2 or 3) < lower band and then the inside close etc

Neither one of those seem to do the job. This ought to be simple, 
but I seem to be having trouble coming up with a good technique.

TIA
Trader