## Line Chart

### Line

This chart is just a single line plot based on the day's close value. The ChartPrefs menu enables choice of a different value, e.g. open price.

What is plotted can be changed to suit your needs by applying a custom formula to generate the plot.

The Default Plot setting toggles the use of the user defined formula with the default setting of the Close bar.

Here the above shot is a formula that creates the formula of (High + Low + Close) / 3. Lets break it down into each step.
Step 1 uses the REF plugin to get an array of High bars.
Step 2 uses the REF plugin to get an array of Low bars.
Step 3 uses the REF plugin to get an array of Close bars.
Step 4 uses the MATH plugin to add steps 1 and 2 together.
Step 5 uses the MATH plugin to add steps 4 and 3 together to complete the (High + Low + Close) portion of the formula.
Step 6 uses the MATH plugin to divide steps 5 by 3. This step contains the average price, and so we check the plot column to tell qtstalker that this is the line we want to plot.

We can plot any step we want just by checking the plot column desired. If we want to show the actual close plot we would also check step 3. It's up to you how complex you want to get.