Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.
FOR EXAMPLE:
SHORT POSITION 1st candle: close price is above MA (buy signal) 2nd candle: closure of the short position at the open price of the new candle (this is when the long position must be opened) 3rd candle: (this is where it goes wrong) the long position is opened at the open price of this candle (and not the 2nd candle).
Trade Renko charts automatically using the advanced Renko Expert Advisors. Clean trends, better entries. Discover them here.
This process is illustrated in the image (description of the situation with "BUY", the same with the "SELL", of course).
I would be glad if the more advanced minds than mine contributed to solving this task. If possible, please fix the attached code. Of course, I would be grateful for simple tips as well. (Although I am not sure if I will be able to convert simple tips into code - too little experience). :)

Build better strategies with RobotFX professional tools – check them out.
8615