• 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

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 danitralla, Yesterday, 03:33 AM
                1 response
                18 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by ninjo, Yesterday, 11:54 AM
                0 responses
                6 views
                0 likes
                Last Post ninjo
                by ninjo
                 
                Started by deblanka, Yesterday, 08:56 AM
                0 responses
                13 views
                0 likes
                Last Post deblanka  
                Started by Boonfly8, 03-22-2019, 12:30 PM
                7 responses
                24 views
                0 likes
                Last Post sledge
                by sledge
                 
                Started by Sohal, Yesterday, 05:02 AM
                2 responses
                19 views
                0 likes
                Last Post techmint  
                Working...
                X