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 Spiderbird, Today, 12:15 PM
      2 responses
      7 views
      0 likes
      Last Post Spiderbird  
      Started by WHICKED, Today, 12:45 PM
      0 responses
      3 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by FrazMann, Today, 11:21 AM
      2 responses
      6 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by rjbtrade1, 11-30-2023, 04:38 PM
      2 responses
      80 views
      0 likes
      Last Post DavidHP
      by DavidHP
       
      Started by lorem, Yesterday, 09:18 AM
      5 responses
      18 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X