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

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 -

    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        21 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X