Hmm, I'm not sure that I understand your problem. Bars are time periods and have no "range" for the close price of your trade. Trades are normally closed at the current best bid or offer.

If something is unclear with close prices, look up "Fill", "Slippage", and "exitTrade" in the manual.