NexusFi: Find Your Edge


Home Menu

 





Is there a way to send an after-hours order in TradeStation?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,642 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Is there a way to send an after-hours order in TradeStation?

  #1 (permalink)
MasterYan
San Francisco, CA
 
Posts: 30 since Jul 2016
Thanks Given: 13
Thanks Received: 4

Hello!
I'm trying to send after hours order to SPY in the end of the day. But it always rejected by TradeStation. Is there a way to send an after-hours order?

Something like this:

If Close> Open then buy right now.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


MasterYan View Post
Hello!
I'm trying to send after hours order to SPY in the end of the day. But it always rejected by TradeStation. Is there a way to send an after-hours order?

Something like this:

If Close> Open then buy right now.

This is pretty tricky, since strategies are typically evaluated on the close of a bar. Since you don't know the open until the market opens, you need to wait at least 1 bar for the open to then use it (someone can correct me if I'm wrong).

I don't work with equities in TradeStation, but what you can do is have your strategy make it's entry 1 minute after open.

 
Code
// Minute chart for Data1
// Daily chart for Data2

Condition1 = Time = 930 ;  // assuming NYSE open and exchange time

if Condition1 and
   Close[1] of Data2 > Open of Data2
   then buy 1 shares this bar on close ;
I'm not entirely sure it will work, but give it a try. Remember, the first bar of the new trading day has to close for an order to be placed.

Let me know if this works for you.

~vmodus

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


I forgot to mention, you cannot send an order through TradeStation if the market is closed. So in answer to your question, no you cannot send an after-hours order through the desktop application.

Since you posted your question here in the EasyLanguage section, I also assumed you are automating your strategy.

Also, you did not specify which 'Open' (today's open or yesterday's), so I just assumed today's open.

Provide some more details and maybe I can help.

~vmodus

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on June 24, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts