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

DrawinTools -> accessing another DataSeries (for Tick Data)

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

    DrawinTools -> accessing another DataSeries (for Tick Data)

    Hi,

    I've been trying to add a "AddDataSeries" at OnStateChange() from a DrawingTool, but I get the error:
    "AddDataSeries" doesn't exist.

    I've read another post (https://ninjatrader.com/support/foru...ingtools/page2) but I still have it not clear.

    I want to access Tick DataSeries with a DrawingTool, so I cant acces tick data only in the area I want (this will be defined with my drawingtool) and do my calculations.


    Do you have any tips to do it?
    I tried to read the mentioned post, but I cannot follow it perfectly.

    Thanks in advance!



    #2
    So, with more details, I want to acces Delta values from the bars, but within a DrawingTool......

    Comment


      #3
      When I try to read the "OrderFlowCumulativeDelta"

      inside "OnRender"

      I get the error:
      Name "OrderFlowCumulativeDelta" not known.....

      Comment


        #4
        Hello artson,

        Drawing tools scripts do not have a primary series and cannot add a secondary series. For this reason drawing tools do not have OnBarUpdate, OnMarketUpdate, or any other data driven methods.

        It is not supported to call an indicator from a drawing tool (as there is no primary series).

        You would have to do all calculations (that are done in the indicator) with custom code.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks Chelsea, but how can I do the calculations, if I cannot acces to de Delta data?
          How can I access from a i.e. 10 minute Chart to the information from OrderFlowCumulativeDelta (or from Volumetric Bars)??

          Comment


            #6
            Hello artson,

            This would not be possible specifically with Order Flow scripts as these are proprietary and not open source. The calculations would have to be your own.

            Are you certain what you are wanting to do cannot be achieved with an indicator?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi,

              With an indicator I cannot select an specific area where I want to read the Delta.
              With an indicator I read a complete Day, or X bars, or whatever....

              If I use a Drawing Tool I can select only the area I want (for example in a lateral area I could see supports and resistances and see what Delta is doing and who is winning the battle.....

              Comment


                #8
                Hello artson,

                With an indicator you can click on the chart twice and get two points on the chart. What specifically is stopping you from selecting a specific area?


                With an indicator you could get the anchor points of a manually drawn rectangle as well.


                With that said, this may not be something possible with NinjaTrader Drawing tools as these do not support calling an indicator.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_ChelseaB View Post
                  With an indicator you could get the anchor points of a manually drawn rectangle as well.
                  Hi

                  I'll try this!
                  I didn't know it

                  Thanks

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Barry Milan, Yesterday, 10:35 PM
                  5 responses
                  16 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by DanielSanMartin, Yesterday, 02:37 PM
                  2 responses
                  13 views
                  0 likes
                  Last Post DanielSanMartin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  4 responses
                  12 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by terofs, Today, 04:18 PM
                  0 responses
                  11 views
                  0 likes
                  Last Post terofs
                  by terofs
                   
                  Started by nandhumca, Today, 03:41 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post nandhumca  
                  Working...
                  X