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 Mongo, Today, 11:05 AM
            0 responses
            1 view
            0 likes
            Last Post Mongo
            by Mongo
             
            Started by Tim-c, Today, 10:58 AM
            0 responses
            1 view
            0 likes
            Last Post Tim-c
            by Tim-c
             
            Started by traderqz, Yesterday, 09:06 AM
            3 responses
            22 views
            0 likes
            Last Post NinjaTrader_ThomasC  
            Started by f.saeidi, Today, 10:19 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by kujista, Today, 06:23 AM
            5 responses
            18 views
            0 likes
            Last Post kujista
            by kujista
             
            Working...
            X