take the last 20 bars ranges and do a summation of the ranges, divide that by the number of bars to come up with the average bar range. now take that range and add 35% and subtract 35% from it to make a buy / sell entry point.
ask questions if you want more info otherwise i will intrude no more.