@siddhugaddi Thinking about it this is how to get the sizes into variables, you will then have to put a set of conditions together so your EA does what's needed when a doji is present.

0_1631039801653_cda08cc7-b10a-4b7e-a480-6cf8dd12b60a-image.png