private bool sound_On = true; // in the Variables Section of the code,
followed by
if (sound_On) Alert(uniqueID, NinjaTrader.Cbi.Priority.High, "MyCross", soundFilelong, str, Color.Black, Color.Yellow);
in the protected override void OnBarUpdate() Section, and in the Properties section I have
[GridCategory("Parameters")]
public bool Sound_On
{
get { return sound_On; }
set { sound_On = value; }
}
So far so good. Now I have another indicator which places a colored stripe in a chart. This one seems a bit more complex as it uses some kind of dockstyle and toolstripforms.
It reads
Dock = Dockstyle.Right.
I can manually replace "Right" with "Left", and it then places the stripe to the left of the chart.
Question. With what do I have to replace "Right", and what do I have to add into the code similarly to the Sound thing I explained, so that I can have it as an option in the indicator menu to place it left or right, if that is even possible.
sandman
Comment