Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data Series Issue

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

    Data Series Issue

    Hi,

    I'm developing an indicator based on SMA. My problem is when i plot it, the plot and arrows show up correctly on the 5 minute series, but if i change to say 15 minute series from the drop down, the arrows for my condition still looks back at my 5 minute data. how can i force it to use the 15 minute series or which ever i select from drop down?

    attached is my code.
    Last edited by priceisking; 07-30-2018, 12:57 PM.

    #2
    Hello priceisking,
    Thanks for your post.

    You just need to reference the correct BarsInProgress(BIP). For example, the following snippet would draw an up arrow on every bar, no matter what its period is because it is drawing every time the primary BIP updates.
    Code:
    if (BarsInProgress == 0)
    	Draw.ArrowUp(this, "Up Arrow"+CurrentBar, false, 0 , High[0]+2*TickSize, Brushes.Blue);
    Help Guide - Multi-Time Frame and Instrument
    Help Guide - BarsInProgress
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thank you. That did the trick!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      569 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X