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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          153 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          306 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          244 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          345 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          176 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X