If my data supplier doesn't recognize the symbols used or I want to use data for the S & P or Russell or another index, do I just alter the code in lines 45, 46, 47? Where do I find the names for the scripts to reference? "N" I assume references the Nasdaq, does "S" reference the S & P - "R" the Russell etc Where can I look this up?
I have included the relevent lines from the original script posted on the S&C website:
[Description("Stocks and Commodities - October 2011 - The JKHiLo Index")]
public class JKHiLo : Indicator
{
#region Variables
private double A;
private double B;
private double C;
private double D;
private DataSeries E;
private double F;
private double G;
private DataSeries H;
private double I;
private double J;
#endregion
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Overlay = false;
Add(new Line(Color.FromKnownColor(KnownColor.DarkOliveGree n), 20, "Line1"));
Add(new Line(Color.FromKnownColor(KnownColor.DarkOliveGree n), 90, "Line2"));
Plots[0].Pen.Width = 2;
Add("^NTCI", PeriodType.Day, 1);
Add("^NNYH", PeriodType.Day, 1);
Add("^NNYL", PeriodType.Day, 1);
E = new DataSeries (this);
H = new DataSeries (this);
}
Any help greatly appreciated, especially from whoever wrote the original as I don't understand why I'm not getting a plot on a chart !!
Thanks;
Ben.
Comment