I have an indicator I am working that I would like to integrate the SMA into for plotting purposes. I am currently using the plot function (Add (new Plot"""" //within the Initialize section) with a dataseries, but I realize that what I am really looking for is the SMA of this dataseries. I can add it after the fact within the chart, but I would like it to be part of the indicator. What is the best way to add this and is this added into the Initialize section or in the main code? Also, how would I graph both the plot and the SMA at the same time if I wish to do so? Do I need to have multiple dataseries to do this?
Thanks,
Lee
Comment