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 alifarahani, Today, 09:40 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by RookieTrader, Today, 09:37 AM
    4 responses
    18 views
    0 likes
    Last Post RookieTrader  
    Started by PaulMohn, Today, 12:36 PM
    0 responses
    5 views
    0 likes
    Last Post PaulMohn  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    40 views
    0 likes
    Last Post love2code2trade  
    Started by junkone, Today, 11:37 AM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X