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 egordleo, Today, 05:50 AM
    0 responses
    1 view
    0 likes
    Last Post egordleo  
    Started by kevinenergy, 02-17-2023, 12:42 PM
    118 responses
    2,778 views
    1 like
    Last Post kevinenergy  
    Started by briansaul, Today, 05:31 AM
    0 responses
    9 views
    0 likes
    Last Post briansaul  
    Started by fwendolynlpxz, Today, 05:19 AM
    0 responses
    4 views
    0 likes
    Last Post fwendolynlpxz  
    Started by traderqz, Yesterday, 12:06 AM
    11 responses
    28 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X