![]() |
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: Jun 2009
Posts: 38
Thanks: 0
Thanked 1 time in 1 post
|
I have the setting to true to exit at end of day and I am using 2:30 as session close, because I want it to exit at 2:30, but the system won't exit a trade. The chart will stop, but no exit. Any thoughts? Also in the backtested results, it shows exiting at close as well, but on sim it doesn't exit.
Last edited by dancorcal; 01-12-2010 at 03:53 PM.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
dancorcal, your strategy should be exiting if you specify ExitOnClose = true. Can you post a screenshot of your strategy window? I've attached an example.
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2009
Posts: 38
Thanks: 0
Thanked 1 time in 1 post
|
Hi Austin,
Happened again today. The session close time I entered came and the system did not exit. On backtesting the system it will show "exitonclose" at the 2:30 time I am wanting, but for live trading... it holds the trade. Here is the screenshot. Any thoughts? |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Please use TraceOrders = true and see what is happening under the hood around 30 seconds before 2:30.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| placing Session Start and end times in strategy | richa61416 | Version 7 Beta General Questions & Bug Reports | 1 | 11-20-2009 11:41 PM |
| Have Strategy chart results, but restrict session begin/end | ctrlbrk | Strategy Development | 1 | 10-25-2008 08:18 AM |
| Save each strategy with Session Start and end times. | richa61416 | Suggestions And Feedback | 8 | 05-28-2008 11:56 PM |
| feature request: set end and beginning of session for strategy as default | scriabinop23 | General Programming | 1 | 02-01-2008 05:34 AM |
| Question about Session End time for strategy | mazachan | Strategy Development | 1 | 09-21-2007 02:23 PM |