I have implemented what you said above and it works great. Thanks.
Still on developing this EA I have another question. Looking at the chart below

The left chart is the smaller time frame while the right chart is the bigger time frame. My idea is to trade using the bigger time frame as the direction and the smaller time frame for entry. So when the bigger time frame gives a sell signal ie PSAR is above price and PSAR is also above price on the smaller time frame then EA should sell.
Here is my code https://fxdreema.com/shared/iNEWjjAfc
( Note: Just an example code, I know I have to change the TF to match the renko charts in order for it to actually trade. )
EA will sell on the small TF at signal A, B and C, but this is NOT what I need, what I need is for EA to sell just once at the very first signal which is A and not sell at B or C.
What condition do I have to put to make this possible?
Thanks for all your help on this forum.
