Currently the one minute data series is the primary data series. I have tried making the one day data series the primary data series and the one minute the secondary data series. I got the same result.
I also ensured that the historical data downloaded was both minute and day, and I ensured that the data type was 'last'.
Here is my OnStateChanged method:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Strategy here.";
Name = "T2V1S1V1FU";
Calculate = Calculate.OnBarClose;
EntriesPerDirection = 4;
EntryHandling = EntryHandling.AllEntries;
IsExitOnSessionCloseStrategy = true;
ExitOnSessionCloseSeconds = 30;
IsFillLimitOnTouch = false;
MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix;
OrderFillResolution = OrderFillResolution.Standard;
Slippage = 0;
StartBehavior = StartBehavior.WaitUntilFlat;
TimeInForce = TimeInForce.Gtc;
TraceOrders = false;
RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
StopTargetHandling = StopTargetHandling.PerEntryExecution;
// Disable this property for performance gains in Strategy Analyzer optimizations
// See the Help Guide for additional information
IsInstantiatedOnEachOptimizationIteration = true;
}
else if (State == State.Configure)
{
BarsRequiredToTrade = 0;
//AddChartIndicator(RSI(RSIPeriod, RSISmooth));
AddDataSeries("MGC 04-22", BarsPeriodType.Day, 1, MarketDataType.Last);
}
else if (State == State.DataLoaded)
{
}
}
Thanks,
-Parker

Comment