I am running 8.0.0.11 64-bit (Standard) - BETA
2016-05-28 18:49:12:285|1|4|Automated trading disabled
2016-05-28 18:49:12:607|1|32|Order entry hot keys disabled
2016-05-28 18:49:12:624|1|4|Auto close enabled=False
2016-05-28 18:49:33:271|3|2|Connection lost to the NinjaTrader Information Server: is-us-001.ninjatrader.com
2016-05-28 18:50:19:247|3|4|Indicator 'S_Trading_System': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
2016-05-28 18:50:19:603|3|4|Indicator 'S_Trading_System': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Strategy here.";
Name = "ATMStrategySTS";
Calculate = Calculate.OnEachTick;
EntriesPerDirection = 1;
EntryHandling = EntryHandling.AllEntries;
IsExitOnSessionCloseStrategy = false;
ExitOnSessionCloseSeconds = 30;
IsFillLimitOnTouch = false;
MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
OrderFillResolution = OrderFillResolution.Standard;
Slippage = 0;
StartBehavior = StartBehavior.WaitUntilFlat;
TimeInForce = TimeInForce.Gtc;
TraceOrders = true;
RealtimeErrorHandling = RealtimeErrorHandling.IgnoreAllErrors;
StopTargetHandling = StopTargetHandling.ByStrategyPosition;
BarsRequiredToTrade = 300;
}
else if (State == State.Configure)
{
// Add a 5 minute Bars object - BarsInProgress index = 1
AddDataSeries(BarsPeriodType.Minute, 30);
AddDataSeries(BarsPeriodType.Tick, 1);
}
}
Comment