/// Rule 1; enter long if close above first bar high...;
if (Bars.FirstBarOfSession)
{
return;
}
else
{ barOne = Bars.BarsSinceSession;
myStop = ExitLongStop(Low[barOne],"initial","Entry");
if (Close[0] > High[barOne] && Position.Quantity == 0)
{
firstTime = false;
Print(CurrentBar);
if (!firstTime)
{
firstTime = true;
EnterLong("Entry");
barLong = 0;
size = Position.Quantity;
mxi = 0;
}
}
}
Question 1; Why is this not waiting on the bar to complete?
question 2; Why is the slippage so high?

Comment