Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"# of Bars to Look Back" get value from NinjaScript?

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

    "# of Bars to Look Back" get value from NinjaScript?

    I have an indicator that gets some really odd results when it tries to go further back in the past than allowed by "# of Bars to Look Back" (In the General section of the params, when using Market Analyzer).

    I'd like to be able to read this value and handle the situation more gracefully.

    I see there is a MaximumBarsLookBack type, but it doesn't seem it's something I can get/set.

    Is there a way to read this information?

    Any help is greatly appreciated!
    Daniel

    EDIT: Stupid me. I believe I simply want Bars.Count to give me the information I want!
    Last edited by neoikon; 04-02-2015, 07:34 AM.

    #2
    Hello Neokin,

    Thank you for your note.

    Correct, Bars.Count would be the best way for this when being used for the Market Analyzer and wanting to get that # of Bars Back value.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    86 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X