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

Candle Wick Color

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

    Candle Wick Color

    In NT7 how do I or can I set the Candle Wick color.


    Thanks
    Jerry
    Last edited by JerryWar; 04-07-2016, 01:37 PM.

    #2
    Hello,

    Thank you for the question.

    This is actually an undocumented property, the following syntax would change the candle Wick color specifically. Please note it is always good to check if the ChartControl is null in the case the indicator is used in other locations like a Market Analyzer that does not have a chart.

    Code:
    if(ChartControl != null)
    {
        ChartControl.ChartStyle.Pen2.Color = Color.Orange;
    }
    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse
      I tried placing this in the initialization and in OnBarUpdate() and it didn't work in either
      location. What am I missing.

      Thanks
      Jerry

      Comment


        #4
        Hello,

        I am unsure regarding your specific sample but generally this should only work after Initialize such as OnStartUp or OnBarUpdate. You may need to remove and re add the indicator to the chart to see the change.

        This is the sample I had tried below, if you are using this in existing logic, please try creating a brand new indicator and only use the following in OnBarUpdate or OnStartUp to check the change.

        Code:
        protected override void OnStartUp()
        {
        	if(ChartControl != null)
        	{
        		ChartControl.ChartStyle.Pen2.Color = Color.Orange;
        	}
        }
        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thnx, I was loading the wrong copy of the indicator.

          How do I delete older compiled copies of the indicator from Ninja. I tried renaming but it won't let me do that. example if I have in the indicator list "IndicatorV1" and "IndicatorV2" how do I delete one compiled copy.

          Thanks
          Jerry

          Comment


            #6
            Hello,

            Thank you for the question.

            If you have Indicator1 and Indicator2 and need to remove Indicator1, generally you would use the Tools -> Edit NinjaScript -> Indicator menu.
            In the menu, select the file to remove and click remove.

            If this is not working because a strategy is referencing the indicator as an example, you would first need to edit the strategy to not reference the indicator you are trying to delete before you remove it.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Jesse,
              That allows you to delete the CS source, not the compiled version which shows up.in the chart indicator list. I have multiple named copies that I created and compiled with a different public class name that I would like to delete. I cannot find them.

              Jerry

              Comment


                #8
                Hello,

                They are compiled because they exist as source code, to remove a compiled version you have to first remove its source code and then re compile.

                Using the steps I provided, you can remove the source code, once you do that just complete a compile to re compile all the source code to have the lists updated.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by selu72, Today, 02:01 PM
                0 responses
                0 views
                0 likes
                Last Post selu72
                by selu72
                 
                Started by f.saeidi, Today, 12:14 PM
                8 responses
                18 views
                0 likes
                Last Post f.saeidi  
                Started by Mikey_, 03-23-2024, 05:59 PM
                3 responses
                49 views
                0 likes
                Last Post Sam2515
                by Sam2515
                 
                Started by Russ Moreland, Today, 12:54 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by philmg, Today, 12:55 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_ChristopherJ  
                Working...
                X