Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get properties in BarsType

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

    Get properties in BarsType

    How to get these properties in a BarsType OnStateChanged method?

    - Load data based on
    - Days to load
    - End date

    #2
    Hello Bobin,

    I would suggest looking at some of the other BarsTypes and their OnStateChange to get an idea of where you can access values.

    DaysToLoad can be set in OnStateChange, that is the name of the property DaysToLoad.

    The load data based on is part of the chart logic, that is not a bars type property but how the bars are generated from the chart which is supplied to the bars type to process.

    The end date would be bars.ToDate. This is not documented so depending on the state when you access this it may or may not work.



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by abelsheila, 05-14-2025, 07:38 PM
    2 responses
    39 views
    0 likes
    Last Post hglover945  
    Started by nailz420, 05-14-2025, 09:14 AM
    1 response
    84 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
    0 responses
    425 views
    1 like
    Last Post NinjaTrader_Brett  
    Started by domjabs, 05-12-2025, 01:55 PM
    2 responses
    75 views
    0 likes
    Last Post domjabs
    by domjabs
     
    Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
    1 response
    104 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X