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 StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,967 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    4 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    55 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    6 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    8 views
    0 likes
    Last Post lightsun47  
    Working...
    X