I'm trying to define a form class and use it but so far I am unsuccessful. Questions:
1) Is this this possible?
2) If not, is there a better way than file io available to communicate with NinjaTrader?
Here is the code I used. It gets an error "The type of namespace 'TestForm' could not be found."
public class FormsTest : Strategy
{
#region Variables
// Wizard generated variables
private int myInput0 = 1; // Default setting for MyInput0
// User defined variables (add any user defined variables below)
//define class for test Form
public class testForm : Form
{
//constructor
public void TestForm()
{
//commented out for now
//this.Text = "this is a test Form";
}
}
#endregion
/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
TestForm display = new TestForm();
}
Thanks!
Folls
Comment