I tried to use this at the beginning of the strat before AtmStrategyCreate instead:
protected override void OnBarUpdate()
{
// HELP DOCUMENTATION REFERENCE: Please see the Help Guide section "Using ATM Strategies"
// Make sure this strategy does not execute against historical data
if (Historical)
return;
// First, we need a simple entry. Then entryOrder == null checks to make sure entryOrder does not contain an order yet.
if (Position.MarketPosition == MarketPosition.Flat)
if (orderId.Length > 0 && Close[0] == limitPrice - 3 * TickSize)
{
AtmStrategyCancelEntryOrder(orderId);
}
Those two params are the listed on http://www.ninjatrader-support.com/H...mStrategyClose. What could I reference instead of stopPrice or limitPrice?
Comment