Have I made an error in my code or is there some other problem? My code is shown below.
protectedoverridevoid Initialize()
{
Add(PeriodType.Minute, 3);
Add("AAPL", PeriodType.Minute, 1);
}
protectedoverridevoid OnBarUpdate()
{
if (CurrentBars[0] <= BarsRequired || CurrentBars[1] <= BarsRequired || CurrentBars[2] <= BarsRequired)
return;
if (BarsInProgress == 0)
{
EnterLong();
}
if (BarsInProgress == 2)
{
EnterLong();
EnterLong(0, 100, "BUY MSFT");
Comment