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 PaulMohn, Today, 03:49 AM
        0 responses
        4 views
        0 likes
        Last Post PaulMohn  
        Started by inanazsocial, Today, 01:15 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        10 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        2 views
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Working...
        X