title: Can't understand how it works (ThinkScript code)
body: <p>I'm currently converting a ThinkScript indicator to python, however, I've run into this piece of code and I'm kinda confused on how it works:</p>
  <pre><code>input rollingPeriodMinutes = 60;
  
  
  def factor = (SecondsFromTime(Market_Open_Time) / (60 * rollingPeriodMinutes) / 100);
  def rolloverTime = if factor == Round(factor) then 1 else 0;
  
  
  rec H1 = compoundValue(1, if !rolloverTime then if high &gt; H1[1] then high else H1[1] else high, high);
  rec H = compoundValue(1, if rolloverTime then H1[1] else H[1], high);
  </code></pre>
  <p>I can't really understand what is stored at the end in the variable &quot;H&quot;. Can you help me understand?
  Any help is really appraciated!! Thanks</p>