• 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

Color don't change it's value

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

    Color don't change it's value

    I starting learning Ninja Script same day's ago.
    Today I copy code from standart indicator DEMA in a new indicator HozDEMA, for the purpose of understanding base syntax Ninja Script.
    I edit that fragment to black color, but on the char I don't notice any change!!! Why?
    Code:
            /// <summary>
            /// This method is used to configure the indicator and is called once before any bar data is loaded.
            /// </summary>
            protected override void Initialize()
            {
    			Add(new Plot(Color.Black, "DEMA"));
    			Overlay				= Enabled;
            }
    My chart look like that one:

    Attached Files
    Last edited by hozman; 06-11-2015, 02:33 PM.

    #2
    Hi hozman, making the change to a plot color will not change it on the chart unless you remove the indicator and re-add it (applies the new default color).

    Dan
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      Hello hozman,

      Thank you for your inquiry.

      I have imported your indicator into my platform and the black line shows up successfully. I have not changed anything in your code.

      Please right-click on your chart, select Indicators, remove your indicator from your chart, and click Apply. You will then select the indicator in the Indicators menu > select New > and OK. Your plot should now successfully show up in the correct color on your chart.
      Zachary G.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by eDanny View Post
        Hi hozman, making the change to a plot color will not change it on the chart unless you remove the indicator and re-add it (applies the new default color).

        Dan
        It is strange, because I'd think, that F5 key(Reload NinjaScript) give that affect...

        Comment


          #5
          If you make a change to the default color of a plot in the script it will not change on the chart with a refresh. You would either need to remove/reapply the indicator or go into the parameters and change the plot color there to match the new color in your code.

          Dan
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ttodua, Today, 01:52 PM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by muisca, 05-19-2017, 11:49 AM
          8 responses
          6,463 views
          0 likes
          Last Post NinjaTrader_Tyler  
          Started by NinjaTrader_Brandon, Today, 12:08 PM
          0 responses
          66 views
          0 likes
          Last Post NinjaTrader_Brandon  
          Started by iq200, Today, 12:00 PM
          2 responses
          11 views
          0 likes
          Last Post iq200
          by iq200
           
          Started by valhallafutures, Today, 11:33 AM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Working...
          X