Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting a lagged indicator

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

    Plotting a lagged indicator

    Hi guys,

    I can't seem to plot an indicator which makes use of a lagged value.

    e.g. using the example in the Help for writing an indicator, I can plot

    Plot0.Set( Close[0] );

    which plots fine. However, if I try

    Plot0.Set( Close[1] );

    nothing is displayed.

    I must be doing something dumb (like maybe not setting some kind of BarsRequired variable) but I'd be grateful if someone could point it out.

    Thanks

    #2
    Hello,

    Something must be wrong, because that will plot.
    Make sure you have a currentbar check:


    If that doesn't help, paste in your code and I will try to help.
    DenNinjaTrader Customer Service

    Comment


      #3
      Yep, current bar check. Knew it was something stupid.

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by algospoke, Today, 06:40 PM
      0 responses
      4 views
      0 likes
      Last Post algospoke  
      Started by maybeimnotrader, Today, 05:46 PM
      0 responses
      7 views
      0 likes
      Last Post maybeimnotrader  
      Started by quantismo, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post quantismo  
      Started by AttiM, 02-14-2024, 05:20 PM
      8 responses
      168 views
      0 likes
      Last Post jeronymite  
      Started by cre8able, Today, 04:22 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X