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 futtrader, 04-21-2024, 01:50 AM
    4 responses
    41 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    11 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    7 views
    0 likes
    Last Post port119
    by port119
     
    Started by Philippe56140, Today, 02:35 PM
    0 responses
    7 views
    0 likes
    Last Post Philippe56140  
    Started by 00nevest, Today, 02:27 PM
    0 responses
    7 views
    0 likes
    Last Post 00nevest  
    Working...
    X