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 pvincent, 06-23-2022, 12:53 PM
    14 responses
    238 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    382 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Working...
    X