Register Login
Forums    February 9, 2012
TradersStudio Forums
How to Buy on Close?
Last Post 09-13-2008 06:38 PM by David Hubbard. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
niklas andersson
New Member
New Member
Posts:1

--
09-02-2008 12:24 PM

    Hi,

    I want my system to Buy at Close.

    When I migrated my tradestation code the Ordertype becomes 'Market' and my Entry will be on Open the following day.

    My converted code became:

    Buy ("",1,0,Market,Day)

    What is the code for buying at Close?

     

     

     

     

    David Hubbard
    New Member
    New Member
    Posts:6

    --
    09-13-2008 06:38 PM

    The following example will buy 4 contracts this bar on the close.

     

    Buy("LE", 4, 0, CloseEntry, Day)

    Use Close Entry instead of market.  It works.  I hope this helps.

     

    Cowpux

    You are not authorized to post a reply.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement