Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: How are order handled relative to the current Bar

You are not authorized to post a reply.   
Author Messages
davidib2001
Posts:7

03-12-2008 3:03 PM Alert 

How are market orders handled relative to when TS considers the order actually becoming a position?  I have a very simple MA Crossover strategy, but the first time it hits this stmt

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

IsNewTrade returns a false and all other indications (i.e. entryPrice, EntryDate, etc) indicate no trade has actually been done. 

Is there any documentation regarding how TS handles orders, i.e. are they not executed until the next bar, can a position be inited on a Bars open and closed on a Bars closed? 

Any direction/reply appreciated

Thanks

David

murray
Posts:431

03-12-2008 3:35 PM Alert 
In the case of market orders the order is placed on the next bar at the open. The position flag is not updated until the close of that bar.
davidib2001
Posts:7

03-12-2008 3:55 PM Alert 

Hi Murray,

Thanks for the lightening fast reply.  Is there any way to execute the trade on the current bar using a stop/limit order?

Also, there is a thread about initing and liqqing a position on the same day(bar) but the reply/resolution was seemingly ambiguous.  In any case, can I indeed init/liq a position on the same day/bar?

Thanks in advance

David

murray
Posts:431

03-12-2008 4:05 PM Alert 

You can exit on the close on the same day and also put a protective stop in on the day of entry. That the SameDayStop function.

We are adding some new support for our next major upgrade due out in a few months.

You are not authorized to post a reply.
Forums > TradersStudio 2.x > TradersStudio Basic > How are order handled relative to the current Bar



ActiveForums 3.6
TradersStudio® Copyright 2004-2008 All Rights Reserved   |  Privacy Statement  |  Terms Of Use