Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Plot

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

    #16
    Hello sdauteuil,

    To define a public series:

    In State.SetDefaults:
    AddPlot(new Stroke(Brushes.Orange, 2), PlotStyle.Bar, "CumulativeDeltaPlot");

    In #region Properties:
    [Browsable(false)]
    [XmlIgnore]
    public Series<double> CumulativeDeltaPlot
    {
    get { return Values[0]; }
    }

    In OnBarUpdate():
    CumulativeDeltaPlot = SUM(cumulativeDelta.DeltaClose, 3)[0];
    Last edited by NinjaTrader_ChelseaB; 11-22-2020, 10:06 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Hello Chelsea,
      Normally AddPlot(...) is called in State.SetDefaults, is there a specific exception for Order Flow ?

      Comment


        #18
        Hello s.kinra,

        Calling AddPlot() does not call the Order Flow. Instead this adds a plot to the indicator.

        State.SetDefaults is fine. (State.Configure is also fine)
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Hello Chelsea,
          Thanks for clarifying this.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by EquityTrader, Today, 03:33 PM
          0 responses
          5 views
          0 likes
          Last Post EquityTrader  
          Started by ahelton, Today, 11:53 AM
          1 response
          21 views
          0 likes
          Last Post aligator  
          Started by tonynt, Today, 02:07 PM
          0 responses
          15 views
          0 likes
          Last Post tonynt
          by tonynt
           
          Started by sgordet, Today, 01:57 PM
          0 responses
          9 views
          0 likes
          Last Post sgordet
          by sgordet
           
          Started by login_dejavu, Today, 11:16 AM
          0 responses
          23 views
          0 likes
          Last Post login_dejavu  
          Working...
          X