How can I use iOpen, iClose, iLow and iHigh to find these pinbars

 

I want to find the pinbars circled in the attached image below. For the one on the right, the body is about 1/5th of the candle size and for the one on the left, let's say the body is 1/7th the size candle size and it also has a wick of 1/7th the candle size at the bottom. How can I use the iOpen, iLow and other similar functions to find these two types of pinbars?

 
Jackery: I want
  1. You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help
              urgent help.

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum

  2. You have your definitions, body size less than 1/5th candle size, one wick less than 1/7th candle size. Get your O, H, L, C. Compute CS, BS, both WS and then see if it matches your definitions. What's the problem?