NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

Reply
 
Thread Tools Display Modes
Old 03-14-2010, 09:08 AM   #1
mailro
Junior Member
 
Join Date: Dec 2007
Location: Greece
Posts: 24
Thanks: 3
Thanked 0 times in 0 posts
Send a message via Skype™ to mailro
Default NBarsDown/NBarsUp question

Hi,
you have the indicatots NbarsD/U. I set it for example to number 2 and when it detects 2 bars it gives a signal. If the next bar is of the same type then a new signal comes again.
What change should I make to the code so when a n sequence is detected stop counting until a diferent type of bar comes in?
mailro is offline  
Reply With Quote
Old 03-14-2010, 11:12 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

There are probably a bunch of ways to do it, but I suggest tracking whether the indicator plotted or qualified to plot consecutively as the chart is built forward. Then plot or do not plot based on that flag.
NinjaTrader_Ben 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/NBarsUp question ct General Programming 2 05-30-2007 07:03 AM
NBarsDown/Up funk101 General Programming 3 04-29-2007 07:43 PM


All times are GMT -6. The time now is 11:19 AM.