Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Additional Series<T> for each Chart

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

    Additional Series<T> for each Chart

    Hello,

    i have a bunch of indicators, all working on the same chart which are all based on a Series<T> that stores a custom object for each bar containing a dictionary with bid and ask volume for each price of that bar.

    Currently each indicator builts that Serie for itself using OnMarketData to store the bid and ask volume with Tick Replay.

    Would it be possible to create an Addon which stores these values once for each chart and then all attached indicators could access thisSerie?

    Regards,
    Mike
    Last edited by mk77ch; 11-29-2016, 06:42 AM.

    #2
    Hello,

    Thank you for the post.

    I am unsure of a way for the addon to "Collect" data in this way from each Chart. One way could potentially be to have the indicators report to a "Static class". A static class could be seen by any indicators or an Addon, if the indicators reported to the class and later the addon access it, the data should be available. This wouldnt nessasarily be something I could provide a sample for, but I have prevously provided a general static addon sample here: http://ninjatrader.com/support/forum...24&postcount=3

    In that sample, an addon is used to make a static class, then an indicator is used to Set the value, and a Strategy is used to Read the value the indicator sets. In your case the problem may be with syncing data because you are using a Series rather than just a simple double. You could try this sample to see if it can be worked into something that will work with your existing logic.

    Outside of doing something like this, you may be limited to writing to file with each indicator and reading the data written from the addon.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    1 view
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    238 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    383 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Working...
    X