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 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
            7 views
            0 likes
            Last Post nandhumca  
            Started by The_Sec, Today, 03:37 PM
            0 responses
            3 views
            0 likes
            Last Post The_Sec
            by The_Sec
             
            Started by GwFutures1988, Today, 02:48 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Working...
            X