This gives better results but it is not valid because it appears to be using the open of the next bar rather than the close of the bar the order was generated on.
As I understand it as the bars form it sets the open when the brick size is met. If the direction of the brick is the opposite of the previous brick, then the open for the current bar is changed.
Is there a fix for this so that the backtesting results will be accurate for these chart types?
Comment