![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 1 time in 1 post
|
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) |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Member
Join Date: Jan 2008
Posts: 32
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
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 |
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |