protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
// Set 1
if
// Condition group 1
(
Times[0][0].TimeOfDay == new TimeSpan(dealStartingTime.HOUR,dealStartingTime.MI N,00)
)
{
soldLong=0;canShort=0;
Print("NQ Algorithm Testing- Step 4");
Print (Times[0][0].TimeOfDay);
Print (DefaultQuantity);
EnterLong(Convert.ToInt32(DefaultQuantity), @"myEntryOrder");
SetStopLoss(CalculationMode.Currency, equityDeal.MAXLOSS);
}
}
}
This part of the code is not getting executed. Can someone help me
Log says:
2019-04-15 18:16:57 | Default | Strategy 'NQAlgorithmTesting/134788298': An order placed at '2019-04-09 18:18:00' has been ignored since the order was submitted before the strategy property BarsRequiredToTrade had been met.
|
Comment