Also, while I am being anal, the title of the page is in error too:
EnterLongStopLimt() --------> missing the last "i" in 'Limit'
protected override void OnBarUpdate()
{
if (CurrentBar < 20)
return;
// Only enter if at least 10 bars has passed since our last entry
if (BarsSinceEntry() > 10 && CrossAbove(SMA(10), SMA(20), 1))
EnterLongStop(High[0] + 2 * TickSize, High[0], "SMA Cross Entry");
}
Comment