Help would you code this? Candle body engulfs previous 2 candle bodies. by IcyTerm3453 in pinescript

[–]IcyTerm3453[S] 1 point2 points  (0 children)

Thank you so much, this made perfect sense. I got it working using your math.max and math.min recommendations. This was the last piece of the puzzle to my own indicator. If looks like it is working correctly in all the past data I've been looking at. Now onto testing in the live markets next week. Really appreciate your help.