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

PaintBars

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

    PaintBars

    Is there a way to employ the TradeStation ability to change the color of the bars according to a preset condition? If so, how does one do that?

    #2
    Indeed. Check out BarColor. You may also be interested in BackColor and BackColorAll.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi there, How can I paint a bar 1 bar ago. I don't want the current bar painted, I want 1 bar ago painted if the current bar meets my conditions.
      PaintBar[1] doesn't work for me.
      Thanks
      JJ
      Last edited by jjthetrader; 02-04-2008, 12:27 PM.

      Comment


        #4
        Unfortunately this is not supported at this time.
        RayNinjaTrader Customer Service

        Comment


          #5
          So you can't even displace the painted bar by 1? Would that work?

          Comment


            #6
            No this will not work.
            RayNinjaTrader Customer Service

            Comment


              #7
              Ok, thank you.

              Comment


                #8
                Ray, can you paint draw objects into the past instead of my idea here to paint bars into the past?
                thanks
                JJ

                Comment


                  #9
                  Absolutely. Please check out the barsAgo parameter e.g. here: http://www.ninjatrader-support.com/H...6/DrawDot.html

                  Comment


                    #10
                    Cool, thanks, this is the alternative I've been looking for.

                    Comment


                      #11
                      does anybody know of an indicator that will highlight/draw a dot/something on/above/below a price bar x-number of bars back? i've just read that the bar's colour itself cannot be changed. i've been through the indicator wizard thing but i just don't 'get' it..

                      i'm looking to visibly identify the 60th bar back from the current bar.

                      any help with this would be appreciated..

                      .m.

                      just added my indicator whcih doesn't work..
                      Attached Files
                      Last edited by newbouldm; 09-27-2008, 11:26 AM.

                      Comment


                        #12
                        Hello,

                        If you are programmer you can use BarColor to change the color of a bar.
                        This link will help:


                        Post your code or screen shots of your Strategy Wizard conditions and I will assist further.
                        DenNinjaTrader Customer Service

                        Comment


                          #13
                          Hi Ben,

                          I've found and slightly altered Josh's User Defined Colour Inputs indicator,

                          which seemed to work fine on my YM chart but not always so on my ZN chart, as sometimes it just wouldn't appear. On my 'live' chart it would highlight the 60th bar, when I tried it on replaying charts of YM & ZN, it constantly highlighted the 2nd bar (1st left of current).

                          I could only seem to find examples that would change colours based on an event happening, i.e., crossing of 20SMA over 50SMA or the example instruction which was just a straight, unconditional statement that I then copied and pasted into the above indicator after removing the 2 original lines, wouldn't work despite compiling without errors. (I realise that the compiler isn't interested in whether it works or not, just that the instructions are set out correctly.)

                          I'm not a programmer at the mo. I'm struggling with its logic and jargon..

                          I've attached my altered version of Josh's indicator..

                          Thanks for your help in advance..

                          .m.
                          Attached Files

                          Comment


                            #14
                            If you are very new to programming your best bet would be to start with out Indicator development tutorials as a baseline to get familiar with programming terms/jargon. They are located in our Help Guide within the NinjaScript section.
                            RayNinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by CortexZenUSA, Today, 12:53 AM
                            0 responses
                            1 view
                            0 likes
                            Last Post CortexZenUSA  
                            Started by CortexZenUSA, Today, 12:46 AM
                            0 responses
                            1 view
                            0 likes
                            Last Post CortexZenUSA  
                            Started by usazencortex, Today, 12:43 AM
                            0 responses
                            5 views
                            0 likes
                            Last Post usazencortex  
                            Started by sidlercom80, 10-28-2023, 08:49 AM
                            168 responses
                            2,265 views
                            0 likes
                            Last Post sidlercom80  
                            Started by Barry Milan, Yesterday, 10:35 PM
                            3 responses
                            11 views
                            0 likes
                            Last Post NinjaTrader_Manfred  
                            Working...
                            X