×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

3.3 Debugging

798 bytes added, 16:16, 29 April 2013
Created page with "Sometimes an indicator or signal may not work properly. So it will require some additional debugging. This can be done in two ways: # '''Using Microsoft Visual Studio.''' It ..."
Sometimes an indicator or signal may not work properly. So it will require some additional debugging. This can be done in two ways:

# '''Using Microsoft Visual Studio.''' It is a good professional tool and it is much easier to debug the code there. The procedure is described in the following chapter: [[Integration with Microsoft Visual Studio 2010/2012/Express]].

# '''Without using a special debugger.''' In this case the default PLEditor .NET Editor can be used. It is possible to trace necessary values of variables to either a previously created file or to the Output of the editor by means of scripting language.
<syntaxhighlight>
#if DEBUG
Output.WriteLine("CurrentBar = {0}; Close = {1}", Bars.CurrentBar, Bars.CloseValue );
#endif
</syntaxhighlight>
[[Category:.NET Programming Giude]]

Navigation menu