I am a thinkscript newbie. want to find total number of earnings on the chart. Below is my code, no error message, but label is not showing on the chart. def earningCount = if IsNaN(earningCount) then 0 else if hasEarnings() then earningCount + 1 else earningCount; AddLabel(yes, "There are total " + earningCount + " earnings"by feelexit - Trading Discussion