Is it possible to add an instrument as a parameter?
For example in the code below the instrument is hard-coded I want to know if I can make it so a user can enter 6A 09-12 as a parameter when I load the indicator?
I have searched on the forums for sometime and whilst I could find some that covered the topic I'm still not quite sure if it can be done or not?
#region Variables
private Font myFont = new Font("Arial", 8, FontStyle.Regular);
#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("6A 09-12", PeriodType.Minute, 1);
Add(new Plot(new Pen(Color.White, 5), PlotStyle.TriangleUp, "Long"));
CalculateOnBarClose = false;
Overlay = true;
}
suprsnipes

Comment