Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NBarsDown/NBarsUp question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X