NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 05-22-2009, 09:23 AM   #1
bppayne
Member
 
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 1 time in 1 post
Default Parameters EOD Exit

I have my EODExit set to 155500 (3:55PM), but the backtest results show the exit as 4:00 PM.

a) how can I make sure I am out at 3:55 when I go live? (is my strategy set up correctly?)

b) does Ninja use my computers clock for the time, or my brokers time to execute the close?

thanks,

Bruce (newbie at automated trading)
bppayne is offline  
Reply With Quote
Old 05-22-2009, 09:42 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

a. You likely submitted your trade at 3:55. In backtesting, a submission on a closed bar can only be executed at the open of the next bar which means 4:00 if you are on 5min charts. In real-time if you use CalculateOnBarClose = false then it will submit it at the next tick which will be ~3:55.

b. It uses your chart's timestamps. Whether this is locally timestamped or natively done by your brokerage depends on which brokerage you are using.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-22-2009, 11:00 AM   #3
bppayne
Member
 
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
a. You likely submitted your trade at 3:55. In backtesting, a submission on a closed bar can only be executed at the open of the next bar which means 4:00 if you are on 5min charts. In real-time if you use CalculateOnBarClose = false then it will submit it at the next tick which will be ~3:55.

b. It uses your chart's timestamps. Whether this is locally timestamped or natively done by your brokerage depends on which brokerage you are using.
Thanks Josh;
I am using 15 minute bars; so what do I need to do to close at 3:55?
My broker is TDAmeritrade; their rep said the time is based on their system; not sure he knows what he's talking about... can you confirm? thanks
bppayne is offline  
Reply With Quote
Old 05-22-2009, 11:05 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

TDA bars are timestamped locally by your PC clock in NinjaTrader.

In backtesting you likely do not have the granularity for a 3:55 exit. In real-time you just want to run with CalcualteOnBarClose = false and then you can place the exit when your PC clock says 3:55.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New scale-out exit being ignored after a partial, then complete fill on previous exit vjsworld Strategy Development 11 05-18-2009 12:59 PM
EOD Data jjben Miscellaneous Support 0 10-10-2008 07:35 PM
Clearing orders EOD Nick88 Automated Trading 7 05-21-2008 01:04 AM
Import EOD Data Sailor Miscellaneous Support 3 01-08-2008 07:55 AM
Handling of Exit Long and Exit Short before EOD Trader Rob Strategy Development 3 10-22-2007 02:13 PM


All times are GMT -6. The time now is 10:08 PM.