title: Cannot call 'operator /' with argument
body: <p>I can't formula entry rightly. I have following mistakes:</p>
  <p>line 28: Cannot call 'operator /' with argument 'expr0'='totalRevenueBySampling'. An argument of 'fun_ref[totalRevenueBySampling]' type was used but a 'const int' is expected
  Cannot call 'operator /' with argument 'expr1'='totalOperatingExpensesBySampling'. An argument of 'fun_ref[totalOperatingExpensesBySampling]' type was used but a 'const int' is expected;
  line 28: Variable 'Rs' is not found in scope 'Rs', cannot register side effect</p>
  <p>Here is a script looks:</p>
  <p><strong>Kr = Ra / Rs</strong>, where <strong>Ra</strong> = Sa / Ea, and where <strong>Rs</strong> = Ss / Es</p>
  <p>Here is a script I wrote:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//@version=5
  indicator("Competitiveness")
  
  // Ra (effectiveness from operations)
  // Sa - Total Revenue
  // Ea - Total Operating Expenses
  Ra() =&gt;
      Sa = request.financial(syminfo.tickerid, "TOTAL_REVENUE", "FQ")
      Ea = request.financial(syminfo.tickerid, "TOTAL_OPER_EXPENSE", "FQ")
      Ra = Sa / Ea
  
  // Rs (effectiveness from operations by sampling)
  // Ss - Total Revenue by Sampling
  // Es - Total Operating Expenses by Sampling
  sym1 = input.symbol("", "Ticker")
  sym2 = input.symbol("", "Ticker")
  
  Ss() =&gt;
      obj1 = request.financial(sym1, "TOTAL_REVENUE", "FQ")
      obj2 = request.financial(sym2, "TOTAL_REVENUE", "FQ")
      totalRevenueBySampling = math.avg(obj1, obj2)
      
  Es() =&gt;
      obj1 = request.financial(sym1, "TOTAL_OPER_EXPENSE", "FQ")
      obj2 = request.financial(sym2, "TOTAL_OPER_EXPENSE", "FQ")
      totalOperatingExpensesBySampling = math.avg(obj1, obj2)
  
  Rs() =&gt;
      Rs = Ss / Es
  
  // Kr (effectiveness from operations ratio)
  Kr() =&gt;
      Kr = Ra / Rs
  
  plot(Kr(), "Kr", color.aqua, 2)</code></pre>
  </div>
  </div>
  </p>
  <p>Where am I wrong?</p>