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 Mindset, Today, 10:38 PM
      0 responses
      2 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by JesseOffshore, Today, 09:40 PM
      0 responses
      1 view
      0 likes
      Last Post JesseOffshore  
      Started by WHICKED, 04-26-2024, 12:56 PM
      4 responses
      139 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by ezrollin, 02-26-2022, 11:14 PM
      7 responses
      207 views
      0 likes
      Last Post kenz987
      by kenz987
       
      Started by rocketman7, Today, 08:34 PM
      0 responses
      8 views
      0 likes
      Last Post rocketman7  
      Working...
      X