VagyokC4
10-15-2007, 05:39 PM
Can we get access to the API to actually control NinjaTrader?
For Example: http://www.ninjatrader-support.com/vb/showthread.php?p=17744#post17744
Another example would be to click a button that automatically opens up various charts using various instruments / time intervals, and starts various strategies on those various charts all with one click on a button.
Maybe something like this...
ButtonLoad_Click(sender, e)
{
Chart c1 = new Chart("$EURUSD",PeriodType.Month,60);
c1.BeginEdit();
c1.Strategy.Add(new MyCustomStrategy1("sim101"));
c1.Indicator.Add(new Bollinger(2,20));
c1.EndEdit();
c1.Show();
Chart c2 = new Chart("$EURUSD",PeriodType.Month,15);
c2.BeginEdit();
c2.Strategy.Add(new MyCustomStrategy2("sim101"));
c2.Indicator.Add(new Bollinger(2,20));
c2.EndEdit();
c2.Show();
}
For Example: http://www.ninjatrader-support.com/vb/showthread.php?p=17744#post17744
Another example would be to click a button that automatically opens up various charts using various instruments / time intervals, and starts various strategies on those various charts all with one click on a button.
Maybe something like this...
ButtonLoad_Click(sender, e)
{
Chart c1 = new Chart("$EURUSD",PeriodType.Month,60);
c1.BeginEdit();
c1.Strategy.Add(new MyCustomStrategy1("sim101"));
c1.Indicator.Add(new Bollinger(2,20));
c1.EndEdit();
c1.Show();
Chart c2 = new Chart("$EURUSD",PeriodType.Month,15);
c2.BeginEdit();
c2.Strategy.Add(new MyCustomStrategy2("sim101"));
c2.Indicator.Add(new Bollinger(2,20));
c2.EndEdit();
c2.Show();
}