protected override void OnBarUpdate()
{
// Primary bar is daily
if(BarsInProgress==0)
{
if(Close[0]>High[1])
{
EnterLong();
}
}
// Secondary bar is 1 minute
if(BarsInProgress==1)
{
if(ToTime(Time[0])>145800)
{
ExitLong();
}
}
}
Any answers/suggestions on what I'm doing wrong here?

Comment