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

Multi Colored Plots

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

    Multi Colored Plots

    Hey guys.

    I have been working on a multiple colored plot based on one MA above / below another MA. I have read a few posts and tried different coding techniques to try and get this to work to no avail.

    Basically, all I'm trying to do is have the MA lines plot one color if MA1 > MA2, and another color if MA1 < MA2. I am able to get this to work using 4 different indicator plots. MA1up, MA2up, MA1dn, MA2dn.

    My problem is that on the initial change in color I have all 4 plots showing at once, and since you have to connect the plots using the .Set(1, MA[1]), I get the change in color displayed one bar earlier before the cross takes place.

    I have attached the indicator.

    Thanks for your help.
    Anthony
    Attached Files
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    #2
    Didn't the reference sample work for you? http://www.ninjatrader-support.com/v...ead.php?t=3227

    Comment


      #3
      Yes sir.

      It works except when it changes color, it plots back 1 bar (.Set(1, MA[1])), which gives the new color 1 bar back over the previous color. Know what I mean?
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        Hmm, this then would appear to be a limitation. NT7 will come with next multi color support.

        Comment


          #5
          Thanks for the reply Dierk.

          Do you have any idea around when NT7 is slated for release?
          Also, is added Oanda brokerage support part of this release?

          Thanks
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            NT7 beta is scheduled for end of this year. Right now we don't have anything scheduled on Oanda support.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by rajendrasubedi2023, Today, 09:50 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by geotrades1, Today, 10:02 AM
            0 responses
            4 views
            0 likes
            Last Post geotrades1  
            Started by ender_wiggum, Today, 09:50 AM
            0 responses
            4 views
            0 likes
            Last Post ender_wiggum  
            Started by bmartz, Today, 09:30 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by geddyisodin, Today, 05:20 AM
            3 responses
            24 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X