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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          133 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          75 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          117 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          113 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          90 views
          0 likes
          Last Post CarlTrading  
          Working...
          X