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 07-28-2009, 01:57 PM   #1
d.allen101
Senior Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
Default Enter/Exit based on number of bars

Will you please refer me where to look to find info on entering and exiting positions based on the number of bars passed.

Thanks!
d.allen101 is offline  
Reply With Quote
Old 07-28-2009, 02:02 PM   #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

d.allen101,

Please check out BarsSinceEntry() and BarsSinceExit().
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-28-2009, 02:02 PM   #3
d.allen101
Senior Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
Default

thanks josh
d.allen101 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
Number of lots based from MM Greenmoney21 Suggestions And Feedback 6 06-24-2009 06:29 AM
x number bars back, based on time ctrlbrk Strategy Development 2 03-29-2009 01:31 PM
Draw a line based on a number I enter ninjamouse Suggestions And Feedback 4 03-16-2009 02:41 PM
Enter on bars, exit on ticks and min bars requirment coolraz Strategy Development 3 12-15-2008 09:59 AM
It seems to take 2 bars to Exit a position and then enter in opposite direction scjohn Strategy Development 1 11-06-2008 03:03 PM


All times are GMT -6. The time now is 05:54 AM.