• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SampleMultiColoredPlot.zip

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

    SampleMultiColoredPlot.zip

    I downloaded and installed SampleMultiColoredPlot.zip and started using it. I noticed some curious behavior. I noticed this behavior in an indicator that I developed based on the SampleMultiColoredPlot.zip. Thought maybe I had done something wrong and so I compiled and loaded that indicator on a chart to verify that the same behavior happened with it and it does. So, here's what happens. There are times when the sma is pointing down or up but the color is opposite. So, in other words, the sma is pointing down but yet the color is green or vice versa. Other times, bar close will print a red bar but then on open of the next bar that red bar will change to green. I noticed this when scrolling static charts a bar at a time. When I noticed this on a particular bar, I would immediately scroll back, reload the script, and scroll forward. Each time I would get to that bar the same behavior would occur.

    By the way, i noticed this with the sma plotted as a bar instead of a line. However, same behavior occurs with it plotted as a line.

    Any idea why this happens?

    Mike

    #2
    assuming you load this indicator, you might want to use a 1 period sma so you get enough samples. just noticed too that it looks like some of the down plots have 2 lines, a red and a green. i thought the color looked a bit off so i made the green line a width of 1 and the red a width of 2 and sure enough, i see a wide red and a narrow green line in some of those plots.

    Comment


      #3
      I believe this is unavoidable due to the nature that where lines intersect, the plots really overlap and depending on internal drawing routines, one plot may plot before the other etc..
      RayNinjaTrader Customer Service

      Comment


        #4
        Where can I find this script? I would like have my WMA change colors when uptrend/downtrend change. Can someone point me in the right direction? Still searching. Thanks in advance!


        [quote=Mike Winfrey;24812]I downloaded and installed SampleMultiColoredPlot.zip and started using it.

        Comment


          #5
          See here

          http://www.ninjatrader-support.com/v...ead.php?t=3227
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Irukandji, Today, 09:43 AM
          0 responses
          1 view
          0 likes
          Last Post Irukandji  
          Started by TazoTodua, Today, 09:06 AM
          0 responses
          2 views
          0 likes
          Last Post TazoTodua  
          Started by sambo81, Yesterday, 06:57 PM
          1 response
          19 views
          0 likes
          Last Post NinjaTrader_ThomasC  
          Started by tgn55, Today, 08:34 AM
          0 responses
          4 views
          0 likes
          Last Post tgn55
          by tgn55
           
          Started by TazoTodua, Today, 06:00 AM
          0 responses
          9 views
          0 likes
          Last Post TazoTodua  
          Working...
          X