Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Real Up and Down Bars

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

    Real Up and Down Bars

    Hi Guys,

    This is all in reference to the attached screenshot.
    I don't know why retail platforms keep doing this (but I suppose it is common practise) but the bars are coloured/labelled incorrectly.

    Ninja Trader Bars show the third bar (in red) to be a down bar because it closed below its open BUT what it is supposed to be is an up bar because the close closed higher than the previous close - the opening price is irrelevant.

    There should also be a seperate colour for those bars which close at the same price as the previous bar.

    Is there a script or way to change this to only focus on the closing price so the bars can be painted properly?

    Thanks
    Attached Files

    #2
    Zhorny, correct it's common industry practice to color code the candlesticks according to the open / close relationship - you can of course add the trend (up / dn close) to this with a custom script coloring your bars then -

    Comment


      #3
      Thanks for answering my question but to be honest I have no clue how to program and the programming all looks Greek to me. This must be a really simple code to do:
      If current bar close > previous bar close = up bar (green)
      If current bar close < previous bar close = down bar (red)
      If current bar close = previous bar close = sideways bar (black)
      That's all.

      Any help greatly appreciated.

      Comment


        #4
        Zhorny, as an example how one could create the code needed with our Strategy Wizard via 'Point and Click', please find attached what I believe you would seek.

        This has been created with our latest NT7 Beta 18.
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        26 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X