Hi Robert, So I saw this code in the forum and am trying to tweak it to meet my parameters. I wish I understood this code better so I can figure out what i'm doing when I change the iBars or iRatio. Anyways, here are my parameters: Pin nose/tail + body>=2/3rds the entire candle Pin nose/tail must be at least 4 times as large as the body of the candle pin nose/tail must be at least twby dderek03 - Trading Discussion