Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlotColors handling by Plot name

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

    PlotColors handling by Plot name

    When porgramming indicators, we can handle with polots values in 2 ways:
    1) Values[0][0]
    2) PlotName[0]

    Second way is march more convenient becouse:
    1) significant plot name
    double distance = Values[0][1] - Values[1][0]; - this is unreadable, sense is hidden, cause logical mistakes.
    double distance = QuickLine[1] - SlowLine[0]; - this is absolutely clear for humans.

    2) Plots definition order has no effect on indicator code
    For example, if I have 10 indicators plots and want to add some more lines (look at screenhot, please) I just add them an change Plots indexes without correcting code.

    So, I ask to implement changing color of indicator plots by their names, instead "PlotColors[1][0]".

    Thank You.
    Attached Files
    Last edited by fx.practic; 06-01-2013, 03:38 AM.
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    It is done with way for programming reasons to have more flexibility. This way if a Indicator has more one plot they can have different names but still be easily referenced.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello fx.practic,

      It is done with way for programming reasons to have more flexibility. This way if a Indicator has more one plot they can have different names but still be easily referenced.
      Yes, this is great feature!

      Ans it can be more convenient to use

      FastLine[0].Color = Color.Red;
      instead
      PlotColors[7][0] = Color.Red;
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        I will forward your suggestion to our development team for consideration on future releases of NinjaTrader.
        JCNinjaTrader Customer Service

        Comment


          #5
          Thank You!
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cre8able, Today, 04:22 PM
          0 responses
          3 views
          0 likes
          Last Post cre8able  
          Started by RichStudent, Today, 04:21 PM
          0 responses
          2 views
          0 likes
          Last Post RichStudent  
          Started by cre8able, Today, 04:16 PM
          0 responses
          7 views
          0 likes
          Last Post cre8able  
          Started by cre8able, Yesterday, 03:20 PM
          3 responses
          18 views
          0 likes
          Last Post cre8able  
          Started by StrongLikeBull, Today, 04:05 PM
          0 responses
          5 views
          0 likes
          Last Post StrongLikeBull  
          Working...
          X