when I am short and then create an order with ExitShortStopLimit using the code below, I get an error box. However, I don't get the same error when I am long - it creates the ExitLongStopLimit using the same code below. I simply want to create a stop for my orders in my strategy without using MIT orders for shorts. please help thank you: See snapshot for clarification.
Short - does not work - gives error box
if ( ShortEntry())
{
EntryPriceShort1 = (GetCurrentAsk(0));
EnterShortLimit(Convert.ToInt32(1), GetCurrentAsk(0), @"1");
}
if ((Position.MarketPosition == MarketPosition.Short))
{
ExitShortStopLimit(Convert.ToInt32(1), EntryPriceShort1 + 3.00 , "", @"1");
}
Long - works - no error box
if ( LongEntry())
{
EntryPriceLong1 = (GetCurrentAsk(0));
EnterLongLimit(Convert.ToInt32(1), GetCurrentBid(0), @"1");
}
if ((Position.MarketPosition == MarketPosition.Long))
{
ExitLongStopLimit(Convert.ToInt32(1), EntryPriceShort1 - 3.00 , "", @"1");
}

Comment