NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-30-2007, 12:00 AM   #1
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Question NBarsDown/NBarsUp question

Can an NBarsDown/up be coded so it will ignore doji's (open and close are the same)?

It didn't go lower but it didn't go higher either.

Cliff
ct is offline  
Reply With Quote
Old 05-30-2007, 06:59 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

If there is a doji in the sequence of n Bars, the indicator will not confirm the pattern. If you want to exclude doji's from the sequence, you would have to make a copy of the indicator and custom code your own.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-30-2007, 07:03 AM   #3
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Wink

Ray

Thanks. You are up early today. The fun doesn't start until 2:00pm.

Cliff
ct 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
NBarsDown/Up funk101 General Programming 3 04-29-2007 07:43 PM


All times are GMT -6. The time now is 12:45 AM.