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

Volume does not appear

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

    Volume does not appear

    HI. I want to do a simple indicator to draw the volume bar blue if the closing volume bar [0]> volume bar [1].
    I wrote this code but does not write anything.
    Thank you.


    if(CurrentBar < 1)
    return;

    if (VOL()[0] > VOL()[1])
    {
    BarColor = Color.Blue;
    }

    #2
    Hello julifro,

    I have added the code you have posted to the OnBarUpdate of an indicator and added this to a chart. I am finding the chart bar colors are being changed.

    Attached is the indicator I have used to test this. If you add to this test indicator to an ES 12-16 1 Minute chart are you finding no bars are being colored blue?
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thanks for your reply.
      I explained wrong. I want the condition to be displayed in the window volume is not in the price.
      Its indicator does not work for me. Others use if.
      Thank you.

      Comment


        #4
        now she works correctly. Another indicator causes the error.
        I want to appear on the volume indicator not on price. Thank you

        Comment


          #5
          Hello julifro,

          I'm not sure that I understand.

          This indicator changes the color of the bar.

          You can change the panel the indicator is added to by setting the Panel value in the Indicator window. However, it would still color the bars of the primary series.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            I want to change the color of the indicator bar volume is not the price bar.
            while an indicator but did not remember the code
            Thank you

            Comment


              #7
              Hello julifro,

              If you are using another indicator and you want to change the color of that indicator's plot, you will need to code that into that indicator.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by pechtri, 06-22-2023, 02:31 AM
              10 responses
              124 views
              0 likes
              Last Post Leeroy_Jenkins  
              Started by judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              59 views
              0 likes
              Last Post DynamicTest  
              Started by ScottWalsh, Yesterday, 06:52 PM
              4 responses
              36 views
              0 likes
              Last Post ScottWalsh  
              Started by olisav57, Yesterday, 07:39 PM
              0 responses
              7 views
              0 likes
              Last Post olisav57  
              Started by trilliantrader, Yesterday, 03:01 PM
              2 responses
              22 views
              0 likes
              Last Post helpwanted  
              Working...
              X