• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dynamic DataSeries

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

    Dynamic DataSeries

    I understand we cannot add data series dynamically although I really would like to be able to add and remove one to the end but only because I want the ability to get the current price when my strategy is processing on slower timeframes for the specific point in time. While I could add a smaller timeframe and ignore it, I only require the current price infrequently and was wondering is there a function call that I can query for the exact price without adding another timeframe and incurring the processing hit?

    You may say, the current timeframe executing has the exact price - but I run a timer that operates in between the timeframes that I can turn on and off. When that triggers, between the longer running timeframes - the price is not current. If there was a call I could make - it could eliminate the need to put a tick or second timeframe that otherwise would not be used for the majority of the time.

    Is this possible?

    #2
    Hello MarketAlly,

    Thank you for the post.

    Generally adding a series is the easiest/least syntax way to do this. However, if the series is not being used at all and you are doing something out of sync such a just checking a price, you might look into using a BarsRequest to subscribe to data and set the current price to a variable which your timer logic reads.

    https://ninjatrader.com/support/help...ub=barsrequest

    You could use a small lookback period to request minimal data, you can ignore the historical data and then just use the market data subscription for the live prices. Storing the price to a variable would eliminate the need to repeat the bar's request, the timer loop would read the variables value for a live price.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Gerik, Yesterday, 11:27 PM
    0 responses
    2 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by Bionian, Yesterday, 11:14 PM
    0 responses
    2 views
    0 likes
    Last Post Bionian
    by Bionian
     
    Started by Gerik, Yesterday, 10:58 PM
    0 responses
    1 view
    0 likes
    Last Post Gerik
    by Gerik
     
    Vps by stooby
    Started by stooby, Yesterday, 08:32 PM
    0 responses
    11 views
    0 likes
    Last Post stooby
    by stooby
     
    Started by FaaastEddy, Yesterday, 08:25 PM
    0 responses
    3 views
    0 likes
    Last Post FaaastEddy  
    Working...
    X