Besides drawing trend lines by hand, we can also draw them programmatically in an indicator, trading strategy, or function. In this chapter we examine how we can programmatically create and subsequently work with trend lines in MultiCharts .NET.

How do trend lines work in PowerLanguage .NET?

We begin the chapter by exploring the fundamentals of working with trend lines:

The different ways of drawing MultiCharts .NET trend lines

The next part of the chapter looks at the different ways in which we can draw trend lines:

Working with trend lines in MultiCharts .NET

After looking at the different ways to make trend lines, the next part of the chapter focuses on working with the lines themselves:

Removing trend lines in MultiCharts .NET

In the next articles in the chapter we examine removing trend lines:

Examples of using trend lines in MultiCharts .NET

In the chapter’s next part we look at a few different ways in which we can use trend lines:

Working with a trend line’s price values programmatically

Another way to apply lines is by retrieving the line’s price value for any bar on the chart. With that we can do things like:

Working with trend lines and alerts in MultiCharts .NET

In the next part of the chapter we look at different ways to generate alerts with trend lines:

Automated trading with MultiCharts .NET trend lines

Next in the chapter we look at how to trade (semi-)automatic with MultiCharts .NET trend lines:

Working with a collection of trend lines from the chart

Then we examine how to programmatically work with a collection of trend lines:

Working with a custom trend line collection

Of course, we can also make our own collection in order to conveniently manage the trend lines:

We conclude this large chapter with a summary of MultiCharts .NET trend lines.


References

MultiCharts (2014). MultiCharts .NET Programming Guide (version 1.1). Retrieved from http://www.multicharts.com/downloads/MultiCharts.NET-ProgrammingGuide-v1.1.pdf

PowerLanguage .NET Help (n.d.). Retrieved on November 18, 2014, from http://www.multicharts.com/downloads/PowerLanguage.NET.chm