TradeStation - How to place an order of GTC duration - TradeStation | futures io social day trading
futures io futures trading


TradeStation - How to place an order of GTC duration
Updated: Views / Replies:3,283 / 5
Created: by veeyem Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

TradeStation - How to place an order of GTC duration

  #1 (permalink)
Elite Member
Singapore Singapore
 
Futures Experience: Intermediate
Platform: TradeStation
Broker/Data: TS
Favorite Futures: GOLD
 
Posts: 13 since Dec 2011
Thanks: 15 given, 1 received

TradeStation - How to place an order of GTC duration

I am trying to place an order thru a Strategy. The order submitted is defaulted to "DAY" duration. Which means it will get cancelled by end of the day. I am using range chart and hence each bar may span between days. I want to place the order with the duration GTC (Good to Cancel). Thx in advance.

Code used to place the order.
Buy "OrdName" 1 Contracts NEXT BAR AT High+0.01 Stop

Reply With Quote
 
  #2 (permalink)
Elite Member
glostrup, denmark
 
Futures Experience: Advanced
Platform: Custom platform
Broker/Data: CQG
Favorite Futures: Futures, Options, Stocks
 
ktrader's Avatar
 
Posts: 249 since Aug 2011
Thanks: 151 given, 274 received

Answer
This post has been selected as an answer to the original posters question Answer


veeyem View Post
I am trying to place an order thru a Strategy. The order submitted is defaulted to "DAY" duration. Which means it will get cancelled by end of the day. I am using range chart and hence each bar may span between days. I want to place the order with the duration GTC (Good to Cancel). Thx in advance.

Code used to place the order.
Buy "OrdName" 1 Contracts NEXT BAR AT High+0.01 Stop

You can use the OrderTicket object, i have included all properties you can set here

You only need to set the few you want to use.

Its the Duration field you want to change in your case, its a string containing the duration, like "DAY", "GTC", "GTC+", "30 min" etc. you can find the complete documentation in the easylanguage object reference.


 
Code
	var: tsdata.trading.OrderTicket OrderTicket1( NULL );

		OrderTicket1 = new tsdata.trading.OrderTicket;
		
		OrderTicket1.SymbolType = tsdata.common.SecurityType.stock;
		OrderTicket1.Quantity = 100;
		OrderTicket1.Action = tsdata.trading.OrderAction.Buy;
		OrderTicket1.Type = tsdata.trading.OrderType.market;
		OrderTicket1.Duration = "Day";
		OrderTicket1.LimitPrice = 0.0;
		OrderTicket1.LimitPriceStyle = tsdata.trading.PriceStyle.none;
		OrderTicket1.LimitPriceOffset = 0;
		OrderTicket1.StopPrice = 0.0;
		OrderTicket1.StopPriceStyle = tsdata.trading.PriceStyle.none;
		OrderTicket1.StopPriceOffset = 0;
		OrderTicket1.ActivationRules.UseActivationTime = false;
		OrderTicket1.ActivationRules.UseDeactivationTime = false;		
		OrderTicket1.TrailingStop = tsdata.trading.TrailingStopBehavior.off;
		OrderTicket1.TrailingStopAmount = 0.0;
		OrderTicket1.IfTouched = false;
		OrderTicket1.IfTouchedPrice = 0.0;
		OrderTicket1.IfTouchedPriceStyle = tsdata.trading.PriceStyle.none;
		OrderTicket1.IfTouchedPriceOffset = 0;
		OrderTicket1.ShowOnly = false;
		OrderTicket1.ShowOnlyQuantity = 0;
		OrderTicket1.ECNSweep = false;
		OrderTicket1.NonDisplay = false;
		OrderTicket1.Discretionary = false;
		OrderTicket1.DiscretionaryAmount = 0.0;
		OrderTicket1.BuyMinusSellPlus = false;
		OrderTicket1.Peg = tsdata.trading.PegBehavior.off;
		OrderTicket1.AllOrNone = false;
		OrderTicket1.ConvertInvalidStopToMarket = false;
		OrderTicket1.Name = "OrderTicket1";

Reply With Quote
The following 2 users say Thank You to ktrader for this post:
 
  #3 (permalink)
Elite Member
Singapore Singapore
 
Futures Experience: Intermediate
Platform: TradeStation
Broker/Data: TS
Favorite Futures: GOLD
 
Posts: 13 since Dec 2011
Thanks: 15 given, 1 received


Awesome. Thx for the quick response with the solution.

BTW, I had a chat with the TS technical helpdesk on this. They mentioned that the "DAY" order will be closed by end of the session. However, when the session starts again, the same "DAY" order will be placed again automatically. This will happen even though the RANGE bar is still in the midst of completing the range. I am now testing this in the SIM account. Will share the outcome here.

The code you shared gives great deal of flexibility when placing the order. Appreciated.

Reply With Quote
 
  #4 (permalink)
Elite Member
glostrup, denmark
 
Futures Experience: Advanced
Platform: Custom platform
Broker/Data: CQG
Favorite Futures: Futures, Options, Stocks
 
ktrader's Avatar
 
Posts: 249 since Aug 2011
Thanks: 151 given, 274 received


veeyem View Post
Awesome. Thx for the quick response with the solution.

BTW, I had a chat with the TS technical helpdesk on this. They mentioned that the "DAY" order will be closed by end of the session. However, when the session starts again, the same "DAY" order will be placed again automatically. This will happen even though the RANGE bar is still in the midst of completing the range. I am now testing this in the SIM account. Will share the outcome here.

The code you shared gives great deal of flexibility when placing the order. Appreciated.

Great you can use it..

I forgot to mention you have to call send() on the orderticket object to actually place the order - a minor but important detail

Reply With Quote
 
  #5 (permalink)
Learn to swim
Salt Lake City, Utah
 
Futures Experience: Intermediate
Platform: NinjaTrader, Tradestation
Favorite Futures: Forex
 
Posts: 72 since Feb 2011
Thanks: 274 given, 36 received


veeyem View Post
Awesome. Thx for the quick response with the solution.

BTW, I had a chat with the TS technical helpdesk on this. They mentioned that the "DAY" order will be closed by end of the session. However, when the session starts again, the same "DAY" order will be placed again automatically. This will happen even though the RANGE bar is still in the midst of completing the range. I am now testing this in the SIM account. Will share the outcome here.

The code you shared gives great deal of flexibility when placing the order. Appreciated.

Let us know how that goes. In my experience, with Forex and TS, my stop order has been cancelled at 5pm EST since it is "day" only but when it goes to renew a few seconds later it responds with a "rejected" message (apparently this is due to some lag on the TS side settling for the day). Anyway, this can leave you in a tricky spot so beware. The problem will usually correct itself when the next bar on the Data1 stream closes, prompting the strategy to run again. This is not a big deal if Data1 is small such as 1m or 5m but can be a big deal if it's larger. You can write some object oriented checks as a safety mechanism but I won't go into that.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Athens, Greece
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
Posts: 3 since May 2013
Thanks: 2 given, 0 received

Order duration in Tradestation

Dear all,

I have used tickets and still using them. Is there any other way to define order duration in Tradestation?

Also, does any of you sets order duration in FX using Tradestation? I don't get access to 1 min duration. Only IOC theoretically can cancel the order soon enough after its deployment.

Thank you

Reply With Quote

Reply



futures io > > > > TradeStation - How to place an order of GTC duration

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tradestation order execution question Stephan TradeStation 7 October 16th, 2017 07:29 PM
Tick Bar Duration jitasb EasyLanguage Programming 7 March 15th, 2012 03:34 PM
Time Duration of Volume Bars huracan NinjaTrader Programming 8 March 14th, 2012 05:14 AM
Cancelling order in TradeStation vs. MultiCharts furytrader TradeStation 1 December 11th, 2011 09:21 AM
How to place Stop Limit order in MultiCharts Descretionary Trader? safin MultiCharts 1 October 14th, 2011 07:35 AM


All times are GMT -4. The time now is 11:46 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-17 in 0.12 seconds with 31 queries on phoenix via your IP 54.90.92.204