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

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 trilliantrader, 04-18-2024, 08:16 AM
        4 responses
        18 views
        0 likes
        Last Post trilliantrader  
        Started by mgco4you, Today, 09:46 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by wzgy0920, Today, 09:53 PM
        0 responses
        9 views
        0 likes
        Last Post wzgy0920  
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        10 views
        0 likes
        Last Post Rapine Heihei  
        Working...
        X