Thank you for sharing your detailed specifications; I’ll work on coding this and keep you updated on the progress.
I would also be curious to see how the MA filter affects the overall strategy. A moving average filter could help avoid whipsaws during sideways market conditions. If possible, adding a trailing stop based on a percentage of the Renko block size could also give a little more flexibility in locking profits as the market moves.
Looking forward to seeing how this evolves!