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

Calculating Delta Bar

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

    Calculating Delta Bar

    I want print the delta of each bar when the volume is greater than 1000.
    Last edited by nekroart; 08-18-2018, 11:57 AM.

    #2
    Hello nekroart,

    Thank you for your note.

    How do you define Delta?

    To write an if statement if the volume was over 1000, you could use,

    Code:
    if(VOL[0]>1000)
    {
    Print("Delta");	
    }
    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi Alan,
      I want to calculate the difference of sell volume and buy volume of each bar. Example:
      BAR1 Total volume is 100, bid is 60 and ask 40. The delta 60-40=20

      Comment


        #4
        Hello nekroart,

        You could use Buy Sell Volume indicator for this,


        I put together an indicator which subtracts buy volume from sell volume and if the difference is greater than 1000, will print to the output window.

        The indicator buysell volume only works in real time so you will not see a plot historically.

        I would suggest testing the indicator on a 1 minute ES chart.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Work perfect.Thanks!

          Comment


            #6
            Hello amzounslide, thanks for your post.

            If you plot out the delta value in a standalone indicator, you can apply the default Bollinger in the same panel. Apply the custom indicator> Apply a Bollinger indicator> Set the Bollinger's "Input series" property to the custom indicator. This will channel the custom indicator values into the Bollinger. After all of this is set up, set the Bollinger Panel to the same panel as the custom indicator.

            Best regards.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by arvidvanstaey, Today, 02:19 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Started by mmckinnm, Today, 01:34 PM
            3 responses
            5 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by f.saeidi, Today, 01:32 PM
            2 responses
            7 views
            0 likes
            Last Post f.saeidi  
            Started by alifarahani, 04-19-2024, 09:40 AM
            9 responses
            55 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by Conceptzx, 10-11-2022, 06:38 AM
            3 responses
            60 views
            0 likes
            Last Post NinjaTrader_SeanH  
            Working...
            X