I tried:
protected override void OnBarUpdate()
{
EnterLong(DefaultQuantity, "Long1");
ExitLong("Exit Long1", "Long1");
}
but this had two problems:
1. The exit occurred on the open of the next bar instead of on the close of the entry bar.
2. NT skipped every other bar. It would not do an entry on bars 1, 2, 3, etc. It entered on bar 1, 3, etc.
Thanks
Comment