Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting DataSeries

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

    Plotting DataSeries

    Have a DataSeries that contains bar numbers and want to plot a line between Highs and Lows of consecutive bars,, any suggestions?

    #2
    Hi gg80108, you can use the DrawLine methods for connecting your highs / lows - http://www.ninjatrader-support.com/H.../DrawLine.html

    Comment


      #3
      Plotting Lines to conect Highs & Lows

      Yea, I'm interested in the same. Apparently, Low and Lows do NOT have a Plot method? We can plot EMA on close,open,high, low. But how can we create a series of lows and highs and plot then and base decision rules off of them? Not just drawing lines to connect them. Any suggestions are much welcomed.

      blueion

      Comment


        #4
        Hello,

        I am jumping in here so I may be off, but I suggest storing them in a DataSeries:
        DenNinjaTrader Customer Service

        Comment


          #5
          here is the code i used to connect significant bar points, like Ben said the key to this is storing the bar numbers somewhere. The trick is that with a data series there is an entry in the array for every bar , a null or value, and not just the values you set in.
          I had to use a


          //find last pivot bar
          for (int x = 1; x < Bars.BarsSinceSession;x++)
          {
          if (scalpSeries.ContainsValue(x))
          {
          PivotBarNum = (
          int)scalpSeries[x];
          DrawLine(
          "sl" + CurrentBar,CurrentBar - PivotBarNum,Low[CurrentBar - PivotBarNum],ExtremeBar,High[ExtremeBar],Color.Blue,DashStyle.Solid,1);
          Last edited by gg80108; 11-22-2009, 04:07 PM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          158 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          78 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X