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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        35 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        12 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        18 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X