When backtesting strategies it can be useful to add the indicators you use for calculations onto the chart to make it easier to check your strategy for accuracy. Instead of doing this step manually every time you run the strategy you can program it to automatically load the indicators for you.
To add a volume indicator to your charts you need to add this code snippet into the Initialize() section of your code.
To choose which panel you want your indicator plotted on you can use this code snippet into the Initialize() section:
To customize plot colors:
To customize plot width:
To customize the plot dash style:
To customize lines you can do it the same way as above.
Remember, you need to use the Add() method to add your indicator if you wish to use any of plot/line indicator customizations.