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 rbeckmann05, Yesterday, 06:48 PM
            1 response
            12 views
            0 likes
            Last Post bltdavid  
            Started by llanqui, Today, 03:53 AM
            0 responses
            6 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by burtoninlondon, Today, 12:38 AM
            0 responses
            10 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            15 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Yesterday, 08:42 PM
            0 responses
            11 views
            0 likes
            Last Post carnitron  
            Working...
            X