• C#
  • Java
  • VB
  • C++
  • Python
Use up and down arrows to select available result. Press enter to go to selected search result. Touch devices users can use touch and swipe gestures.
Contact us
Adjustable Stops

You can attach one-time adjustments to stop, stop limit, trailing stop and trailing stop limit orders. When you attach an adjusted order, you set a trigger price that triggers a modification of the original (or parent) order, instead of triggering order transmission.

Adjusted to Stop

  • //Attached order is a conventional STP order in opposite direction
    Order order = Stop(parent.Action.Equals("BUY") ? "SELL" : "BUY", parent.TotalQuantity, attachedOrderStopPrice);
    order.ParentId = parent.OrderId;
    //When trigger price is penetrated
    order.TriggerPrice = triggerPrice;
    //The parent order will be turned into a STP order
    order.AdjustedOrderType = "STP";
    //With the given STP price
    order.AdjustedStopPrice = adjustStopPrice;
  • Order order = new Order();
    //Attached order is a conventional STP order in opposite direction
    order.action("BUY".equals(parent.getAction()) ? "SELL" : "BUY");
    order.totalQuantity(parent.totalQuantity());
    order.auxPrice(attachedOrderStopPrice);
    order.parentId(parent.orderId());
    //When trigger price is penetrated
    order.triggerPrice(triggerPrice);
    //The parent order will be turned into a STP order
    order.adjustedOrderType(OrderType.STP);
    //With the given STP price
    order.adjustedStopPrice(adjustStopPrice);
  • 'Attached order Is a conventional STP order in opposite direction
    Dim action As String = "BUY"
    If (parent.Action.Equals("BUY")) Then
    action = "SELL"
    End If
    Dim order As Order = StopOrder(action, parent.TotalQuantity, attachedOrderStopPrice)
    order.ParentId = parent.OrderId
    'When trigger price Is penetrated
    order.TriggerPrice = triggerPrice
    'The parent order will be turned into a STP order
    order.AdjustedOrderType = "STP"
    'With the given STP price
    order.AdjustedStopPrice = adjustStopPrice
  • //Attached order is a conventional STP order in opposite direction
    Order order;
    order.action = (parent.action == "BUY") ? "SELL": "BUY";
    order.orderType = "STP";
    order.totalQuantity = parent.totalQuantity;
    order.auxPrice = attachedOrderStopPrice;
    order.parentId = parent.orderId;
    //When trigger price is penetrated
    order.triggerPrice = triggerPrice;
    //The parent order will be turned into a STP order
    order.adjustedOrderType = "STP";
    //With the given STP price
    order.adjustedStopPrice = adjustStopPrice;
  • 1  # Attached order is a conventional STP order in opposite direction
    2  order = OrderSamples.Stop("SELL" if parent.action == "BUY" else "BUY",
    3  parent.totalQuantity, attachedOrderStopPrice)
    4  order.parentId = parent.orderId
    5  #When trigger price is penetrated
    6  order.triggerPrice = triggerPrice
    7  #The parent order will be turned into a STP order
    8  order.adjustedOrderType = "STP"
    9  #With the given STP price
    10  order.adjustedStopPrice = adjustStopPrice

Adjusted to Stop Limit

  • //Attached order is a conventional STP order
    Order order = Stop(parent.Action.Equals("BUY") ? "SELL" : "BUY", parent.TotalQuantity, attachedOrderStopPrice);
    order.ParentId = parent.OrderId;
    //When trigger price is penetrated
    order.TriggerPrice = triggerPrice;
    //The parent order will be turned into a STP LMT order
    order.AdjustedOrderType = "STP LMT";
    //With the given stop price
    order.AdjustedStopPrice = adjustedStopPrice;
    //And the given limit price
    order.AdjustedStopLimitPrice = adjustedStopLimitPrice;
  • Order order = new Order();
    //Attached order is a conventional STP order
    order.action("BUY".equals(parent.getAction()) ? "SELL" : "BUY");
    order.totalQuantity(parent.totalQuantity());
    order.auxPrice(attachedOrderStopPrice);
    order.parentId(parent.orderId());
    //When trigger price is penetrated
    order.triggerPrice(triggerPrice);
    //The parent order will be turned into a STP LMT order
    order.adjustedOrderType(OrderType.STP_LMT);
    //With the given stop price
    order.adjustedStopPrice(adjustStopPrice);
    //And the given limit price
    order.adjustedStopLimitPrice(adjustedStopLimitPrice);
  • 'Attached order Is a conventional STP order
    Dim action As String = "BUY"
    If (parent.Action.Equals("BUY")) Then
    action = "SELL"
    End If
    Dim order As Order = StopOrder(action, parent.TotalQuantity, attachedOrderStopPrice)
    order.ParentId = parent.OrderId
    'When trigger price Is penetrated
    order.TriggerPrice = triggerPrice
    'The parent order will be turned into a STP LMT order
    order.AdjustedOrderType = "STP LMT"
    'With the given stop price
    order.AdjustedStopPrice = adjustedStopPrice
    'And the given limit price
    order.AdjustedStopLimitPrice = adjustedStopLimitPrice
  • //Attached order is a conventional STP order
    Order order;
    order.action = (parent.action == "BUY") ? "SELL": "BUY";
    order.orderType = "STP";
    order.totalQuantity = parent.totalQuantity;
    order.auxPrice = attachedOrderStopPrice;
    order.parentId = parent.orderId;
    //When trigger price is penetrated
    order.triggerPrice = triggerPrice;
    //The parent order will be turned into a STP LMT order
    order.adjustedOrderType = "STP LMT";
    //With the given stop price
    order.adjustedStopPrice = adjustStopPrice;
    //And the given limit price
    order.adjustedStopLimitPrice = adjustedStopLimitPrice;
  • 1  #Attached order is a conventional STP order
    2  order = OrderSamples.Stop("SELL" if parent.action == "BUY" else "BUY",
    3  parent.totalQuantity, attachedOrderStopPrice)
    4  order.parentId = parent.orderId
    5  #When trigger price is penetrated
    6  order.triggerPrice = triggerPrice
    7  #The parent order will be turned into a STP LMT order
    8  order.adjustedOrderType = "STP LMT"
    9  #With the given stop price
    10  order.adjustedStopPrice = adjustedStopPrice
    11  #And the given limit price
    12  order.adjustedStopLimitPrice = adjustedStopLimitPrice

Adjusted to Trail

  • //Attached order is a conventional STP order
    Order order = Stop(parent.Action.Equals("BUY") ? "SELL" : "BUY", parent.TotalQuantity, attachedOrderStopPrice);
    order.ParentId = parent.OrderId;
    //When trigger price is penetrated
    order.TriggerPrice = triggerPrice;
    //The parent order will be turned into a TRAIL order
    order.AdjustedOrderType = "TRAIL";
    //With a stop price of...
    order.AdjustedStopPrice = adjustedStopPrice;
    //traling by and amount (0) or a percent (100)...
    order.AdjustableTrailingUnit = trailUnit;
    //of...
    order.AdjustedTrailingAmount = adjustedTrailAmount;
  • Order order = new Order();
    //Attached order is a conventional STP order
    order.action("BUY".equals(parent.getAction()) ? "SELL" : "BUY");
    order.totalQuantity(parent.totalQuantity());
    order.auxPrice(attachedOrderStopPrice);
    order.parentId(parent.orderId());
    //When trigger price is penetrated
    order.triggerPrice(triggerPrice);
    //The parent order will be turned into a TRAIL order
    order.adjustedOrderType(OrderType.TRAIL);
    //With a stop price of...
    order.adjustedStopPrice(adjustStopPrice);
    //trailing by and amount (0) or a percent (100)...
    order.adjustableTrailingUnit(trailUnit);
    //of...
    order.adjustedTrailingAmount(adjustedTrailAmount);
  • 'Attached order Is a conventional STP order
    Dim action As String = "BUY"
    If (parent.Action.Equals("BUY")) Then
    action = "SELL"
    End If
    Dim order As Order = StopOrder(action, parent.TotalQuantity, attachedOrderStopPrice)
    order.ParentId = parent.OrderId
    'When trigger price Is penetrated
    order.TriggerPrice = triggerPrice
    'The parent order will be turned into a TRAIL order
    order.AdjustedOrderType = "TRAIL"
    'With a stop price of...
    order.AdjustedStopPrice = adjustedStopPrice
    'traling by And amount (0) Or a percent (100)...
    order.AdjustableTrailingUnit = trailUnit
    'of...
    order.AdjustedTrailingAmount = adjustedTrailAmount
  • //Attached order is a conventional STP order
    Order order;
    order.action = (parent.action == "BUY") ? "SELL": "BUY";
    order.orderType = "STP";
    order.totalQuantity = parent.totalQuantity;
    order.auxPrice = attachedOrderStopPrice;
    order.parentId = parent.orderId;
    //When trigger price is penetrated
    order.triggerPrice = triggerPrice;
    //The parent order will be turned into a TRAIL order
    order.adjustedOrderType = "TRAIL";
    //With a stop price of...
    order.adjustedStopPrice = adjustStopPrice;
    //traling by and amount (0) or a percent (100)...
    order.adjustableTrailingUnit = trailUnit;
    //of...
    order.adjustedTrailingAmount = adjustedTrailAmount;
  • 1  #Attached order is a conventional STP order
    2  order = OrderSamples.Stop("SELL" if parent.action == "BUY" else "BUY",
    3  parent.totalQuantity, attachedOrderStopPrice)
    4  order.parentId = parent.orderId
    5  #When trigger price is penetrated
    6  order.triggerPrice = triggerPrice
    7  #The parent order will be turned into a TRAIL order
    8  order.adjustedOrderType = "TRAIL"
    9  #With a stop price of...
    10  order.adjustedStopPrice = adjustedStopPrice
    11  #traling by and amount (0) or a percent (100)...
    12  order.adjustableTrailingUnit = trailUnit
    13  #of...
    14  order.adjustedTrailingAmount = adjustedTrailAmount