Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Definition of Up bar Close verse Close

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

    Definition of Up bar Close verse Close

    It seems from looking at various bar charts, NT defines an Up Bar for colour purposes, as a bar where the close is higher than the open of that bar. I would like to be able to defined an Up Bar as being when the close of the bar is higher than the close of the prior bar. The converse would apply for Down bars
    Is there a settings for this somewhere?

    #2
    Hello GlennL,

    Unfortunately there is no such setting available. You would need to program a custom bar type.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Originally posted by GlennL View Post
      It seems from looking at various bar charts, NT defines an Up Bar for colour purposes, as a bar where the close is higher than the open of that bar. I would like to be able to defined an Up Bar as being when the close of the bar is higher than the close of the prior bar. The converse would apply for Down bars
      Is there a settings for this somewhere?
      From your statement of the requirement it seems that you simply want to change the bar colors depending on price relationships. So just use BarColor and the other bar properties, and take it from there.

      Comment


        #4
        Originally posted by GlennL View Post
        It seems from looking at various bar charts, NT defines an Up Bar for colour purposes, as a bar where the close is higher than the open of that bar. I would like to be able to defined an Up Bar as being when the close of the bar is higher than the close of the prior bar. The converse would apply for Down bars
        Is there a settings for this somewhere?
        For candlesticks the solution adopted by NinjaTrader is the only reasonable choice. If you did otherwise, you would not be able to differentiate between open and close values for a candle. Therefore the solution is generally adopted by most charting programs.

        Your request only makes sense for OHLC bars, as open and close can be identified via the geometric shape of the bar. For use with OHLC bars I have coded a little indicator that you can add to your charts.

        It took 5 minutes to code and is attached. If you wish to use it with candlesticks, you need to delete lines 27-31.
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        6 views
        0 likes
        Last Post maybeimnotrader  
        Started by quantismo, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post quantismo  
        Started by AttiM, 02-14-2024, 05:20 PM
        8 responses
        166 views
        0 likes
        Last Post jeronymite  
        Started by cre8able, Today, 04:22 PM
        0 responses
        8 views
        0 likes
        Last Post cre8able  
        Started by RichStudent, Today, 04:21 PM
        0 responses
        5 views
        0 likes
        Last Post RichStudent  
        Working...
        X