Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

condition builder and time periods

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

    condition builder and time periods

    Hello, maybe someone can help me with my problem.I want to know if there is a possibility in my condition builder to create a condition where for example i go short if an indicator had a higher value than 50 for the last 5 bars(this is only a part of my conditions).so i know how to create if i want 5 bars ago,but i don't find a way for my condition because i need it for a period of time.hope you can help me..

    #2
    Hello,

    I assume you are using the Strategy Analyzer. Just create multiple conditions for bars 5 (which you state you can already do), 4, 3, 2, 1, and maybe 0 if you want the current bar. That will over it for the entire 5 bar span that you want.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    117 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    226 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    417 views
    0 likes
    Last Post CaptainJack  
    Working...
    X