1. 首页
  2. 易语言 - EasyLanguage
  3. 用绘图进行调试 Debugging using Chart plots

用绘图进行调试 Debugging using Chart plots

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...
更新于 2020年6月2日

这篇文章对您有帮助吗?

相关的话题

留言评论