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

Chart Type - Paint Bar on different chart style

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

    Chart Type - Paint Bar on different chart style

    Hi,

    I searched everywhere for the correct way to paint the "line on close" Chart Style (not candlestick) based on specific colors (up / down).

    I understand that the "BarBrush" is used for candlestick (in Chart Style under Data Series, which works well), but not Line On Close Chart Style (no changes?).

    I included the references below that may help you on finding the right solution for us on how to paint the Line On Close Chart style.

    Many thanks!

    References:
    https://ninjatrader.com/support/help...tstyletype.htm
    https://ninjatrader.com/support/help..._a_ninjasc.htm
    https://ninjatrader.com/support/help...l?barbrush.htm
    https://ninjatrader.com/support/help...ml?drawing.htm


    #2
    Hello nothingbutprofits,

    Thanks for your post.

    I will need to look into why this is but I am near the end of my day and cannot get back to this until Monday.

    You could add a plot to your indicator and set its value equal to close and then you can use PlotBrushes[0][0] to color the plot. This would lay on top of the LineOnClose and would be a workaround in case you wanted to keep going over the weekend. (you could set the LineOnClose to transparent if you wish.)

    References: https://ninjatrader.com/support/help...lotbrushes.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Ok..have a good weekend.

      Note: Looking forward to the correct solution (no band-aid solution, pretty please) by next week.

      Comment


        #4
        Hello nothingbutprofits,

        Thanks for your reply.

        The Chartstyle LineOnClose only uses one brush for the line, so you only have one color to work with. The CandleoutlineBrush and BarBrush have no effect as you noted.

        As I suggested you can create a plot based on the close price and then you can change the PlotBrushes to achieve the effect.

        Otherwise, you would need to create a copy of the ChartStyle LineOnClose and modify it to suit your needs.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ラリー, Yesterday, 11:17 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by ラリー, Yesterday, 06:14 PM
        1 response
        11 views
        0 likes
        Last Post ラリー  
        Started by relogical, Yesterday, 05:20 PM
        0 responses
        15 views
        0 likes
        Last Post relogical  
        Started by vivekniwas, Yesterday, 05:11 PM
        0 responses
        12 views
        0 likes
        Last Post vivekniwas  
        Started by RookieKiwi, Yesterday, 03:38 PM
        2 responses
        23 views
        0 likes
        Last Post RookieKiwi  
        Working...
        X