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

How to create a conditionally colored price bar?

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

    How to create a conditionally colored price bar?

    I am trying to figure out how to have a price bar display in red of green if certain conditions are met.
    Specifically, if a bar opens with price in the bottom 1/3 of the bar and closes in the top 1/3 of the bar I want it to be blue. If a bar opens with price in the top 1/3 of the bar and closes in the bottom 1/3 of the bar I want it to be red.
    If anyone knows how to do this I would greatly appreciate instructions.
    Thanks

    #2
    Maestro79, welcome to the NinjaTrader support forums! You can work with BarColor() for this scripting idea - http://www.ninjatrader-support.com/H.../BarColor.html

    Here are some great tutorials to get you started, number 6 is is dealing with coloring the bars and background - http://www.ninjatrader-support.com/H...verview18.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Maestro79, welcome to the NinjaTrader support forums! You can work with BarColor() for this scripting idea - http://www.ninjatrader-support.com/H.../BarColor.html

      Here are some great tutorials to get you started, number 6 is is dealing with coloring the bars and background - http://www.ninjatrader-support.com/H...verview18.html
      Thanks. I'll check those out.

      Comment


        #4
        Dead links

        The links in the answer, below, are dead.

        Are there new links explaining the process for Ninjatrader 8?

        Originally posted by NinjaTrader_Bertrand View Post
        Maestro79, welcome to the NinjaTrader support forums! You can work with BarColor() for this scripting idea - http://www.ninjatrader-support.com/H.../BarColor.html

        Here are some great tutorials to get you started, number 6 is is dealing with coloring the bars and background - http://www.ninjatrader-support.com/H...verview18.html

        Comment


          #5
          In NT8

          BarColor is BarBrush
          CandleOutlineColor is CandleOutlineBrush

          J~

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Kaledus, Today, 01:29 PM
          3 responses
          9 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frankthearm, Yesterday, 09:08 AM
          14 responses
          47 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by gentlebenthebear, Today, 01:30 AM
          2 responses
          13 views
          0 likes
          Last Post gentlebenthebear  
          Started by PaulMohn, Today, 12:36 PM
          2 responses
          17 views
          0 likes
          Last Post PaulMohn  
          Started by Conceptzx, 10-11-2022, 06:38 AM
          2 responses
          56 views
          0 likes
          Last Post PhillT
          by PhillT
           
          Working...
          X