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 03-04-2009, 01:37 AM   #1
newtrader1
Junior Member
 
Join Date: Jul 2008
Posts: 18
Thanks: 0
Thanked 0 times in 0 posts
Default Only entering long position if entry bar closes at high of range

Hi

I am using a strategy on range charts. I have tried different conditions on the prices but cannot get what I need.

I would like to have a condition that I can add to my strategy that only enters long trades if the trigger bar closes at the high of the range.

If it closes on the low of the range I do not want to enter a long position. Any help appreciated

Thanks
newtrader1 is offline  
Reply With Quote
Old 03-04-2009, 07:03 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,416
Thanks: 252
Thanked 978 times in 961 posts
Default

Hi newtrader1, you could for example check if the Close of the bar is greater than the Typical price - http://www.ninjatrader-support.com/H...6/Typical.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 03-04-2009, 07:34 AM   #3
newtrader1
Junior Member
 
Join Date: Jul 2008
Posts: 18
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Bertrand,

That is exactly what I needed

Thanks again
newtrader1 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
Trade entry based off of High/Low of clicked on 1 minute bar on chart takacsj Charting 1 09-19-2008 03:20 AM
capture Strategy position ENTRY by bar Bob10 Strategy Development 7 02-09-2008 11:38 AM
Strategies stop after position closes ashish Automated Trading 3 11-04-2007 01:24 AM
Stop Loss @ Low/High of Entry Bar minus one Bar SamIam Strategy Development 5 08-29-2007 03:55 AM
NT6 beta 8 chart plots last bar as super long, never closes dwight Charting 10 03-09-2007 06:56 AM


All times are GMT -6. The time now is 04:07 AM.