![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
I would like to program an strategy that uses daily data. The catch is I'd like to be able to exit during the day if a certain condition is met. Is this possible with a daily time based strategy? I was thinking I could make my strategy work for daily, and I could add a 10 minute data series to make it a multi-time strategy.
The problem is if say at noon (10 minute data) I want to exit.. will the exit happen on the next 10 minute bar or the next daily bar? I actually tried this and it seemed that the exit would be on the next daily bar. So I tried making a 10 minute strategy adding 1 day data as a second data series. This is a bit more flexible so I'm probably going to go with this, but it's a bit more complicated as well. Which is the recommended approach? Thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,415
Thanks: 252
Thanked 978 times in 961 posts
|
Hi Cunparis,
Thanks for your post. This is a good approach if you run the daily as your primary chart and the 10 min as the secondary. Please also review this link here - http://www.ninjatrader-support.com/v...ead.php?t=6652 Have a great weekend!
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
Quote:
Code:
EnterLong(1, 1, "Long: 1min"); This explains why my entry on 10 minute bar didn't happen until the day after. I think this gives me enough info to let me implement my strategy. Thank you very much, you've made my weekend great! PS: You may want to update the EnterLong help page to show this extra parameter. I know it's on the advanced orders update page but if one didn't see the advanced orders help page one wouldn't know it was even possible. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exit strategy.... | jed77 | Strategy Development | 18 | 10-16-2008 09:58 AM |
| Enter point. Exit point. But how to settup some "middle" progress actions? | Imbah | Strategy Analyzer | 1 | 10-15-2008 02:17 PM |
| Muliti enter strategy stop loss problem. | Czarek | Strategy Development | 1 | 08-19-2008 12:11 PM |
| enter Strategy'A' exit Strategy'B' same signal name | Bob10 | Strategy Development | 1 | 02-08-2008 08:50 AM |
| Exit Strategy in Initialize() | Oli | Automated Trading | 10 | 03-30-2007 03:06 AM |