title: PineScript 4 - Criteria to calculate bars
body: <p>I need to recreate this on pinescript and I don't know how to do it.
  Can anybody help me??</p>
  <p>The idea that the result of this criteria show a plot with a label and message.
  Thanks!</p>
  <p>Code Example:
  &quot;5 Days ago max (5, high) &gt; max (30, close)
  Count Down (5, close) &gt; 3&quot;</p>
  <p>Click on the image &quot;criteria&quot;
  <a href="https://i.stack.imgur.com/Dx34c.png" rel="nofollow noreferrer">criteria</a></p>