Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Range bars by definition end when the price leaves the range.
So what do you mean with "closing price of current range bar"?
The lower/upper limit of the range bar? (A limit order / stop order there would be an answer then ...)
To avoid the usual pitfalls with "backtesting" on range bars, look for the related threads here on NexusFi (formerly BMT).
A strategy can be used to accomplish this. If your strategy is set to "CalculateOnBarClose=True" then you can use the buy or sell limit method with Close[0] as the limit price ...
EnterBuyLimit(Close[0]);
When the current range bar closes the strategy will place a limit order to buy at the closing price of the current range bar. Since it is a limit order, it may or may not be filled dependent upon future price action.