Debug code using plots
Sometimes using the Print Reserved Word and the Print Log is cumbersome.
If all you want is quick view of where a condition happened in the chart or you just want to see if a variable is doing something TRUE or FALSE. Then remember this method as you can stack ERROR PLOTS in your code filtering the condition met by color on the chart.
In your indicator code
Just add a series of plots that can execute by Time, Condition, Boolean etc.
Make the plot a point or histogram to see it better.
if Value1 < 0 then plot1(C,"error",tool_Red,0,6); if Condition1 = False then plot1(C,"error",tool_Blue,0,6); if time = 930 and Value1 = False then plot1(C,"error",tool_yellow,0,6); and so on...