By way of a minimal working example, say I wanted to enter when current price > previous high using the following,
protected override void OnBarUpdate() { if (BarsInProgress != 0) return; if (CurrentBars[0] < 1) return; // Set 1 if (CrossAbove(Close, High, 1)) { EnterLong(Convert.ToInt32(DefaultQuantity), ""); } }
Unfortunately the strategy is not executing any trades. I verified potential entries using Print. I've also experimented with OnTickReplay and Playback with no luck.
I assume I'm overlooking something quite simple?
Any thoughts/recommendations would be greatly appreciated!
Comment