if ( Position.MarketPosition == MarketPosition.Flat && entryOrder == null
&& <<< remaining conditions >>>
{
EnterShortLimit( 0, true, Convert.ToInt32( ContractQty ), BollingerBandSetLower100_14[0] + 2 * TickSize, "Short Market Entry WALK THE LINE" );
entryTime = ToTime( Time[0] );
Print( "SHORT Entry Time WALK THE LINE Time = " + entryTime );
barNumberOfOrder = CurrentBar;
}
if ( entryOrder != null && CurrentBar > barNumberOfOrder + 2 )
{
CancelOrder( entryOrder );
cancelTime = ToTime( Time[0] );
Print( "Cancelled SHORT Limit Entry Order Time = " + cancelTime );
}
Since, the condition is liveUntilCancelled, I'd like to update the entry limit order with BollingerBandSetLower100_14[0] + 2 * TickSize with each current new bar UNTIL Cancelled (and yes, there's more support code below in OnOrderUpdate)
I cannot find or figure an easy way, at my programming level, of how to quickly administer, essentially following the BollingerBandSetLower100_14[0] + 2 * TickSize.
Could you please help with this context of how to Chase my Limit entry orders? Thanks in advance! -John
Comment