Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

pLOTTING aNOMALY

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

    pLOTTING aNOMALY

    i wrote an indicator that works. In addition to the Signal, I plot 3 lines, an upper, zeroline and lower line according to the following

    Code:
         AddLine(Brushes.Red, .85, "Upper");                
                    AddLine(Brushes.White, 0, NinjaTrader.Custom.Resource.NinjaScriptIndicatorZeroLine);
                    AddLine(Brushes.Lime, -.85, "Lower");    
    
                    AddPlot(Brushes.Cyan, "EBSW");
    When the Indicator plots The white line pl;ots as the upper and the Red plots as the Zeroline. Yet the Indicators-->Properties--> Lines shows the Red as the Upper and White as the Zero and Lime as the Lower as desired. Why do the lines plot incorrectly.

    Thanks

    #2
    Hello dmking,

    I'm not certain that I am understanding.

    AddLine(Brushes.Red, .85, "Upper");

    This is a red line marked Upper. Did you not want this brush to be red?

    AddLine(Brushes.White, 0, NinjaTrader.Custom.Resource.NinjaScriptIndicatorZe roLine);

    This uses a NinjaTrader resource but has a white brush. Are you not wanting this to be white?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      The colors are fine, but the order is reversed, Chelsea.

      As shown in the snippet,, I expected the Red line to plot in the upper part at " .85", on the chart and the white line to plot at "0", but as you can see in the picture, it's reversed as I explained.

      D
      Attached Files

      Comment


        #4
        Hello D,

        What Values index are you using when setting the values for these?
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        30 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        17 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        16 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X