Inside program it is Ok, but how to pop up the screen to enter needed Input ?
Similar to Indicators .. - Data: Input Series -> pop up the screen ...
Program as an example:
namespace NinjaTrader.Indicator
{
/// <summary>
/// </summary>
[Description("Hello from DS")]
public class DSTest : Indicator
{
#region Variables
// Wizard generated variables
private IDataSeries secondDataSeries;
// User defined variables (add any user defined variables below)
#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()
{
}
/// <summary>
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Print(Input[0]); // from first IDataSeries, can be defined from Indicator -> Data -> Input series
Print(secondDataSeries[0]); // null now or how to enter input series!?
}
#region Properties
[Description("")]
[GridCategory("Parameters")]
public IDataSeries SecondDataSeries
{
get { return secondDataSeries; }
set { secondDataSeries = value; }
}
#endregion
}
}
Comment