Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Accessing MarketData from a drawing tool ?

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

    Accessing MarketData from a drawing tool ?

    Hi Ninjatrader,

    In an indicator we have OnMarketData() which allows us to use the ask/bid/price/volume of every level change.
    Is there a way i can access this data from a drawing tool ? The ChartControl.BarsArray just contains information about bars
    but i would like to have access to every level change
    EB Worx
    NinjaTrader Ecosystem Vendor - EB Worx

    #2
    Hello Erwin Beckers,

    Drawing tools are meant to draw at the prices and times provided and do not have data driven methods and are not meant to continuously update with new data. In general these are meant to be drawn once and then remain.

    You would need to subscribe to the market data using the Addon approach.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,
      I understand, but i would like to do something like ninjas Order flow Volume Profile drawing tool does.
      Where the users selects a piece of the chart and the drawing tool can do some analysis on the market data of that exact piece of the chart and draw its result.
      So i don't need some data driven method to continuously update the chart, i just want to get the market data for a piece of the chart once and use if for my geometry drawing tool
      Since the Order flow Volume Profile drawing tool is already doing this i suppose its possible to get this market data, perhaps via an undocument function ?
      EB Worx
      NinjaTrader Ecosystem Vendor - EB Worx

      Comment


        #4
        Hello Erwin Beckers,

        The Order Flow Volume Profile drawing tool is not using market data. This is using historical tick ask and bid data called from a bars request.

        Below is a public link to the help guide on BarsRequest.
        https://ninjatrader.com/support/help...arsrequest.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jackiegils, Yesterday, 11:05 PM
        0 responses
        5 views
        0 likes
        Last Post jackiegils  
        Started by cre8able, 05-09-2024, 09:15 PM
        2 responses
        17 views
        0 likes
        Last Post cre8able  
        Started by Trader146, Yesterday, 09:17 PM
        0 responses
        9 views
        0 likes
        Last Post Trader146  
        Started by ttrader23, 05-08-2024, 09:04 AM
        9 responses
        43 views
        0 likes
        Last Post ttrader23  
        Started by ZeroKuhl, 05-09-2024, 04:31 PM
        8 responses
        46 views
        0 likes
        Last Post ZeroKuhl  
        Working...
        X