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

coloration trouble

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

    coloration trouble

    hello,

    I've got a probleme with the indicator i just create. I use rising and faling fonction to have differents color but like this picture show it there is many mistakes:



    So i try another way like this (trend is the name of my indicator):

    if (Trend[0]>Trend[1])
    {
    // Connects the rising plot segment with the other plots
    TrendUp.Set(1, Trend[1]);

    // Adds the new rising plot line segment to the line
    TrendUp.Set(Trend[0]);
    }
    else if (Trend[0]<Trend[1])
    {
    // Connects the new falling plot segment with the rest of the line
    TrendDown.Set(1, Trend[1]);

    // Adds the new falling plot line segment to the line
    TrendDown.Set(Trend[0]);
    }
    else
    {
    // Connects the neutral plot segment with the rest of the line
    TrendNeutral.Set(1, Trend[1]);

    // Adds the new neutral plot line segment to the line
    TrendNeutral.Set(Trend[0]);
    }

    But my probleme is the same.

    Can someone give me the right way to solve my probleme?

    Thanks a lot

    #2
    Hello,

    The picture looks correct to me. Where is it wrong?
    DenNinjaTrader Customer Service

    Comment


      #3
      You have run into the ever present multicolor line coloring bug. Hopefully NT7 will fix this although it requires rewriting the code.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Originally posted by NinjaTrader_Ben View Post
        Hello,

        The picture looks correct to me. Where is it wrong?

        It's wrong where i put elipse for example my indicator is rising and the color is red like if it was falling.

        Comment


          #5
          Originally posted by eDanny View Post
          You have run into the ever present multicolor line coloring bug. Hopefully NT7 will fix this although it requires rewriting the code.
          So, with NT6 I can do nothing to resolve my problème of coloration?

          Thanks for the answer.

          Comment


            #6
            Hello,

            I will have someone reply to you on Monday. Thank you for your patience.
            DenNinjaTrader Customer Service

            Comment


              #7
              Unless you want to override the Plot() method and completely draw your own via C#, it is what it is. Unfortunately we do not support overriding the Plot() method.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, Yesterday, 02:04 AM
              1 response
              15 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by agclub, 04-21-2024, 08:57 PM
              4 responses
              18 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by Irukandji, Today, 04:58 AM
              0 responses
              3 views
              0 likes
              Last Post Irukandji  
              Started by fitspressoburnfat, Today, 04:25 AM
              0 responses
              2 views
              0 likes
              Last Post fitspressoburnfat  
              Started by Skifree, Today, 03:41 AM
              1 response
              5 views
              0 likes
              Last Post Skifree
              by Skifree
               
              Working...
              X