Welcome Guest, you are in: Login
CTS Futures
Home
Pricing
FAQ

T4 Desktop
User Guide
Scripting Guide
Release Notes

Mobile and Web
T4 Mobile
T4 WebTrader

Admins
T4 Admin Guide

Developers
API 4.0 Guide
API 4.0 Reference
FIX API




Search the wiki
»
A single Stop Limit order can be submitted using the SubmitNewOrder method on the AccountList object:

' Submit an order.
moOrder = moAccounts.SubmitNewOrder( _
oAccount, _
oMarket, _
BuySell.Buy, _
PriceType.StopLimit, _
TimeType.Normal, _
1, _
CDbl(6534), _
CDbl(6534))

The parameters for the SubmitNewOrder method are described here.

penPriceTypeSet to PriceType.StopLimit for a stop limit order.
penTimeTypeSet to TimeType.Normal for a day order that will exist for the current trading day only.
piVolumeSet to the order volume you want.
pdblLimitPriceSet to the limit price you want the order to work at once it has been triggered. Be sure that you are using the correct overloaded SubmitNewOrder method and providing either a display price as a double or a tick price as an integer.
pdblStopPriceSet to the stop trigger price you want. Be sure that you are using the correct overloaded SubmitNewOrder method and providing either a display price as a double or a tick price as an integer.

In this example, the stop order will trigger when the price of 6534 or higher trades. The order then changes into a Limit order with a limit price of 6534. If the market has already gone through that price then you will be left with a working limit order.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

141 W. Jackson Blvd., Suite 211A, Chicago, IL 60604

© 2009-2012 Cunningham Trading Systems Inc. All rights reserved.