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 > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-31-2008, 02:58 PM   #1
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default Possible to enter/exit during the day with a daily strategy?

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
cunparis is offline  
Reply With Quote
Old 10-31-2008, 03:50 PM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,415
Thanks: 252
Thanked 978 times in 961 posts
Default

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!
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 11-01-2008, 02:58 AM   #3
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
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!
Thanks for that link, that is very helpful. Particularly:

Code:
EnterLong(1, 1, "Long: 1min");
This method with these parameters is not documented in the helpful! I didn't know it existed.

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.
cunparis 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
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


All times are GMT -6. The time now is 01:56 AM.