Divide by Zero

Test a variable's value for non-zero using   if  variable<>0 then ....

Example:

var ratio: real;
begin
  if Find(market,symbol) then begin
    if GetData(eLast)<>0 then 
      ratio:=(GetData(eHigh)-GetData(eLow))/GetData(eLast)
    else 
      ratio:=0;
  end;
end;