Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript syntax for n bars down

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

    Ninjascript syntax for n bars down

    The indicator method NBarsDown() returns a 0 or 1, yet the data return type is a double.. it should be a boolean, or at worst an int. To use it in a conditional check, you need to parse it, which is somewhat clumsy and confusing.. thanks.

    #2
    Hello CSharpTrader,
    Thanks for your note.

    Unfortunately plots returns a double value only and as such it is expected.

    You can custom code it further and expose a intseries or a boolseries. Please refer to this sample code which demonstrates how to expose a data series which is not a plot
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,227 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    440 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    12 views
    0 likes
    Last Post FAQtrader  
    Working...
    X