Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition X bars ago

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

    Condition X bars ago

    Hello There !

    One of my conditions is :

    if (
    Low[3] < SMMA(Median, 13)[8]
    )

    But I want to use my "SMMA(Median, 13)[8]" 3 bars ago

    of course, Low[3] < SMMA(Median, 13)[8] [3] does not work....

    Please can you help me to write that ?

    Thank you very much !

    #2
    Hello advs108,

    Thank you for your post.

    The [] index refers to the number of bars ago.

    If you want to get the value of this indicator 3 bars ago, then use:
    SMMA(Median, 13)[3]

    If you want to get the value of this indicator 3 bars prior to 8 bars ago, than just add 3 to 8.
    SMMA(Median, 13)[11]
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Why am I so dumb !!??


      Thank you very much for your help !

      Comment

      Latest Posts

      Collapse

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