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

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 f.saeidi, Today, 11:02 AM
          1 response
          1 view
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by geotrades1, Today, 10:02 AM
          4 responses
          12 views
          0 likes
          Last Post geotrades1  
          Started by rajendrasubedi2023, Today, 09:50 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by lorem, Today, 09:18 AM
          2 responses
          11 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by geddyisodin, Today, 05:20 AM
          4 responses
          30 views
          0 likes
          Last Post geddyisodin  
          Working...
          X