I did try printing execution.time in OnExecution but that only gave me the hour the trade was entered (where I'm trying to find the exact minute).
Any help or suggestions on how to get this to work would be much appreciated. I have included a sample of what I tried below for reference.
//create the IOrder object private IOrder entryOrder = null; protected override void Initialize() { CalculateOnBarClose = true; string intrabar = Instrument.FullName; Add(intrabar,PeriodType.Minute,1); //add extra time frame } OnBarUpdate //if buy conditions { entryOrder = EnterLongStop(DefaultQuantity, High[0]+2*TickSize) } protected override void OnExecution(IExecution execution) { if (entryOrder != null && entryOrder == execution.Order) { Print("Highs"+Highs[1][0]+"Times"+Times[1][1]); } }
Comment