![]() |
|
|||||||
| Charting Support for NinjaTrader Advanced Charting. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
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.
Ben
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |