if (State == State.SetDefaults)
{
OrderFillResolution = OrderFillResolution.High;
OrderFillResolutionType = BarsPeriodType.Second;
OrderFillResolutionValue = 1;
}
Would there be any reason not to just keep the code I posted in Post # 14? To my unskilled eye.....it is waiting for a complete Fill....
Otherwise in OnPositionUpdate() how would I identify the "last Stop fill"? Would this work to enter on the Same bar (Reverse on Stop)?
protected override void OnPositionUpdate(Position position, double averagePrice, int quantity, Marke tPosition marketPosition)
{
if (position.MarketPosition == MarketPosition.Flat )
{
if ((BarsSinceExitExecution(ShortStops5) == 0))
{
EnterLong(QuantitySize, "Long7ReverseOnShortStop");
}
}
}
Comment