I am trying to create an Unmanaged Bracket order using SubmitOrder. How do I include an absolute value? In other words for example I want to enter the market if I eventually get touched 23 ticks away from the current Close[0].
I tried the followitng below however I got an error concerning an attempt to place a BuyLimit or Buy Stop below the market and it quoted a small value of 161.1 ( for gold )
tickLimit = Close[0] + 10;
longOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Stop, 1, tickLimit * TickSize, tickLimit * TickSize, String.Format("G1"), "long limit entry");
shortOrder = SubmitOrder(0, OrderAction.SellShort, OrderType.Stop, 1, tickLimit * TickSize, tickLimit * TickSize, String.Format("G1), "Short limit entry");

Comment